Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130091 - celestia fails linked with --as-needed
Summary: celestia fails linked with --as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
: 145877 (view as bug list)
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2006-04-15 12:35 UTC by Patrizio Bassi
Modified: 2007-02-12 22:44 UTC (History)
4 users (show)

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


Attachments
celestia_emerge_log.txt.bz2 (celestia_emerge_log.txt.bz2,48.40 KB, application/octet-stream)
2006-09-01 11:02 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrizio Bassi 2006-04-15 12:35:00 UTC
[millions more cutted]

kde/libkdegui.a(celestialbrowser.moc.o):(.rodata._ZTV16CelestialBrowser[vtable for CelestialBrowser]+0x260): undefined reference to `QPaintDevice::cmd(int, QPainter*, QPDevCmdParam*)'
kde/libkdegui.a(celestialbrowser.moc.o):(.rodata._ZTV16CelestialBrowser[vtable for CelestialBrowser]+0x264): undefined reference to `non-virtual thunk to QWidget::metric(int) const'
kde/libkdegui.a(celestialbrowser.moc.o):(.rodata._ZTV16CelestialBrowser[vtable for CelestialBrowser]+0x268): undefined reference to `QPaintDevice::fontMet(QFont*, int, char const*, int) const'
kde/libkdegui.a(celestialbrowser.moc.o):(.rodata._ZTV16CelestialBrowser[vtable for CelestialBrowser]+0x26c): undefined reference to `QPaintDevice::fontInf(QFont*, int) const'
collect2: ld returned 1 exit status
make[4]: *** [celestia] Error 1
make[4]: Leaving directory `/var/tmp/portage/celestia-1.4.1/work/celestia-1.4.1/src/celestia'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/celestia-1.4.1/work/celestia-1.4.1/src/celestia'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/celestia-1.4.1/work/celestia-1.4.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/celestia-1.4.1/work/celestia-1.4.1'
make: *** [all] Error 2
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-20 20:29:28 UTC
Can't reproduce here, sounds like there's something else broken, mind pasting emerge info?
Comment 2 Patrizio Bassi 2006-04-21 01:54:13 UTC
as for kexi bug...it's related to qt/kde.

i don't agree with you about closing this bug.

Portage 2.1_pre7-r5 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r2, 2.6.16.7 i686)
=================================================================
System uname: 2.6.16.7 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.16
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 cups curl dba dbus dga dhcp directfb djbfft dri edl eds emboss encode ethereal exif expat extraengine faac faad fam fbcon ffmpeg fftw firefox flac flash foomaticdb 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 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 postgres ppds pppd pthreads python qemu-fast qhull qt quicktime quotas readline real reflection rrdtool rtc ruby samba scanner sdl server session sftplogging sguil 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 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-21 02:07:12 UTC
Maybe --sort-common and -zdynsort breaks something, for sure, --as-needed is not at fault here.
Comment 4 Patrizio Bassi 2006-04-21 02:10:11 UTC
if i delete the --as-needed flag it links properly.

Comment 5 Sander Sweers 2006-04-21 02:47:41 UTC
I will check tonight if i can reproduce this. But it is likely not celestica at fault here.
Comment 6 Sander Sweers 2006-04-22 11:39:44 UTC
Ok first built it with the gnome use flag, no problem. Using the kde use flag it fails. emerge --info
---------------------
Portage 2.1_pre7-r5 (default-linux/amd64/2006.0, gcc-4.1.0, glibc-2.4-r2, 2.6.16-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer multilib-strict sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_GB.utf8"
LC_ALL="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,-s -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/initng-portage /usr/local/overlays/gentopia /usr/local/overlays/gnome-experimental /usr/local/overlays/mine"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X aac acpi alsa apache2 apm avi berkdb bitmap-fonts bzip2 cairo cdr cli crypt cups dbus dri dvd dvdr eds emboss encode esd firefox flac foomaticdb fortran gif gnome gpm gstreamer gtk gtk2 hal imlib ipv6 isdnlog jpeg libcaca lzw lzw-tiff mad mono mozilla mp3 mpeg ncurses network nls nptl nptlonly nsplugin offensive ogg oggvorbis opengl oss pam pcre pdflib perl png ppds pppd python qt quicktime readline reflection sdl session speex spell spl ssl tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vorbis xorg xpm xprint xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_ati"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS
Comment 7 Bret Towe 2006-04-25 20:27:22 UTC
i can hit this with just -O1 and --as-needed (--as-needed wasnt in my ldflags till
i tested this bug)
i notice it seems to have issues with libkdegui.a
which is created by the following lines

x86_64-pc-linux-gnu-ar cru libkdegui.a celsplashscreen.moc.o kdeapp.moc.o e     clipsefinderdlgbase.uic.o eclipsefinderdlgbase.uic.moc.o eclipsefinderdlg.m     oc.o celestialbrowserbase.uic.o celestialbrowserbase.uic.moc.o celestialbro     wser.moc.o kdeglwidget.moc.o kdepreferencesdialog.moc.o kdeuniquecelestia.m     oc.o kcelbookmarkmenu.moc.o kcelbookmarkmanager.moc.o selectionpopup.moc.o      celsplashscreen.o eclipsefinderdlg.o celestialbrowser.o kdemain.o kdeapp.o      kdeglwidget.o kdepreferencesdialog.o kdeuniquecelestia.o kcelbookmarkmenu.o      kcelbookmarkmanager.o selectionpopup.o
x86_64-pc-linux-gnu-ranlib libkdegui.a

which involves no linking at all  could this cause the issue with --as-needed?

Portage 2.1_pre9-r4 (default-linux/amd64/2005.0, gcc-4.1.0, glibc-2.3.6-r3, 2.6.16-rc6 x86_64)
=================================================================
System uname: 2.6.16-rc6 x86_64 AMD Athlon(tm) 64 Processor 2800+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O3 -pipe -fweb -ftracer -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O3 -pipe -fweb -ftracer -ftree-vectorize"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/mdhd/portage.local"
SYNC="rsync://vox.net/gentoo-portage"
USE="amd64 X a52 aac alsa avi berkdb bitmap-fonts bzip2 cairo canna cdda cddb cdr cjk cli crypt cups dbus dri dv dvb dvd dvdread eds emboss encode esd fam fbcon fbdev firefox fits flac foomaticdb geos gml gnome gstreamer gtk gtk2 gtkhtml hdf hdf5 imagemagick imlib ipv6 isdnlog jpeg kde live lzw lzw-tiff mad matroska mng mp3 mp4 mpeg musepack ncurses netcdf nls nptl nptlonly ogg oggvorbis opengl pam pcre pda pdflib perl png pppd python qt quicktime readline reflection rtsp sdl session speex spell spl ssl stream svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales v4l v4l2 vcd vorbis wmf x264 xine xml xml2 xmms xorg xpm xv zlib elibc_glibc input_devices_mouse input_devices_keyboard kernel_linux userland_GNU video_cards_radeon"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS
Comment 8 Disenchanted (RETIRED) gentoo-dev 2006-05-06 21:21:01 UTC
http://www.gentoo.org/proj/en/qa/asneeded.xml

see where it says that it's not supported?
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-05-06 23:41:48 UTC
(In reply to comment #7)
> i can hit this with just -O1 and --as-needed (--as-needed wasnt in my ldflags
> till i tested this bug)

Bret, if you are going to try this, you need to use latest (p.masked) binutils. 2.16.1 won't work correctly w/ --as-needed.
Comment 10 Steev Klimaszewski (RETIRED) gentoo-dev 2006-05-06 23:49:02 UTC
Also, if the latest binutils doesn't help, reopen and re-assign to sci as the currently assigned dev has retired.
Comment 11 Patrizio Bassi 2006-05-07 02:52:49 UTC
i'm sure diego can help us :)
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2006-09-01 10:36:20 UTC
*** Bug 145877 has been marked as a duplicate of this bug. ***
Comment 13 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2006-09-01 11:02:19 UTC
Created attachment 95659 [details]
celestia_emerge_log.txt.bz2

Hi,
this is the full output from emerge celestia.

Cheers
Poly-C

P.S.: Sorry for creating a duplicate thread. I didn't look careful enough :-(
Comment 14 Sébastien Fabbro (RETIRED) gentoo-dev 2006-09-19 15:45:53 UTC
I put a celestia in gentooscience.org overlay. I am trying to debug it with as-needed. It compiled fine with the gtk version, but does not link with the kde version, with similar log as the one attached in the comment above. I looked at which libraries it does not link and I got swamped into kdelibs. Any expert in kde and as-needed around?
Comment 15 Patrizio Bassi 2006-09-19 23:33:17 UTC
expert? flameeyes of course :)
Comment 16 Sébastien Fabbro (RETIRED) gentoo-dev 2007-02-03 17:11:17 UTC
since celestia has many possible front-ends, i filtered as-needed in celestia-1.4.1-r1 (now in cvs).
Comment 17 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-02-03 17:18:28 UTC
do *NOT* filter --as-needed, *never*.

See http://www.gentoo.org/proj/en/qa/asneeded.xml .

I'll revert the filtering. Never hide bugs, either fix them or leave them there.
Comment 18 Sébastien Fabbro (RETIRED) gentoo-dev 2007-02-12 22:44:44 UTC
celestia-1.4.1-r2 in cvs fixes as-needed.