Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 117977 - kdevelop-3.3 build failure, bdb undefined refs...
Summary: kdevelop-3.3 build failure, bdb undefined refs...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-05 20:18 UTC by Dave Nebinger
Modified: 2006-01-05 20:40 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 Dave Nebinger 2006-01-05 20:18:29 UTC
I'm trying to build kdevelop-3.3, but the compile fails on undefined references to methods in sys-libs/db.  I'm including the dump from the screen, but the highlights are the failure to find the referenced methods followed by nm output showing that the method is definitely in the /usr/lib/libdb-4.2.so file...  Everything looks fine on my end (even the libtool command looks good in that it is linking in the -ldb so the references should be satisfied), so I don't know why it should be failing...

/bin/sh ../../libtool --silent --tag=CXX --mode=link i686-pc-linux-gnu-g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=athlon -pipe -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION    -o libkdevcatalog.la -rpath /usr/lib -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -L/usr/kde/3.5/lib -L/usr/qt/3/lib -L/usr/lib     tag.lo catalog.lo -ldb -lkdecore -lqt-mt  -lz -lpng -lz -lm -lXext -lX11  -lSM -lICE -lpthread
.libs/catalog.o: In function `Catalog::addIndex(QCString const&)':
catalog.cpp:(.text+0x603): undefined reference to `db_create'
catalog.cpp:(.text+0x60f): undefined reference to `db_strerror'
catalog.cpp:(.text+0x9ad): undefined reference to `db_strerror'
catalog.cpp:(.text+0xa1b): undefined reference to `db_strerror'
.libs/catalog.o: In function `Catalog::open(QString const&)':
catalog.cpp:(.text+0xbce): undefined reference to `db_create'
catalog.cpp:(.text+0xbda): undefined reference to `db_strerror'
catalog.cpp:(.text+0xce6): undefined reference to `db_strerror'
catalog.cpp:(.text+0xcf3): undefined reference to `db_strerror'
.libs/catalog.o: In function `Catalog::query(QValueList<QPair<QCString, QVariant> > const&)':
catalog.cpp:(.text+0x1906): undefined reference to `db_strerror'
catalog.cpp:(.text+0x1a90): undefined reference to `db_strerror'
.libs/catalog.o:catalog.cpp:(.text+0x1aa7): more undefined references to `db_strerror' follow
collect2: ld returned 1 exit status
distcc[13484] ERROR: compile (null) on localhost failed
make[3]: *** [libkdevcatalog.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdevelop-3.3.0/work/kdevelop-3.3.0/lib/catalog'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdevelop-3.3.0/work/kdevelop-3.3.0/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdevelop-3.3.0/work/kdevelop-3.3.0'
make: *** [all] Error 2

!!! ERROR: dev-util/kdevelop-3.3.0 failed.
!!! Function kde_src_compile, Line 173, Exitcode 2
!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, NOT this status message.

butthead ~ # nm -a /usr/lib/libdb-4.
libdb-4.1.a   libdb-4.1.la  libdb-4.1.so  libdb-4.2.a   libdb-4.2.la  libdb-4.2.so
butthead ~ # nm -a /usr/lib/libdb-4.2.so | grep db_create
00020900 T __bam_db_create_4002
00066ca0 T __db_db_create_4002
0006e170 T __dbcl_db_create_4002
00071980 T __dbcl_db_create_ret_4002
0003c400 T __ham_db_create_4002
0004df40 T __qam_db_create_4002
000878c0 T db_create_4002
00069900 T xdr___db_create_msg_4002
00069960 T xdr___db_create_reply_4002
Comment 1 Dave Nebinger 2006-01-05 20:40:53 UTC
Sorry, tracked it down to a db.h file in /usr/local/include that was causing the problem.  :-(