develooper Front page | perl.perl5.porters | Postings from November 2003

[perl #24444] ndbm gdbm problem in make test

Warren L Dodge
November 7, 2003 22:08
[perl #24444] ndbm gdbm problem in make test
Message ID:
# New Ticket Created by  Warren L Dodge 
# Please include the string:  [perl #24444]
# in the subject line of all future correspondence about this issue. 
# <URL: >

This is a bug report for perl from,
generated with the help of perlbug 1.34 running under perl v5.8.1.

[Please enter your report here]

I am mailing this on Solaris because the Linux email is not working.
I cut-n-pasted the meat of the Linux bug into this solaris report.

I just built perl-5.8.1 and had the following error five times during the make

perl: relocation error: 
./lib/auto/NDBM_File/ undefined symbol: dbm_open

In looking at with ldd I see => /proj/wdt/i686_linux2.4/lib/ (0x40009000) => /lib/i686/ (0x42000000)
        /lib/ => /lib/ (0x80000000)

Notice it is using the libgdbm (gnu) library. This doesn't seem right. There
is not a dbm_open function in that lib file.

Ther is a /usr/lib/ file on Linux. I have installed gdbm as seen

I found this in the following file ext/NDBM_File/hints/

# Some distributions have both gdbm and ndbm
# Prefer gdbm to avoid the broken ndbm in some distributions
# (no null key support)
# Jonathan Stowe <>
use Config;
$self->{LIBS} = ['-lgdbm'] if $Config{libs} =~ /(?:^|\s)-lgdbm(?:\s|$)/;

Perhaps there is a logic problem in here somewhere??

This is the first time I have built perl on Linux so I can't tell you if it
has worked previously.

Let me know what information I can provide or what I can do to help solve
this problem. 

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

Configured by warrend at Fri Nov  7 12:00:08 PST 2003.

Summary of my perl5 (revision 5.0 version 8 subversion 1) configuration:
    osname=linux, osvers=2.4.20-20.7bigmem, archname=i686-linux-thread-multi
    uname='linux zephyr 2.4.20-20.7bigmem #1 smp mon aug 18 14:34:37 edt 2003 i686 unknown unknown gnulinux '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
    cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -I/proj/wdt/i686_linux2.4/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -I/proj/wdt/i686_linux2.4/include -I/usr/include/gdbm'
    ccversion='', gccversion='3.3.2', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =''
    libpth=/lib /usr/lib /proj/wdt/i686_linux2.4/lib
    libs=-lnsl -lndbm -lgdbm -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=/lib/, so=so, useshrplib=true,
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic -Wl,-rpath,/proj/wdt/gnu_i686_linux2.4/perl-5.8.1/lib/5.8.1/i686-linux-thread-multi/CORE'
    cccdlflags='-fpic', lddlflags='-shared'

Locally applied patches:

@INC for perl v5.8.1:

Environment for perl v5.8.1:
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)
    SHELL=/bin/tcsh Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About