Re: [PATCH] [perl #29612] ndbm failure in make test

[email protected] (Alexey Tourbin) Sat, 22 May 2004 02:22:22 +0400
Newsgroups perl.perl5.porters,perl.perl5.build
Message-ID <[email protected]>
--/qIPZgKzMPM+y5U5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, May 17, 2004 at 08:11:41PM -0700, Yitzchak Scott-Thoennes wrote:
> 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.
>=20
> 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.
>=20
> So, are you sure the libndbm* files are from your fresh gdbm
> installation?  If so, commenting out the $self->{LIBS} =3D line in the
> linux hints file may help; if not, and there are the libgdbm_compat*
> files, changing it to say -lgdbm_compat may help.  Please let us know
> the results.

Please consider the following patch.

--- perl-5.9.1-20040521/ext/NDBM_File/hints/linux.pl-	2001-07-02 20:22:18 +=
0000
+++ perl-5.9.1-20040521/ext/NDBM_File/hints/linux.pl	2004-05-21 22:05:18 +0=
000
@@ -3,4 +3,6 @@
 # (no null key support)
 # Jonathan Stowe <[email protected]>
 use Config;
-$self->{LIBS} =3D ['-lgdbm'] if $Config{libs} =3D~ /(?:^|\s)-lgdbm(?:\s|$)=
/;
+use ExtUtils::Liblist;
+($self->{LIBS}) =3D ExtUtils::Liblist->ext('-lgdbm -lgdbm_compat')
+	if $Config{libs} =3D~ /(?:^|\s)-lgdbm(?:\s|$)/;

--/qIPZgKzMPM+y5U5
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAroEefBKgtDjnu0YRAmTeAKCEHDp96r4DFzQB0W8KnJGCZ0fG9wCfdWES
xcyKsF2wMAn8g/2knBnukA0=
=QuWo
-----END PGP SIGNATURE-----

--/qIPZgKzMPM+y5U5--