Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 300836 - dev-db/sqlite-3.6.22: libsqlite3.so isnt properly linked
Summary: dev-db/sqlite-3.6.22: libsqlite3.so isnt properly linked
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Arfrever Frehtes Taifersar Arahesis (RETIRED)
URL:
Whiteboard:
Keywords:
: 300817 300916 301058 301664 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-01-13 13:22 UTC by Juergen Rose
Modified: 2010-01-22 11:34 UTC (History)
9 users (show)

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


Attachments
/var/tmp/portage/x11-libs/qt-sql-4.6.0-r1/temp/build.log (build.log,8.71 KB, text/plain)
2010-01-13 13:23 UTC, Juergen Rose
Details
build-log (Textdatei,19.10 KB, text/plain)
2010-01-13 16:04 UTC, Benjamin Schulz
Details
emerge --info (Textdatei,10.78 KB, text/plain)
2010-01-13 16:06 UTC, Benjamin Schulz
Details
sqlite-3.6.22-dlopen.patch (sqlite-3.6.22-dlopen.patch,452 bytes, patch)
2010-01-13 18:01 UTC, Alexandre Rostovtsev (RETIRED)
Details | Diff
ebuild to use above patch (sqlite-3.6.22.ebuild,3.53 KB, text/plain)
2010-01-13 18:02 UTC, Alexandre Rostovtsev (RETIRED)
Details
ebuild to use above patch (sqlite-3.6.22.ebuild,3.53 KB, text/plain)
2010-01-13 18:19 UTC, Alexandre Rostovtsev (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2010-01-13 13:22:25 UTC
'emerge sqlite' fails with:
...
x86_64-pc-linux-gnu-g++ -c -pipe -O2 -march=k8 -Wall -W  -I../../../mkspecs/linux-g++ -I. -I/usr/include/mysql -I/usr/include/postgresql/pgsql -I/usr/include/freetype2 -o sqlite.o sqlite.cpp
linking sqlite
/usr/lib64/libsqlite3.so: undefined reference to `dlsym'
/usr/lib64/libsqlite3.so: undefined reference to `dlerror'
/usr/lib64/libsqlite3.so: undefined reference to `dlopen'
/usr/lib64/libsqlite3.so: undefined reference to `dlclose'
collect2: ld returned 1 exit status
gmake: *** [sqlite] Error 1


It happens on i686 and x86_64 systems.

Reproducible: Always




root@condor:/root(14)# emerge --info =x11-libs/qt-sql-4.6.0-r1
Portage 2.1.7.16 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo-r1 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.32-gentoo-r1-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 13 Jan 2010 07:05:02 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r2, 1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news noclean parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
FFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="de fr"
MAKEOPTS="-j1"
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="/usr/local/portage/layman/zugaina /usr/local/portage/layman/dotnet /usr/local/portage/layman/science /usr/local/portage/layman/java-overlay /usr/local/portage/layman/perl-experimental /usr/local/portage/layman/suka /usr/local/portage/layman/lordvan /usr/local/portage/layman/x11 /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi administrator afs alsa amd64 amrr ao aotuv apache2 asf aspell audacious audiofile automount bash-completion beagle berkdb bjam blas bluetooth boo boost branding bzip2 c++ cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli consolekit corba cracklib crypt cups curl cxx daap dbus device-mapper dga dia djvu doc dri ds2490 dts dv dvb dvd dvdr dvi dxr3 eds elf emacs emboss encode epiphany esd evo examples exif expat extra extras fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran fpx fts3 fuse galago garmin gd gdal gdbm geolocation geos gif gimp ginac git glade glib glitz gml gmp gnokii gnome gnome-keyring gnuplot gnutls gphoto2 gpm graphics graphtft graphviz gs gsl gsm gstreamer gtk guile hal harness hddtemp hdf hdf5 hlapi http httpd hvm iconv icq icu id3 ide imagemagick imap innodb ipod ipv6 irda ithreads jabber jadetex java java5 java6 jbig john jpeg jpeg2k kde kerberos kexi kpathsea kvm ladspa lame lapack latex lcms ldap libffi libgda libnotify libsamplerate lirc lm_sensors lua lzo mad mail maildir mailwrapper math matroska mikmod mmx mmxext mng modules mono motif mozdevelop mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap multilib musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networking networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs ntp numarray numeric nvidia obex objc ocaml octave odbc ogdi ogg ole openexr opengl openmp pae pam pcre pda pdf perl plotutils plugins png podcast policykit posix postgres postscript ppds pppd preview-latex proj projectx pstricks pulseaudio pymol python qhull qt3support qt4 quicktime readline reflection reiserfs rle romio rpc rrdcgi rrdtool samba sasl science sdl server session slang slp smbclient smp sndfile snmp soup sox speex spell spl sql sqlite sse sse2 ssl startup-notification stlport subtitles subversion suexec svg swig sysfs szip t1lib tcl tcpd tex tex4ht texmacs theora threads thunar thunderbird tidy tiff tk tntc tools truetype udev unicode usb userlocales utempter v4l2 virtualbox vorbis wav webdav webdav-serf webkit wmf wxwidgets x264 xattr xcb xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="intel8x0" 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="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="tda10045 tda10046lifeview" ELIBC="glibc" INPUT_DEVICES="keyboard mouse                evdev               " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" QEMU_SOFTMMU_TARGETS="i386 ppc ppc64 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18 jruby" USERLAND="GNU" VIDEO_CARDS="nv nvidia nouveau vesa" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

x11-libs/qt-sql-4.6.0-r1 was built with the following:
USE="iconv (multilib) mysql odbc postgres qt3support sqlite (-aqua) -debug (-firebird) -pch" 



root@condor:/root(15)# emerge -pqv =x11-libs/qt-sql-4.6.0-r1
[ebuild   R   ] x11-libs/qt-sql-4.6.0-r1  USE="iconv mysql odbc postgres qt3support sqlite (-aqua) -debug (-firebird) -pch"
Comment 1 Juergen Rose 2010-01-13 13:23:13 UTC
Created attachment 216348 [details]
/var/tmp/portage/x11-libs/qt-sql-4.6.0-r1/temp/build.log
Comment 2 Benjamin Schulz 2010-01-13 15:16:37 UTC
on my system, it seems that one can emerge it either with mysql or sqlite, but not with both. 

Unfortunately, I need mysql for Kde4's akonadi, which is needed by kmail. I also need sqllite for qt-assistant and for the plotting program qtiplot.... 

So this bug implies that some software cannot be installed at the same time.
Comment 3 Rafał Mużyło 2010-01-13 15:47:55 UTC
(In reply to comment #2)
Huh ?
What are you talking about ? qt-sql database backends are independent
of each other.

As for the bug, that output suggests a problem with sqlite3,
not qt-sql.
build log of that one, please.


Comment 4 Benjamin Schulz 2010-01-13 16:03:14 UTC
yes you are right. It seems that I was upgrading from a previous version, where both useflags worked and got confused.Sorry.


Here is more output:

MySQL (thread-safe) enabled.                                                                                                                                 
OCI auto-detection... ()                                                                                                                                     
x86_64-pc-linux-gnu-g++ -c -pipe -march=native -O2 -pipe -fomit-frame-pointer -Wall -W  -I../../../mkspecs/linux-g++ -I. -I/usr/include/mysql -I/usr/include/postgresql/pgsql -I/usr/include/freetype2 -o oci.o oci.cpp                                                                                                   
oci.cpp:42:17: Fehler: oci.h: Datei oder Verzeichnis nicht gefunden                                                                                          
gmake: *** [oci.o] Fehler 1                                                                                                                                  
OCI disabled.                                                                                                                                                
ODBC auto-detection... ()                                                                                                                                    
x86_64-pc-linux-gnu-g++ -c -pipe -march=native -O2 -pipe -fomit-frame-pointer -Wall -W  -I../../../mkspecs/linux-g++ -I. -I/usr/include/mysql -I/usr/include/postgresql/pgsql -I/usr/include/freetype2 -o odbc.o odbc.cpp                                                                                                 
linking odbc                                                                                                                                                 
ODBC enabled.                                                                                                                                                
PostgreSQL auto-detection... ()                                                                                                                              
x86_64-pc-linux-gnu-g++ -c -pipe -march=native -O2 -pipe -fomit-frame-pointer -Wall -W  -I../../../mkspecs/linux-g++ -I. -I/usr/include/postgresql-8.4 -I/usr/include/mysql -I/usr/include/postgresql/pgsql -I/usr/include/freetype2 -o psql.o psql.cpp                                                                   
linking psql                                                                                                                                                 
PostgreSQL enabled.                                                                                                                                          
SQLite auto-detection... ()                                                                                                                                  
x86_64-pc-linux-gnu-g++ -c -pipe -march=native -O2 -pipe -fomit-frame-pointer -Wall -W  -I../../../mkspecs/linux-g++ -I. -I/usr/include/mysql -I/usr/include/postgresql/pgsql -I/usr/include/freetype2 -o sqlite.o sqlite.cpp                                                                                             
linking sqlite                                                                                                                                               
/usr/lib64/libsqlite3.so: undefined reference to `dlsym'                                                                                                     
/usr/lib64/libsqlite3.so: undefined reference to `dlerror'                                                                                                   
/usr/lib64/libsqlite3.so: undefined reference to `dlopen'                                                                                                    
/usr/lib64/libsqlite3.so: undefined reference to `dlclose'                                                                                                   
collect2: ld gab 1 als Ende-Status zurück                                                                                                                    
gmake: *** [sqlite] Fehler 1                                                                                                                                 
SQLite disabled.                                                                                                                                             
SQLite support cannot be enabled due to functionality tests!                                                                                                 
 Turn on verbose messaging (-v) to ./configure to see the final report.
 If you believe this message is in error you may use the continue
 switch (-continue) to ./configure to continue.
 * ERROR: x11-libs/qt-sql-4.6.0-r1 failed:
 *   ./configure failed
 *
 * Call stack:
 *     ebuild.sh, line   54:  Called src_configure
 *   environment, line 3490:  Called qt4-build_src_configure
 *   environment, line 3142:  Called die
 * The specific snippet of code:
 *       ./configure ${myconf} || die "./configure failed";
 *
 * If you need support, post the output of 'emerge --info =x11-libs/qt-sql-4.6.0-r1',
 * the complete build log and the output of 'emerge -pqv =x11-libs/qt-sql-4.6.0-r1'.
 * The complete build log is located at '/tmp/portage/x11-libs/qt-sql-4.6.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/x11-libs/qt-sql-4.6.0-r1/temp/environment'.
 * S: '/tmp/portage/x11-libs/qt-sql-4.6.0-r1/work/qt-everywhere-opensource-src-4.6.0'


Comment 5 Benjamin Schulz 2010-01-13 16:04:46 UTC
Created attachment 216375 [details]
build-log
Comment 6 Benjamin Schulz 2010-01-13 16:06:12 UTC
Created attachment 216376 [details]
emerge --info
Comment 7 Alexandre Rostovtsev (RETIRED) gentoo-dev 2010-01-13 17:02:01 UTC
This is caused by 
Comment 8 Alexandre Rostovtsev (RETIRED) gentoo-dev 2010-01-13 18:01:25 UTC
Created attachment 216381 [details, diff]
sqlite-3.6.22-dlopen.patch

(sorry for fail post above - epiphany went crazy)
This error occurs because sqlite-3.6.22's build process neglects to link libsqlite3.so.0.8.6 to libdl when built with USE=extensions
Patch to make sqlite link correctly is attached
Comment 9 Alexandre Rostovtsev (RETIRED) gentoo-dev 2010-01-13 18:02:52 UTC
Created attachment 216383 [details]
ebuild to use above patch
Comment 10 Alexandre Rostovtsev (RETIRED) gentoo-dev 2010-01-13 18:19:24 UTC
Created attachment 216385 [details]
ebuild to use above patch
Comment 11 Rafał Mużyło 2010-01-13 18:23:33 UTC
Solution in comment 8 looks correct.
Seems yet another sqlite autotools "success".
Comment 12 Rafał Mużyło 2010-01-13 23:34:14 UTC
*** Bug 300916 has been marked as a duplicate of this bug. ***
Comment 13 Benjamin Schulz 2010-01-14 17:29:32 UTC
Patch and ebuild works for me. 

Please get this in the portage three-
Comment 14 Martin Väth 2010-01-19 18:11:14 UTC
*** Bug 300817 has been marked as a duplicate of this bug. ***
Comment 15 Rafał Mużyło 2010-01-20 12:53:23 UTC
*** Bug 301058 has been marked as a duplicate of this bug. ***
Comment 16 Dror Levin (RETIRED) gentoo-dev 2010-01-20 20:47:11 UTC
*** Bug 301664 has been marked as a duplicate of this bug. ***
Comment 17 biohazrd 2010-01-21 07:14:58 UTC
Patch confirmed... I merely patched the source in the workdir and used ebuild command to compile and merge.  Didn't test the ebuild...

Thanks for the fix.
Comment 18 tman 2010-01-22 07:19:49 UTC
could someone put this in portage.

thx
Comment 19 Ben de Groot (RETIRED) gentoo-dev 2010-01-22 11:34:27 UTC
Fixed in 3.6.22-r1. Thanks for contributing!