Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88721 - app-text/openjade isnt worked if linked with --as-needed (unresolved symols)
Summary: app-text/openjade isnt worked if linked with --as-needed (unresolved symols)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
: 100402 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-11 07:29 UTC by Alexey Maximov
Modified: 2007-04-23 12:23 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 Alexey Maximov 2005-04-11 07:29:28 UTC
if 
 LDFLAGS=" -Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--as-needed " emerge  openjade

bugs with^

amazing ~ # /usr/bin/openjade -v
/usr/bin/openjade: symbol lookup error: /usr/lib/libospgrove.so.0: undefined symbol: _ZN14OpenJade_Grove8ClassDef7elementE

but if compiled and linked with (w/o  -Wl,--as-needed flag)
 LDFLAGS=" -Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags  " emerge  openjade

it worls ok

amazing ~ # /usr/bin/openjade -v
/usr/bin/openjade:I: "openjade" version "1.3.2"
/usr/bin/openjade:I: "OpenSP" version "1.5.1"



Reproducible: Always
Steps to Reproduce:
1.
2.
3.




amazing ~ # emerge info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110,
glibc-2.3.4.20050125-r1, 2.6.11.4-cko2 i686)
=================================================================
System uname: 2.6.11.4-cko2 i686 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 10 2005, 22:32:13)]
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.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r3, 1.9.5, 1.5, 1.7.9-r1, 1.6.3, 1.4_p6
sys-devel/binutils:  2.15.94.0.2.2
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS=" -march=i686 -O2 -pipe -fomit-frame-pointer -ffast-math "
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="  -march=i686 -O2 -pipe -fomit-frame-pointer -ffast-math 
-fvisibility-inlines-hidden "
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg distlocks prelink sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="ru_RU.CP1251"
LDFLAGS=" -Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--as-needed "
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acl acpi acpi4linux activefilter alsa apm
artswrappersuid audiofile avi bash-completion bitmap-fonts bluetooth bonobo caps
cdda cddb cdio cdparanoia cdr crypt cscope cups curl dga directfb dpms dts dv
dvb dvd dvdr dvdread eds emboss encode exif fam fbcon ffmpeg fftw flac
foomaticdb freetype ftp gd ggi gif gimp glitz gnokii gnutls gphoto2 gpm
gstreamer gtk2 guile hal howl iconv icq icu ieee1394 imagemagick imap imlib
innodb irmc jack jack-tmpfs joystick jpeg jpeg2k kerberos ladcca ladspa lcd lcms
ldap libcaca libg++ libgda libvisual libwww lirc live lm_sensors lmtp
logitech-mouse lua lufsusermount lzo mad maildir mailwrapper matroska mbox
mikmod mjpeg mmx mng mono mozdevelop mozilla mozsvg mp3 mpeg mppe-mppc msn
mythtv nas ncurses network nntp no-old-linux nptl nptlonly ntlm oav odbc ogg
oggvorbis openal opie pam pcmcia pcre pda pdflib pic plotutils png portaudio
povray pvm pwdb qt quicktime quotas rdesktop readline real rtc samba sasl sblive
scanner silc skey slang slp smartcard sndfile socks5 soundtouch speex spell
sqlite ssl stream svg svga svgz symlink sysfs tcltk tcpd tetex theora threads
tidy tiff transcode truetype truetype-fonts unicode usb utf8 v4l v4l2 vcd
vcdimager vidix vlm wifi winbind wmf wxwindows xanim xine xml xml2 xrandr xv
xvid yv12 zeroconf zlib linguas_ru linguas_uk"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL
Comment 1 Alexey Maximov 2005-04-11 07:30:22 UTC
sorry for lexical mistakes :) very tired
Comment 2 SpanKY gentoo-dev 2005-04-11 19:00:28 UTC
dont do that
Comment 3 Alexey Maximov 2005-04-11 19:37:25 UTC
but are present

software MUST work with LDFLAGS --as-needed
notify developers, please
Comment 4 SpanKY gentoo-dev 2005-04-11 19:39:55 UTC
no, you deal with it
Comment 5 Alexey Maximov 2005-04-11 19:52:31 UTC
what is motivation for closing REAL bug in software ?

software MUST works with --as-needed flag
it is correct way to speedup software and improve its quality

why bug are closed ? where is rules about "dont use --as-needed, bla bla, or bugs will be marked as invalid, bla bla" ?

where is my mistake ?
Comment 6 SpanKY gentoo-dev 2005-04-11 19:56:12 UTC
if you turn on every single optimization gcc and binutils offers, very few packages will work sanely ... shall we 'fix' those packages too ?

verify that the bug is in openjade's build process and not binutils, and once you've done that, come up with a fix for openjade which is not a hack
Comment 7 Alexey Maximov 2005-04-11 21:14:03 UTC
ok, highly reasonable :)
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2005-07-26 14:04:36 UTC
*** Bug 100402 has been marked as a duplicate of this bug. ***