Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 130053

Summary: kexi fails with -as-needed
Product: Gentoo Linux Reporter: Patrizio Bassi <patrizio.bassi>
Component: New packagesAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 129413    

Description Patrizio Bassi 2006-04-15 05:08:51 UTC
Making all in .
make[1]: Entering directory `/var/tmp/portage/kexi-1.5.0/work/kexi-1.5.0/kexi/migration'
/bin/sh ../../libtool --silent --mode=link --tag=CXX 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 -O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse -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 -DHAVE_KNEWSTUFF -fexceptions  -include ../../kexi/kexi_global.h -DKEXI_NO_AUTOFIELD_WIDGET -DKEXI_NO_CURSOR_PROPERTY -DKEXI_NO_CTXT_HELP -DKEXI_NO_SUBFORM  -Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,--as-needed -Wl,-hashvals -Wl,-zdynsort -o keximigratetest -R /usr/lib -R /usr/kde/3.5/lib -R /usr/qt/3/lib -R /usr/lib -R /usr/kde/3.5/lib -L/usr/kde/3.5/lib -L/usr/qt/3/lib -L/usr/lib    -L/usr/kde/3.5/lib keximigratetest.o libkeximigrate.la ../../kexi/core/libkexicore.la ../../kexi/kexidb/libkexidb.la ../../kexi/widget/libkexiextendedwidgets.la ../../kexi/main/libkeximain.la -lqt-mt  -lz -lpng -lz -lm -lXext -lX11  -lSM -lICE -lpthread -lkdecore
/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/../../../../i686-pc-linux-gnu/bin/ld: warning: libkexicore.so.1, needed by ./.libs/libkeximigrate.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/../../../../i686-pc-linux-gnu/bin/ld: warning: libkexiextendedwidgets.so.1, needed by ./.libs/libkeximigrate.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/../../../../i686-pc-linux-gnu/bin/ld: warning: libkeximain.so.1, needed by ./.libs/libkeximigrate.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/../../../../i686-pc-linux-gnu/bin/ld: warning: libkexiutils.so.1, needed by ./.libs/libkeximigrate.so, not found (try using -rpath or -rpath-link)
/usr/lib/libkexidb.so.0: undefined reference to `KexiDB::Parser::~Parser()'
/usr/lib/libkexidb.so.0: undefined reference to `KexiDB::Parser::Parser(KexiDB::Connection*)'
/usr/lib/libkexidb.so.0: undefined reference to `KexiDB::Parser::query()'
/usr/lib/libkexidb.so.0: undefined reference to `tname(int)'
/usr/lib/libkexidb.so.0: undefined reference to `KexiDB::Parser::parse(QString const&)'
collect2: ld returned 1 exit status
make[1]: *** [keximigratetest] Error 1
make[1]: Leaving directory `/var/tmp/portage/kexi-1.5.0/work/kexi-1.5.0/kexi/migration'
make: *** [all-recursive] Error 1


removing --as-needed fixes the linking
Comment 1 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-04-15 06:28:07 UTC
I think that this might be related to gcc 4.1. Did you try to merge it with the current stable version of gcc?
Comment 2 Patrizio Bassi 2006-04-15 08:22:00 UTC
no, i have gcc 4.1.0 only.

it shouldn't be due to gcc but binutils at least.
however i suspect a wrong libs order, cause all kde and koffice packages works perfectly.
and all other kexi linking works too.

diego petten
Comment 3 Patrizio Bassi 2006-04-15 08:22:00 UTC
no, i have gcc 4.1.0 only.

it shouldn't be due to gcc but binutils at least.
however i suspect a wrong libs order, cause all kde and koffice packages works perfectly.
and all other kexi linking works too.

diego pettenò can help us, so i CC him.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-15 08:31:34 UTC
No need to CC me here, I get kde@g.o mails :)

I'm building kexi right now as this kind of error is new to me. As soon as I can reproduce I'll investigate and hopefully prepare a patch.
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-15 08:38:12 UTC
Hmm here kexi built fine, which verison of ld are you using and which useflag to kexi?
Comment 6 Patrizio Bassi 2006-04-15 10:48:54 UTC
it's the first and only problem i had with k* packages.

and, as i wrote before, all other linkings are ok.

my use:

[ebuild   R   ] app-office/kexi-1.5.0  USE="arts mysql postgres xinerama -debug" 0 kB


my emerge info:

Portage 2.1_pre7-r5 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.16.5 i686)
=================================================================
System uname: 2.6.16.5 i686 Pentium III (Katmai)
Gentoo Base System version 1.12.0_pre17
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.91.0.6-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/mail/dspam /opt/openjms/config /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/control /var/run/dspam"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://gentoo.ngi.it"
LANG="it_IT.utf8"
LC_ALL="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,--as-needed -Wl,-hashvals -Wl,-zdynsort"
LINGUAS="it"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/myportage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X X509 Xaw3d a52 aac aalib accessibility acl acpi activefilter adns alsa apache2 apm arts asf audiofile avi bash-completion berkdb bidi bitmap-fonts bootsplash browserplugin bzip2 cairo caps cdda cddb cdio cdparanoia cdr cgi chroot clamav cli client codecs crypt css ctype cups curl dba dbus dga dhcp directfb djbfft dri edl eds emboss encode ethereal exif expat extraengine faac faad fam fastbuild fbcon ffmpeg fftw firefox flac flash foomaticdb force-cgi-redirect foreign-package fortran ftp gcj gd gdbm geometry ggi gif gimp gimpprint glibc-omitfp glut glx gnokii gnome gnutls gphoto2 gpm graphviz gs gstreamer gtk gtk2 gtkhtml guile h264 hal iconv idea idn imagemagick imap imlib innodb ipod irda irmc isdnlog jack java javascript jikes jit joystick jpeg jpeg2k junit justify kde kdeenablefinal kerberos kqemu lame lcd lcms ldap libcaca libclamav libg++ libgda libusb libwww lirc live lm_sensors lua lzo mad mailwrapper matroska md5sum mdb memlimit mhash mikmod mime mmx mmx2 mmxext mng mono motif mozcalendar mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mpeg4 mplayer msn msnextras musepack mysql mysqli mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses neXt network ngui nls nntp no_wxgtk1 nobsh nopie nossp noxalan nptl nptlonly nsplugin oav odbc ogg openal opengl openssl operanom2 oss pam pcre pda pdf pdflib pdo pear perl php png pnp posix postgres ppds pppd pthreads python qemu-fast qhull qt quicktime quotas readline real rrdtool rtc ruby samba scanner sdl server session sftplogging sguil simplexml slang slp snortsam soap sockets socks5 softmmu softquota spamassassin speex spell spl sqlite3 sse ssl subject-rewrite svg svga tcltk tcpd tetex tga theora tiff tokenizer truetype truetype-fonts trusted type1-fonts udev unicode usb userlocales vidix vorbis win32codecs wma wmf wmv wsconvert wxwindows x264 xanim xchatdccserver xchattext xcomposite xine xinerama xml xml2 xmlrpc xmms xosd xpm xprint xsl xv xvid xvm xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev input_devices_joystick kernel_linux linguas_it userland_GNU video_cards_i128 video_cards_fbdev video_cards_vesa video_cards_vga video_cards_ati"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, MAKEOPTS
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-15 11:46:22 UTC
Hang tights, I'll try with mysql later on :/
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-20 20:31:25 UTC
Can't reproduce either with mysql, this seems more likely to be a problem in your setup or with other flags.
If you ever used -fvisibility* it might be that.
Comment 9 Patrizio Bassi 2006-04-21 01:52:29 UTC
i never forced visibility (qt3 should add it automaticaccly iirc).

ok. i ack your closing because it's a strange bug.
Comment 10 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-23 09:29:17 UTC
Reopening now..
Comment 11 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-23 09:38:29 UTC
Wait an hour or two, sync, make sure a new ELT-patch is added, try again making sure that kde-fastinstall patch is applied.

It might be solved now :)
Comment 12 Patrizio Bassi 2006-04-24 11:58:27 UTC
now it's fixed. for real :) 
well done Diego, i close this