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

[perl #24444] ndbm gdbm problem in make test

From:
Warren L Dodge
Date:
November 7, 2003 22:08
Subject:
[perl #24444] ndbm gdbm problem in make test
Message ID:
rt-24444-67244.18.8583177005383@rt.perl.org
# 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: http://rt.perl.org/rt2/Ticket/Display.html?id=24444 >


This is a bug report for perl from warren.dodge@tek.com,
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
test 

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

In looking at NDBM_File.so with ldd I see

        libgdbm.so.3 => /proj/wdt/i686_linux2.4/lib/libgdbm.so.3 (0x40009000)
        libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (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/libndbm.so file on Linux. I have installed gdbm as seen
above. 

I found this in the following file ext/NDBM_File/hints/linux.pl

# Some distributions have both gdbm and ndbm
# Prefer gdbm to avoid the broken ndbm in some distributions
# (no null key support)
# Jonathan Stowe <gellyfish@gellyfish.com>
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]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=medium
---
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:
  Platform:
    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 '
    config_args=''
    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
  Compiler:
    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',
    optimize='-O3',
    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/libc-2.2.5.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.2.5'
  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:
    /proj/wdt/gnu_i686_linux2.4/perl-5.8.1/lib/5.8.1/i686-linux-thread-multi
    /proj/wdt/gnu_i686_linux2.4/perl-5.8.1/lib/5.8.1
    /proj/wdt/gnu_i686_linux2.4/perl-5.8.1/addons/lib/site_perl/5.8.1/i686-linux-thread-multi
    /proj/wdt/gnu_i686_linux2.4/perl-5.8.1/addons/lib/site_perl/5.8.1
    /proj/wdt/gnu_i686_linux2.4/perl-5.8.1/addons/lib/site_perl
    .

---
Environment for perl v5.8.1:
    HOME=/login/warrend/lxhome
    LANG=C
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=.:/proj/wdt/bin:/proj/wdt/i686_linux2.4/bin:/usr/X11R6/bin:/login/warrend:/login/warrend/bin:/login/warrend/bin/i686_linux2.4:/bin:/usr/bin:/etc:/usr/sbin
    PERL_BADLANG (unset)
    SHELL=/bin/tcsh




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About