develooper Front page | perl.perl5.porters | Postings from June 2001

[ID 20010628.001] problems building 5.6.1 with libgdbm

Thread Next
Michael Stevens
June 28, 2001 03:59
[ID 20010628.001] problems building 5.6.1 with libgdbm
Message ID:
This is a bug report for perl from,
generated with the help of perlbug 1.33 running under perl v5.6.1.

[Please enter your report here]

I'm trying to build 5.6.1 on solaris, and the build dies when trying
to link against libgdbm:

michaels@iiidev1:~/perl-5.6.1> sh Configure -des                 
First let's make sure your kit is complete.  Checking...
Would you like to see the instructions? [n]  
Locating common programs...
Checking compatibility between /bin/echo and builtin echo (if any)...
Symbolic links are supported.
Checking how to test for symbolic links...
You can test for symbolic links with 'test -h'.
Good, your tr supports [:lower:] and [:upper:] to convert case.
Using [:upper:] and [:lower:] to convert case.
3b1           dynix          isc           nonstopux     stellar   
aix           dynixptx       isc_2         openbsd       sunos_4_0   
altos486      epix           linux         opus          sunos_4_1   
amigaos       esix4          lynxos        os2           svr4   
apollo        fps            machten       os390         svr5   
aux_3         freebsd        machten_2     posix-bc      ti1500   
beos          genix          mint          powerux       titanos   
bsdos         gnu            mips          qnx           ultrix_4   
convexos      greenhills     mpc           rhapsody      umips   
cxux          hpux           mpeix         sco           unicos   
cygwin        i386           ncr_tower     sco_2_3_0     unicosmk   
darwin        irix_4         netbsd        sco_2_3_1     unisysdynix   
dcosx         irix_5         newsos4       sco_2_3_2     utekv   
dec_osf       irix_6         next_3        sco_2_3_3     uts   
dgux          irix_6_0       next_3_0      sco_2_3_4     uwin   
dos_djgpp     irix_6_1       next_4        solaris_2     vmesa   
Which of these apply, if any? [solaris_2]  
Operating system name? [solaris]  
Operating system version? [2.7]  
Build a threading Perl? [n]  
Build Perl for multiplicity? [n]  
Use which C compiler? [cc]  
Checking for GNU cc in disguise and/or its version number...
Now, how can we feed standard input to your C preprocessor...
Directories to use for library searches?
[/usr/local/lib /opt/APPS/forte-6/SUNWspro/WS6/lib /usr/lib /usr/ccs/lib]  
What is the file extension used for shared libraries? [so]  
Build Perl for SOCKS? [n]  
Checking for optional libraries...
What libraries to use? [-lsocket -lnsl -lgdbm -ldb -ldl -lm -lc]  
What optimizer/debugger flag should be used? [-O]  
Any additional cc flags? [-I/usr/local/include]  
Let me guess what the preprocessor flags are...
Any additional ld flags (NOT including libraries)?
[ -L/usr/local/lib -L/opt/APPS/forte-6/SUNWspro/WS6/lib]  
Checking your choice of C compiler and flags for coherency...
I've tried to compile and run the following simple program:

#include <stdio.h>
int main() { printf("Ok\n"); exit(0); }

I used the command:

        cc -o try -O -I/usr/local/include -L/usr/local/lib -L/opt/APPS/forte-6/SUNWspro/WS6/lib try.c -lsocket -lnsl -lgdbm -ldb -ldl -lm -lc

and I got the following output: ./try: fatal: open failed: No such file or directory
The program compiled OK, but exited with status 137.
You have a problem.  Shall I abort Configure [y]  
Ok.  Stopping Configure.

I've tried to disable gdbm support with -Ui_gdbm, but I still get the
same error.

[Please do not change anything below this line]
Site configuration information for perl v5.6.1:

Configured by michaels at Wed Jun 20 14:58:20 BST 2001.

Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
    osname=solaris, osvers=2.7, archname=sun4-solaris
    uname='sunos iiidev1 5.7 generic_106541-10 sun4u sparc sunw,ultrasparc-iii-cengine '
    config_args='-Dprefix=/www/common/perl-builds/installs/perl_5_6_1_tar_gz__des__Dcc_cc -des -Dcc=cc'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    cc='cc', ccflags ='-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    ccversion='Sun WorkShop 6 2000/04/07 C 5.1', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib -L/opt/APPS/forte-6/SUNWspro/WS6/lib '
    libpth=/usr/local/lib /opt/APPS/forte-6/SUNWspro/WS6/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldb -ldl -lm -lc
    perllibs=-lsocket -lnsl -ldl -lm -lc
    libc=/lib/, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-KPIC', lddlflags='-G -L/usr/local/lib -L/opt/APPS/forte-6/SUNWspro/WS6/lib'

Locally applied patches:

@INC for perl v5.6.1:

Environment for perl v5.6.1:
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About