Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77223 - krecipes 0.6 compile fails due to undefined references to sqlite
Summary: krecipes 0.6 compile fails due to undefined references to sqlite
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-09 05:40 UTC by meyerm
Modified: 2005-01-10 11:09 UTC (History)
1 user (show)

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 meyerm 2005-01-09 05:40:16 UTC
The emerge of the krecipes 0.6-beta ebuild fails on my computer with the following message:

**********************
... stuff ;-) ...
/bin/sh ../../libtool --silent --mode=link --tag=CXX 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 -O2 -march=i686 -pipe -fomit-frame-pointer -fstack-protector-all -ftracer -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common    -o krecipes -R /usr/kde/3.3/lib -R /usr/qt/3/lib -R /usr/lib -L/usr/lib -L/usr/qt/3/lib -L/usr/kde/3.3/lib  main.o krecipes.o krecipesview.o pref.o recipe.o ingredient.o ingredientlist.o elementlist.o element.o ingredientproperty.o ingredientpropertylist.o editbox.o conversiontable.o unitratio.o unitratiolist.o propertycalculator.o setupwizard.o shoppingcalculator.o fractioninput.o mixednumber.o recipeactionshandler.o recipefilter.o krecipesiface_skel.o gui/libkstartuplogo.la DBBackend/libkrecipesdbs.la exporters/libkrecipesexporters.la importers/libkrecipesimporters.la dialogs/libkrecipesdialogs.la widgets/libkrecipeswidgets.la datablocks/libdatablocks.la DBBackend/recipedb.lo DBBackend/libqsqlite/libkrecqsqlite.la DBBackend/SQLite/libkrecsqlite.la -lsqlite3 DBBackend/MySQL/libkrecmysql.la  -lkhtml -lkspell
DBBackend/.libs/libkrecipesdbs.a(literecipedb.o)(.text+0x6115): In function `LiteRecipeDB::escape(QString const&)':
: undefined reference to `sqlite_mprintf'
DBBackend/.libs/libkrecipesdbs.a(literecipedb.o)(.text+0x612b): In function `LiteRecipeDB::escape(QString const&)':
: undefined reference to `sqlite_freemem'
DBBackend/libqsqlite/.libs/libkrecqsqlite.so: undefined reference to `sqlite_last_insert_rowid'
DBBackend/libqsqlite/.libs/libkrecqsqlite.so: undefined reference to `sqlite_open'
DBBackend/libqsqlite/.libs/libkrecqsqlite.so: undefined reference to `sqlite_exec'
DBBackend/libqsqlite/.libs/libkrecqsqlite.so: undefined reference to `sqlite_close'
collect2: ld returned 1 exit status
make[4]: *** [krecipes] Error 1
make[4]: Leaving directory `/var/tmp/portage/krecipes-0.6_beta/work/krecipes-0.6/krecipes/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/krecipes-0.6_beta/work/krecipes-0.6/krecipes/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/krecipes-0.6_beta/work/krecipes-0.6/krecipes'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/krecipes-0.6_beta/work/krecipes-0.6'
make: *** [all] Error 2

!!! ERROR: kde-misc/krecipes-0.6_beta 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.

**********************

I even tried with CXXFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer", didn't change.


Reproducible: Always
Steps to Reproduce:
1. emerge krecipes

Actual Results:  
see above  

Expected Results:  
a binary  

valhalla / # emerge info 
Portage 2.0.51-r8 (gcc34-x86-2004.2, gcc-3.4.3, glibc-2.3.4.20041102-r0, 
2.6.8.1 i686) 
================================================================= 
System uname: 2.6.8.1 i686 Intel(R) Xeon(TM) CPU 2.40GHz 
Gentoo Base System version 1.6.8 
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Sep  5 2004, 23:09:58)] 
dev-lang/python:     2.3.4 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.7.9, 1.5, 1.4_p6, 1.8.5-r2, 1.6.3, 1.9.3 
sys-devel/binutils:  2.15.92.0.2-r2 
sys-devel/libtool:   1.5.10-r2 
virtual/os-headers:  2.6.8.1-r2 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer -fstack-protector-all 
-ftracer" 
CHOST="i686-pc-linux-gnu" 
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/lib/mozilla/defaults/pref /usr/local/kde/3.2/share/config /usr/local/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/bind /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer -fstack-protector-all 
-ftracer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs buildpkg ccache distlocks sandbox" 
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/mirrors/gentoo/" 
LDFLAGS="" 
MAKEOPTS="-j5" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="MM_APACHE MM_GLIBC MM_KDE MM_MPLAYER MM_OPENOFFICE MM_OPENSSH MM_OPENVPN 
MM_XORG X X509 aalib acl adns alsa apache2 apm arts artswrappersuid avi berkdb 
bitmap-fonts cdparanoia cdr chroot crypt cups dga dio divx4linux dvb dvd dvdr 
dvdread encode ethereal exif f77 fam flac foomaticdb fortran gdbm gif gphoto2 
gpm gtk gtk2 imagemagick imap imlib innodb insecure-drivers ipv6 jabber jack 
java jpeg kde kerberos lcms ldap libg++ libwww mad maildir mailwrapper 
memlimit mikmod mmx mng motif mpeg mpi mysql nas ncurses network nptl nptlonly 
offensive oggvorbisooo-kde openal opengl oscar oss pam pcmcia pcre pda pdflib 
perl php pic pie png pnp posix ppds prelude pthreadspython qt quicktime 
readline recode rtc samba scanner sdl sftplogging shared sharedmem slang slp 
snmp sockets socks5 spell sqlite sse ssl svg svga tcpd tetex theora threads 
tidy tiff truetype trusted unicode usb vhosts wifix86 xine xinerama xml2 xmms 
xosd xpm xprint xv xvid zlib video_cards_radeon linguas_de"
Comment 1 Gregorio Guidi (RETIRED) gentoo-dev 2005-01-10 10:00:03 UTC
Have you got both sqlite-2 and sqlite-3 installed?
Comment 2 meyerm 2005-01-10 10:21:14 UTC
Yes, I have. Since qt needs sqlite-2 I've unemerged sqlite-3. Krecipes now builds ok. Thanks.

Your ebuild even says it needs sqlite-2*. But why does it have problems with another sqlite? It's in another slot and the libs are called libsqlite3-* instead libsqlite-*


I will close the bug now with "WORKSFORME" since the solutions is really straightforward. However it is not optimal - what do you think about blocking sqlite3 in the ebuild? Or must the configure process be adjusted to deal with both versions of the lib?
Comment 3 Gregorio Guidi (RETIRED) gentoo-dev 2005-01-10 10:40:22 UTC
It's a bug in the configure process, it will be fixed in the upcoming 0.6.2 version (see bug 77371).

In the meanwhile I changed the dep to not force sqlite-2.
Comment 4 meyerm 2005-01-10 11:09:36 UTC
OK, great to hear. Thank you.