develooper Front page | perl.perl5.porters | Postings from July 2009

Re: 5.10.1 status update / NDBM_File + AnyDBM_File - problem found

From:
Rainer Tammer
Date:
July 16, 2009 06:10
Subject:
Re: 5.10.1 status update / NDBM_File + AnyDBM_File - problem found
Message ID:
4A5F26B1.9040704@tammer.net
Hello,
I have found the problem why the NDBM_File / AnyDBM_File test fail on
certain AIX machines. As soon as the AIX Toolbox version of lib
gdbm-1.8.3-2 / gdbm-devel-1.8.3-2 is installed the two tests fail.

The lib gdbm also contains dbm_xxx() functions (ndbm flavor) and if the
lib gdbm is present these functions and not the libc versions are used.

If the lib gdbm (Toolbox version) is installed the following config.sh
vars are different:

i_gdbm='define'
i_gdbmndbm='define'
libs='... -lgdbm ... -lc'
libsfiles='... libgdbm.a ... libc.a'
libsfound='... /lib/libgdbm.a ... /lib/libc.a'

Without an installed libgdbm:

i_gdbm='undef'
i_gdbmndbm='undef'

So a possible solution to the problem would be to:

1) Ignore lib gdbm on AIX if present
2) Ignore lib gdbm on AIX if installed via the AIX Toolbox

I think that the 1. solution would be the most secure way. There is no
easy way during Configure to detect if the present libgdbm is working.

What do you think ??

Should I develop a patch to implement solution 1. or are there any
objections ?

Bye
 Rainer







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