[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problems compiling jigdo 0.6.1 on Mandrake Cooker



Hi!

I'm trying to compile jigdo 0.6.1 on Mandrake Cooker, and got some
problems.

First, Mandrake ships libdb-3.3.  However, there's no -ldb3, all there
is, is a -ldb-3.3.  Because of this, the configure script fails when it
checks for libdb 3.  Attached you find a patch which makes configure use
-ldb-3.3 instead of -ldb3.  But I think this patch should be patched to
make configure look for both -ldb3 and -ldb-3.3.

Also Mandrake ships gcc "2.96" as the default compiler.  jigdo does not
compile with this "version".  If I compile jigdo with gcc 3.0.3 (which
is also shipped), it compiles cleanly.  Maybe this should be noted on
the jigdo page and in the documentation.

BTW: If you're interested, I can also provide a RPM file containing
jigdo.  It will be part of the Mandrake Contrib section.

Alexander Skwar
-- 
How to quote:	http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:	http://www.iso-top.de      |     Jabber: askwar@charente.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
                       Uptime: 5 days 20 hours 49 minutes
diff -ur jigdo-0.6.1.original/configure jigdo-0.6.1/configure
--- jigdo-0.6.1.original/configure	Mon Dec 17 21:19:14 2001
+++ jigdo-0.6.1/configure	Sun Jan 20 19:08:00 2002
@@ -1421,20 +1421,20 @@
 
 echo "$ac_t""\"$jigdo_libdb\"" 1>&6
 if test "$jigdo_libdb" = "force"; then
-    LIBS="-ldb3 $LIBS"
+    LIBS="-ldb-3.3 $LIBS"
     cat >> confdefs.h <<\EOF
 #define HAVE_LIBDB 1
 EOF
 
 elif test "$jigdo_libdb" = "yes"; then
-    echo $ac_n "checking for db_create in -ldb3""... $ac_c" 1>&6
-echo "configure:1432: checking for db_create in -ldb3" >&5
+    echo $ac_n "checking for db_create in -ldb-3.3""... $ac_c" 1>&6
+echo "configure:1432: checking for db_create in -ldb-3.3" >&5
 ac_lib_var=`echo db3'_'db_create | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-ldb3  $LIBS"
+LIBS="-ldb-3.3  $LIBS"
 cat > conftest.$ac_ext <<EOF
 #line 1440 "configure"
 #include "confdefs.h"
@@ -1509,11 +1509,11 @@
         echo "$ac_t""   * libdb3 not found - either install it, or use" 1>&6
         echo "$ac_t""   * \`configure --without-libdb' to disable the db3" 1>&6
         echo "$ac_t""   * file cache of jigdo-file. If this check should not" 1>&6
-        echo "$ac_t""   * have failed, force -ldb3 to be used with" 1>&6
+        echo "$ac_t""   * have failed, force -ldb-3.3 to be used with" 1>&6
         echo "$ac_t""   * \`configure --with-libdb=force'" 1>&6
         { echo "configure: error: libdb3 not found." 1>&2; exit 1; }
         else
-        LIBS="-ldb3 $LIBS"
+        LIBS="-ldb-3.3 $LIBS"
         cat >> confdefs.h <<\EOF
 #define HAVE_LIBDB 1
 EOF
diff -ur jigdo-0.6.1.original/configure.in jigdo-0.6.1/configure.in
--- jigdo-0.6.1.original/configure.in	Sun Dec  2 02:00:26 2001
+++ jigdo-0.6.1/configure.in	Sun Jan 20 19:08:03 2002
@@ -69,7 +69,7 @@
     jigdo_libdb="$withval", jigdo_libdb="yes")
 AC_MSG_RESULT(\"$jigdo_libdb\")
 if test "$jigdo_libdb" = "force"; then
-    LIBS="-ldb3 $LIBS"
+    LIBS="-ldb-3.3 $LIBS"
     AC_DEFINE(HAVE_LIBDB)
 elif test "$jigdo_libdb" = "yes"; then
     AC_CHECK_LIB(db3, db_create, have_libdb="yes", have_libdb="no")
@@ -78,11 +78,11 @@
         AC_MSG_RESULT([   * libdb3 not found - either install it, or use])
         AC_MSG_RESULT([   * \`configure --without-libdb' to disable the db3])
         AC_MSG_RESULT([   * file cache of jigdo-file. If this check should not])
-        AC_MSG_RESULT([   * have failed, force -ldb3 to be used with])
+        AC_MSG_RESULT([   * have failed, force -ldb-3.3 to be used with])
         AC_MSG_RESULT([   * \`configure --with-libdb=force'])
         AC_MSG_ERROR(libdb3 not found.)
         else
-        LIBS="-ldb3 $LIBS"
+        LIBS="-ldb-3.3 $LIBS"
         AC_DEFINE(HAVE_LIBDB)
     fi
 elif test "$jigdo_libdb" != "no"; then

Reply to: