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

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

Rainer Tammer
July 16, 2009 06:10
Re: 5.10.1 status update / NDBM_File + AnyDBM_File - problem found
Message ID:
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
vars are different:

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

Without an installed libgdbm:


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 ?

 Rainer Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About