Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find ODBM library while compiling 5.9.5 #9011

Closed
p5pRT opened this issue Aug 31, 2007 · 4 comments
Closed

Can't find ODBM library while compiling 5.9.5 #9011

p5pRT opened this issue Aug 31, 2007 · 4 comments

Comments

@p5pRT
Copy link

p5pRT commented Aug 31, 2007

Migrated from rt.perl.org#45093 (status was 'resolved')

Searchable as RT45093$

@p5pRT
Copy link
Author

p5pRT commented Aug 31, 2007

From @clintongormley

Created by @clintongormley

This is a bug report for perl from clint@​traveljury.com,
generated with the help of perlbug 1.35 running under perl 5.9.5.

-----------------------------------------------------------------

Tried compiling perl5.9.5 on openSuSE 10.2. It compiled fine, but
theses tests failed​:

  ../ext/ODBM_File/t/odbm.t
  ../lib/DBM_Filter/t/01error.t
  ../lib/Memoize/t/errors.t

with an error message about not being able to load an odbm lib (can't
remember the exact message - this was late last night) and
  /ODBM_File.so​: undefined symbol​: dbminit

The problem is fixed by changing the file​: ext/ODBM_File/hints/linux.pl
to​:

  # uses GDBM dbm compatibility feature - at least on SuSE 8.0
  $self->{LIBS} = ['-lgdbm -lgdbm_compat'];

ie adding the '-lgdbm_compat'

After that compiles, tests and installs fine

Clint

Perl Info

Flags:
    category=core
    severity=high

Site configuration information for perl 5.9.5:

Configured by clinton at Fri Aug 31 01:48:11 CEST 2007.

Summary of my perl5 (revision 5 version 9 subversion 5) configuration:
  Platform:
    osname=linux, osvers=2.6.18.2-34-default, archname=x86_64-linux
    uname='linux getafix 2.6.18.2-34-default #1 smp mon nov 27 11:46:27 utc 2006 x86_64 x86_64 x86_64 gnulinux '
    config_args='-e -Dprefix=/home/clinton/localperl'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -pipe -I/usr/local/include'
    ccversion='', gccversion='4.1.2 20061115 (prerelease) (SUSE Linux)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /lib64 /usr/lib64 /usr/local/lib64
    libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.5.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.5'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib'

Locally applied patches:
    


@INC for perl 5.9.5:
    /home/clinton/localperl/lib/5.9.5/x86_64-linux
    /home/clinton/localperl/lib/5.9.5
    /home/clinton/localperl/lib/site_perl/5.9.5/x86_64-linux
    /home/clinton/localperl/lib/site_perl/5.9.5
    .


Environment for perl 5.9.5:
    HOME=/home/clinton
    LANG=en_GB.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH=:/usr/lib64/seamonkey:/usr/lib64/seamonkey:/usr/lib64/seamonkey
    LOGDIR (unset)
    PATH=/usr/lib/mozart/bin:/home/clinton/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin:/usr/sbin:/usr/sbin:/usr/sbin
    PERL_BADLANG (unset)
    SHELL=/bin/bash


@p5pRT
Copy link
Author

p5pRT commented Sep 1, 2007

From @rgs

On 31/08/07, via RT Clinton Gormley <perlbug-followup@​perl.org> wrote​:

Tried compiling perl5.9.5 on openSuSE 10.2. It compiled fine, but
theses tests failed​:

../ext/ODBM_File/t/odbm.t
../lib/DBM_Filter/t/01error.t
../lib/Memoize/t/errors.t

with an error message about not being able to load an odbm lib (can't
remember the exact message - this was late last night) and
/ODBM_File.so​: undefined symbol​: dbminit

The problem is fixed by changing the file​: ext/ODBM_File/hints/linux.pl
to​:

# uses GDBM dbm compatibility feature - at least on SuSE 8.0
$self->{LIBS} = ['-lgdbm -lgdbm_compat'];

ie adding the '-lgdbm_compat'

Thanks, I checked in the corresponding change as #31780 into bleadperl.

@p5pRT
Copy link
Author

p5pRT commented Sep 1, 2007

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Sep 1, 2007

@rgs - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant