<<< Date Index >>>     <<< Thread Index >>>

[Mutt] #2887: mutt-1.5.15: make dies (cannot properly link against db-4.5 if db-4.2 is also installed)



#2887: mutt-1.5.15: make dies (cannot properly link against db-4.5 if db-4.2 is
also installed)

 {{{
 Package: mutt
 Version: 1.5.15
 Severity: normal

 -- Please type your report below this line

 On my system I have both db-4.2 and db-4.5. The autoconf checks cause the
 build to fail when linking with a failure about a missing db_create_4002
 (or
 something of the sort). The direct cause is that the compilation flags are
 autodetected as "-I/usr/include/db-4.2 -ldb-4.5".

 The autoconf checks following AC_MSG_CHECKING([for BerkeleyDB > 4.0]) fail
 like this:

 1. The outer "for" loop (the one checking for the header) loops over both
    db-4.5 and db-4.2. It first tries with db-4.5.

 2. The inner "for" loop (the one checking for the library) finds db-4.5
 and
    exits thanks to "test x$ac_cv_dbcreate = xyes && break"

 3. The outer "for" loop does not break. It successfully is executed for
 db-4.2
    once again (/usr/include/db-4.2/db.h).

 4. The inner "for" loop finds db-4.5 again and breaks.

 5. The headers of db-4.2 and the libraries of db-4.5 end up being used.

 Adding a "test x$ac_cv_dbcreate = xyes && break" before the "done" of the
 outer loop fixes the problem.

 --- configure.ac        2007-05-12 05:48:23.000000000 +0900
 +++ /tmp/configure.ac   2007-05-12 05:23:26.000000000 +0900
 @@ -914,6 +914,7 @@
                          test x$ac_cv_dbcreate = xyes && break
                      fi
                      done
 +                   test x$ac_cv_dbcreate = xyes && break
                  fi
              done
              test x$BDB_LIB != x && break


 -- System Information
 System Version: Linux lion 2.6.21-y3 #1 SMP Fri Apr 27 00:16:21 JST 2007
 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD
 GNU/Linux

 -- Build environment information

 (Note: This is the build environment installed on the system
 muttbug is run on.  Information may or may not match the environment
 used to build mutt.)

 - gcc version information
 x86_64-pc-linux-gnu-gcc
 Using built-in specs.
 Target: x86_64-pc-linux-gnu
 Configured with: /var/tmp/portage/gcc-4.1.1-r3/work/gcc-4.1.1/configure
 --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1
 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include
 --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1
 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/man
 --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/info --with-gxx-
 include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include/g++-v4
 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
 --enable-nls --without-included-gettext --with-system-zlib --disable-
 checking --disable-werror --enable-secureplt --disable-libunwind-
 exceptions --enable-multilib --disable-libmudflap --disable-libssp
 --disable-libgcj --enable-languages=c,c++ --enable-shared --enable-
 threads=posix --enable-__cxa_atexit --enable-clocale=gnu
 Thread model: posix
 gcc version 4.1.1 (Gentoo 4.1.1-r3)

 - CFLAGS
 -Wall -pedantic -march=k8 -O2 -pipe

 -- Mutt Version Information

 Mutt 1.5.15 (2007-04-06)
 Copyright (C) 1996-2007 Michael R. Elkins and others.
 Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
 Mutt is free software, and you are welcome to redistribute it
 under certain conditions; type `mutt -vv' for details.

 System: Linux 2.6.21-y3 (x86_64)
 ncurses: ncurses 5.6.20061217 (compiled with 5.6)
 Compile options:
 -DOMAIN
 -DEBUG
 +HOMESPOOL  -USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE
 -USE_FCNTL  +USE_FLOCK   -USE_INODESORT
 +USE_POP  +USE_IMAP  -USE_SMTP  -USE_GSS  +USE_SSL_OPENSSL
 -USE_SSL_GNUTLS  -USE_SASL  +HAVE_GETADDRINFO
 -HAVE_REGCOMP  +USE_GNU_REGEX  +COMPRESSED
 +HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET
 +HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM
 +CRYPT_BACKEND_CLASSIC_PGP  +CRYPT_BACKEND_CLASSIC_SMIME
 -CRYPT_BACKEND_GPGME
 -EXACT_ADDRESS  -SUN_ATTACHMENT
 +ENABLE_NLS  -LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET
 +HAVE_LANGINFO_YESEXPR
 +HAVE_ICONV  -ICONV_NONTRANS  -HAVE_LIBIDN  +HAVE_GETSID  +USE_HCACHE
 -ISPELL
 SENDMAIL="/usr/sbin/sendmail"
 MAILPATH="Maildir"
 PKGDATADIR="/usr/share/mutt"
 SYSCONFDIR="/etc/mutt"
 EXECSHELL="/bin/sh"
 -MIXMASTER
 To contact the developers, please mail to <mutt-dev@xxxxxxxx>.
 To report a bug, please visit http://bugs.mutt.org/.

 patch-1.5.15.sidebar.20070408.txt
 patch-1.5.6.dw.pgp-timeout.1
 patch-1.5.6.dw.mbox-hook.1
 rr.compressed
 patch-1.5.4.lpr.collapse_flagged Lukas P. Ruf <lukas.ruf@xxxxxx>
 }}}

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/2887>