Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 52660

Summary: perl-5.8.4 vs. gdbm-1.8.3: error while loading shared libraries: NDBM_File.so: undefined symbol: dbm_open
Product: Gentoo Linux Reporter: Ed Catmur <ed>
Component: [OLD] Core systemAssignee: Gentoo Perl team <perl>
Status: RESOLVED FIXED    
Severity: normal CC: mkrainer, stian, sven.koehler
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
URL: http://www.gossamer-threads.com/lists/perl/porters/183503?page=last
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: perl-5.8.4-NDBM-GDBM-compat.patch

Description Ed Catmur 2004-06-01 00:31:24 UTC
During test phase, we see:

error while loading shared libraries: ../lib/auto/NDBM_File/NDBM_File.so: undefined symbol: dbm_open

From linked thread:

> Looking at the hints in ext/NDBM_File/hints/linux.pl, it seems that
> perl is of the opinion that the libndbm.a library is to be avoided and
> the compatibility routines in libgdbm.a used instead.
> 
> However, I thought that as of gdbm-1.8.1, the compatibility routines
> were moved to a separate library libgdbm_compat.a. I see no sign of
> perl's configuration process checking for or using this library
> (except with cygwin), but I do see several linux bug reports where the
> library is being linked; this implies to me that some linux
> distributions are getting Configure to do so. 

gdbm 1.8.3 is the first post 1.8.0 version that has been made available to my Portage configuration.

The linked thread contains a patch which I will attach and which appears to fix the problem.
Comment 1 Ed Catmur 2004-06-01 00:31:56 UTC
Created attachment 32433 [details, diff]
perl-5.8.4-NDBM-GDBM-compat.patch
Comment 2 Robert Coie (RETIRED) gentoo-dev 2004-07-23 15:41:02 UTC
Thanks, this will make it into 5.8.4-r1 and beyond.
Comment 3 Sven 2004-08-11 18:46:52 UTC
Well, perl doesn't work that well on AMD64 this way. Why don't you mark perl 5.8.4-r1 stabel an all platforms where gdbm-1.8.3 is stable. Your are in a duty to do that, or something similar like including the patch in 5.8.4 (without r1) etc.
Comment 4 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-09-08 01:39:01 UTC
*** Bug 63096 has been marked as a duplicate of this bug. ***
Comment 5 Stian Skjelstad 2005-02-07 09:30:58 UTC
Isn't this bug resolved now?

I looked over the ebuilds, and perl-5.8.5-r3.ebuild for instance is flaged stable for all arcs including even ppc64
Comment 6 Michael Cummings (RETIRED) gentoo-dev 2005-08-04 05:11:33 UTC
Marking fixed since this hasn't been commented on as a problem since 2 stables
ago (5.8.5)