Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 262568 - mail-filter/maildrop-2.0.4 fails - undefined reference to `db_create'
Summary: mail-filter/maildrop-2.0.4 fails - undefined reference to `db_create'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-15 15:04 UTC by glen martin
Modified: 2009-05-16 08:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description glen martin 2009-03-15 15:04:06 UTC
+++ This bug was initially created as a clone of Bug #124982 +++
I wasn't sure whether to reopen parent bug or create a new one, apologies if I guessed wrong.

I have db-4.2 and db-4.5 on my system. configure does not look for db-4.5, and therefore finds 4.2 resulting in unresolved db_create as in bug 12482.

I got past this by adding db-4.5 to the list in configure files, make distclean, and ebuild ... compile install qmerge.

<snip>
[I--] [M ] sys-libs/db-1.85-r2 (1)
[I--] [M ] sys-libs/db-4.2.52_p2-r1 (4.2)
[I--] [  ] sys-libs/db-4.5.20_p2-r1 (4.5)
</snip>

<snip console output>
(cd .libs && rm -f libbdbobj.la && ln -s ../libbdbobj.la libbdbobj.la)
/bin/sh ./libtool --tag=CXX   --mode=link i586-pc-linux-gnu-g++  -march=c3 -O2 -m3dnow -mmmx -pipe -static -Wl,-O1 -o testbdb testbdb.o libbdbobj.la -ldb-4.2
i586-pc-linux-gnu-g++ -march=c3 -O2 -m3dnow -mmmx -pipe -Wl,-O1 -o testbdb testbdb.o  ./.libs/libbdbobj.a /usr/lib/libdb-4.2.so -lpthread
./.libs/libbdbobj.a(bdbobj.o): In function `.L11':
bdbobj.c:(.text+0xef): undefined reference to `db_create'
/usr/lib/gcc/i586-pc-linux-gnu/3.4.6/../../../../i586-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
collect2: ld returned 1 exit status
distcc[26078] ERROR: compile (null) on localhost failed
make[2]: *** [testbdb] Error 1
make[2]: Leaving directory `/var/tmp/portage/mail-filter/maildrop-2.0.4/work/maildrop-2.0.4/bdbobj'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/mail-filter/maildrop-2.0.4/work/maildrop-2.0.4/bdbobj'
make: *** [all-recursive] Error 1
</snip>

<snip bdbobj/config.log>
configure:14282: result: GNU/Linux ld.so
configure:14306: checking how to hardcode library paths into programs
configure:14331: result: immediate
configure:20600: checking for db_create_4002 in -ldb-4.4
configure:20665: result: no
configure:20673: checking for db_create_4001 in -ldb-4.4
configure:20738: result: no
configure:20746: checking for db_create_4000 in -ldb-4.4
configure:20811: result: no
configure:20819: checking for db_create in -ldb-4.4
configure:20884: result: no
configure:20600: checking for db_create_4002 in -ldb-4.3
configure:20665: result: no
configure:20673: checking for db_create_4001 in -ldb-4.3
configure:20738: result: no
configure:20746: checking for db_create_4000 in -ldb-4.3
configure:20811: result: no
configure:20819: checking for db_create in -ldb-4.3
configure:20884: result: no
configure:20600: checking for db_create_4002 in -ldb-4.2
configure:20665: result: yes
configure:20901: checking for db_create
configure:20984: result: no
configure:20990: checking for db_create_4002
configure:21073: result: yes
configure:21079: checking for db_create_4001
configure:21162: result: no
configure:21168: checking for db_create_4000
configure:21251: result: no
configure:21290: checking limits.h usability
</snip>
Comment 1 glen martin 2009-03-15 15:10:02 UTC
Oops, typo in second paragraph, linked wrong bug.
should say "... resulting in unresolved db_create as in bug 124982."
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-15 15:13:55 UTC
Please add your "emerge --info".
Comment 3 glen martin 2009-03-15 15:21:48 UTC
Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.27-hardened-r8_s2 i686)
=================================================================
System uname: Linux-2.6.27-hardened-r8_s2-i686-VIA_Samuel_2-with-glibc2.1.3
Timestamp of tree: Sat, 14 Mar 2009 21:15:02 +0000
distcc 2.18.3 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-march=c3 -Os -m3dnow -mmmx -pipe -fomit-frame-pointer"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=c3 -Os -m3dnow -mmmx -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distcc distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ http://cudlug.cudenver.edu/gentoo/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/opt/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="acl apache2 berkdb bzip2 clamav cli cracklib crypt dri gdbm gif hardened hddtemp iconv imap isdnlog java ldap lm_sensors midi mudflap mysql mysqli ncurses nls nptl nptlonly openmp pam pcre perl php pic png ppds pppd python readline reflection session sockets spl ssl sysfs syslog tcpd threads unicode vhosts x86 zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="access auth auth_dbm auth_anon auth_digest authz_host alias file-cache echo charset-lite cache dir disk-cache mem-cache ext-filter case_filter case-filter-in deflate mime-magic cern-meta expires filter headers unique-id proxy proxy-connect proxy-ftp proxy-http info include cgi cgid dav dav-fs vhost-alias speling rewrite log_config logio env setenvif mime status autoindex asis negotiation dir imap actions userdir so" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 4 Torsten Veller (RETIRED) gentoo-dev 2009-05-16 08:05:30 UTC
This should be fixed in maildrop-2.1.0

Thanks