Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70232 - kdesdk 3.3.1 build fails due to undefined reference
Summary: kdesdk 3.3.1 build fails due to undefined reference
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: AMD64 Linux
: High major
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-06 02:28 UTC by Gian-Carlo Pascutto
Modified: 2004-11-07 13:08 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 Gian-Carlo Pascutto 2004-11-06 02:28:27 UTC
Emerging kdesdk fails on AMD64 with following error:

/bin/sh ../../../../libtool --silent --mode=link --tag=CXX x86_64-pc-linux-gnu-g++  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O3 -pipe -fomit-frame-pointer -march=k8 -fno-inline-functions -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION    -o kbabeldict_dbsearchengine.la -rpath /usr/kde/3.3/lib/kde3 -L/usr/X11R6/lib64 -L/usr/qt/3/lib -L/usr/kde/3.3/lib  -module -avoid-version -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -L. KDBSearchEngine.lo preferenceswidget.lo dbse_factory.lo database.lo dbscan.lo dbseprefwidget.lo ../../libkbabeldictplugin.la ../../../common/libkbabelcommon.la -lkdeui -lkio -ldb
.libs/database.o(.text+0x3cf5): In function `DataBaseManager::createDataBase(QString, QString, int)':
: undefined reference to `db_create_4000'
.libs/database.o(.text+0x3e49): In function `DataBaseManager::createDataBase(QString, QString, int)':
: undefined reference to `db_create_4000'
.libs/database.o(.text+0x3f98): In function `DataBaseManager::createDataBase(QString, QString, int)':
: undefined reference to `db_create_4000'
.libs/database.o(.text+0x40eb): In function `DataBaseManager::createDataBase(QString, QString, int)':
: undefined reference to `db_create_4000'
.libs/database.o(.text+0x46a1): In function `DataBaseManager::openDataBase()':
: undefined reference to `db_create_4000'
.libs/database.o(.text+0x46af): more undefined references to `db_create_4000' follow
collect2: ld returned 1 exit status
make[5]: *** [kbabeldict_dbsearchengine.la] Error 1
make[5]: Leaving directory `/var/tmp/portage/kdesdk-3.3.1/work/kdesdk-3.3.1/kbabel/kbabeldict/modules/dbsearchengine'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/kdesdk-3.3.1/work/kdesdk-3.3.1/kbabel/kbabeldict/modules'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdesdk-3.3.1/work/kdesdk-3.3.1/kbabel/kbabeldict'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdesdk-3.3.1/work/kdesdk-3.3.1/kbabel'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdesdk-3.3.1/work/kdesdk-3.3.1'
make: *** [all] Error 2

!!! ERROR: kde-base/kdesdk-3.3.1 failed.
!!! Function kde_src_compile, Line 142, Exitcode 2
!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1. emerge -vDu world
2.
3.




gentoo64 giancarlo # emerge info
Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.2,
glibc-2.3.4.20041102-r0, 2.6.9-rc3 x86_64)
=================================================================
System uname: 2.6.9-rc3 x86_64 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.6.5
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r6
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe -fomit-frame-pointer -march=k8 -fno-inline-functions"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -pipe -fomit-frame-pointer -march=k8 -fno-inline-functions"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks fixpackages sandbox"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aac acpi alsa apache2 arts audiofile avantgo berkdb bitmap-fonts
bluetooth bonobo bzlib c++ ccache cdparanoia cdr chroot cjk clamav
clanJavaScript clanVoice codecs crypt cscope cups curl dcc dga directfb doc dts
dvd dvdr dvdread emacs emoticon erandom esd exif f77 faac faad fam fftw firefox
flac foreign-package freetts freetype ftp gcj gdbm gif gimp gnokii gnomedb
gnuplot gphoto2 gpm gprof gs gstreamer gtk gtkhtml hal iconv icq idea
imagemagick imlib ipv6 irmc j2ee java javacomm javadoc jce jikes jit jp2 jpeg
junit kde koffice-plugin ldap libwww lua lzo lzw lzw-tiff mad maildir matroska
md5sum mikmod monkey mono motif mozcalendar mozilla mp3 mpeg4 msn multilib mysql
ncurses nls oggvorbis ooo-kde opengl oscar oss pam pcre pda pdf perl png python
pyzor qdbm qt radeon razor readline recode ruby samba sdl slang sox spamassassin
speex sqlite ssl tcltk tcpd tetex theora thunderbird tiff timidity transcode
truetype usb userlocales vim vim-with-x vnc wxwin wxwindows xinerama xml xml2
xmms xpm xrandr xv xvid xvmc zlib"
Comment 1 Gregorio Guidi (RETIRED) gentoo-dev 2004-11-06 08:10:38 UTC
the dbsearchengine plugin in kbabel uses /usr/include/db.h and
/usr/lib/libdb.so to compile, which are symlinks, could you check that?
maybe there's a mismatch.

Here I have:
# ls -l /usr/include/db.h /usr/lib/libdb.so
 ... /usr/include/db.h -> db4.1/db.h
 ... /usr/lib/libdb.so -> libdb-4.1.so

in /usr/include/db4.1/db.h there's:
 #define db_create db_create_4001

and the corresponding symbol is in /usr/lib/libdb-4.1.so:
# readelf -s /usr/lib/libdb-4.1.so | grep db_create
   481: 0001acbd    89 FUNC    GLOBAL DEFAULT   10 xdr___db_create_reply_400
   483: 0004bb18   322 FUNC    GLOBAL DEFAULT   10 db_create_4001
   717: 00018e7b   144 FUNC    GLOBAL DEFAULT   10 __db_db_create_4001
   998: 000273a8   231 FUNC    GLOBAL DEFAULT   10 __bam_db_create_4001
  1145: 000716c0   134 FUNC    GLOBAL DEFAULT   10 __ham_db_create_4001
  1175: 000959b8   104 FUNC    GLOBAL DEFAULT   10 __qam_db_create_4001
  1273: 0001ac64    89 FUNC    GLOBAL DEFAULT   10 xdr___db_create_msg_4001
Comment 2 Gian-Carlo Pascutto 2004-11-07 11:56:05 UTC
gentoo64 giancarlo # ls -l /usr/include/db.h /usr/lib/libdb.so
lrwxrwxrwx  1 root root  8 Sep 27 19:30 /usr/include/db.h -> db4/db.h
lrwxrwxrwx  1 root root 12 Sep 27 19:30 /usr/lib/libdb.so -> libdb-4.1.so

A look in db4/db.h shows db_create_4000 and not db_create_40001

gentoo64 giancarlo # readelf -s /usr/lib/libdb-4.1.so | grep db_create
   117: 0000000000027210    18 FUNC    GLOBAL DEFAULT   10 __dbcl_db_create_ret_4001
   193: 0000000000024af0   212 FUNC    GLOBAL DEFAULT   10 __dbcl_db_create_4001
   461: 0000000000021d00    84 FUNC    GLOBAL DEFAULT   10 xdr___db_create_reply_400
   463: 0000000000052ab0  1716 FUNC    GLOBAL DEFAULT   10 db_create_4001
   697: 0000000000020430   102 FUNC    GLOBAL DEFAULT   10 __db_db_create_4001
   978: 000000000002dda0   222 FUNC    GLOBAL DEFAULT   10 __bam_db_create_4001
  1126: 0000000000076e10   104 FUNC    GLOBAL DEFAULT   10 __ham_db_create_4001
  1157: 000000000009a9f0    77 FUNC    GLOBAL DEFAULT   10 __qam_db_create_4001
  1256: 0000000000021ca0    84 FUNC    GLOBAL DEFAULT   10 xdr___db_create_msg_4001

A bug in the db package?
Comment 3 Gregorio Guidi (RETIRED) gentoo-dev 2004-11-07 12:30:14 UTC
yes, it seems something went wrong in the installation of db,
the symlink should point to db4.1/db.h.
I suggest reemerging db-4.1.
Comment 4 Gian-Carlo Pascutto 2004-11-07 13:08:53 UTC
Problem solved by reemerging db. Thanks.