develooper Front page | perl.perl5.porters | Postings from January 2004

Re: [perl #24444] ndbm gdbm problem in make test

From:
Warren L Dodge
Date:
January 22, 2004 15:36
Subject:
Re: [perl #24444] ndbm gdbm problem in make test
Message ID:
200401222334.i0MNYm6L008010@rosewood.cse.tek.com


This seemed to work fine. I also had to adjust the ODBM hints file to make
those tests pass.

What I found was that the Redhat release we are using does not provide the
libgdbm-compat library. Or at least we could not find it.

I built gdbm and installed the compat lib to make it work.

Perhaps this is an omission in the Linux release?


uname -a
Linux tekcs22 2.4.21-4.ELhugemem #1 SMP Fri Oct 3 17:31:20 EDT 2003 i686 i686 i386 GNU/Linux
with libc-2.3.2.so

>  Date: 21 Jan 2004 22:33:27 -0000
>  From: "Scott Taylor via RT" <perlbug-followup@perl.org>
>  Reply-To: perlbug-followup@perl.org
>  X-RT-Loop-Prevention: perl
>  RT-Ticket: perl #24444
>  Managed-by: RT 3.0.8 (http://www.bestpractical.com/rt/)
>  RT-Originator: scott@303underground.com
>  
>  gdbm-1.8.3 moved the "old" ndbm functions from libgdbm.so to
>  libgdbm_compat.so - I've had good luck making the following change:
>  
>  
>  
>  --- perl-5.8.2/ext/NDBM_File/hints/linux.pl.orig	2003-11-11
>  00:50:43.924885744 -0700
>  +++ perl-5.8.2/ext/NDBM_File/hints/linux.pl	2003-11-11
>  00:51:05.631585824 -0700
>  @@ -3,4 +3,4 @@
>   # (no null key support)
>   # Jonathan Stowe <gellyfish@gellyfish.com>
>   use Config;
>  -$self->{LIBS} = ['-lgdbm'] if $Config{libs} =~ /(?:^|\s)-lgdbm(?:\s|$)/;
>  +$self->{LIBS} = ['-lgdbm -lgdbm_compat'] if $Config{libs} =~ /(?:^|\s)-lgdbm(?:\s|$)/;
>  
>  



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