Skip to content
Tcl Source Code View Ticket
Login

View Ticket

cvs head thread package configure bugs

Closed / Fixed1076117fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-11-30 16:41:14
1. Thread package assumes that gdbm will be installed
in one of only 4 places - $exec_prefix $prefix,
/usr/local, or /usr .
However, users have this package installed elsewhere as
well.

2. The code in configure has a bug when checking for
existence of the library.  It is coded:

for i in `ls -d ${exec_prefix}/lib 2>/dev/null` \
                `ls -d ${prefix}/lib 2>/dev/null` \
                `ls -d /usr/local/lib 2>/dev/null` \
                `ls -d /usr/lib 2>/dev/null` ; do
            if test -f "$i/libgdbm*" ; then
                libdir=`(cd $i; pwd)`
                break
            fi
        done


This, however, makes the assumption that there will
never be more than one file in the directory which
begins libgdbm.  If the user has more than one version
installed, or the installation looks like:
/projects/gnu/sparc-sun-solaris2.8/lib/libgdbm.so.3.0.0
/projects/gnu/sparc-sun-solaris2.8/lib/libgdbm.so.3
/projects/gnu/sparc-sun-solaris2.8/lib/libgdbm.so
/projects/gnu/sparc-sun-solaris2.8/lib/libgdbm.la
/projects/gnu/sparc-sun-solaris2.8/lib/libgdbm.a

then the if fails to identify that the library exists
in this directory (because there's a list used in a
place where a single file name is  expected....)
vasiljevicplain2004-12-18 20:47:03
Logged In: YES 
user_id=95086

1.  You can now use 
  "--with-gdbm=/my/dir" 
option to tell where your gdbm files are. Note: both library 
and include files should be in the same directory for this
to succeed.  Use just "--with-gdbm" and I will look into 
some predefined dirs and try to locate it.

2. Fixed.
Log in (anonymous is fine) to add a comment.