Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146722 - dev-util/anjuta-1.2.4-r1 fails with --as-needed in LDFLAGS
Summary: dev-util/anjuta-1.2.4-r1 fails with --as-needed in LDFLAGS
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Saleem Abdulrasool (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2006-09-07 10:30 UTC by onip
Modified: 2008-01-06 03:40 UTC (History)
2 users (show)

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


Attachments
patch (as-needed.patch,341 bytes, patch)
2007-05-21 08:29 UTC, Peter Avramucz
Details | Diff
anjuta-1.2.4-r2.ebuild.patch (anjuta-1.2.4-r2.ebuild.patch,830 bytes, patch)
2007-08-14 08:38 UTC, Gilles Dartiguelongue (RETIRED)
Details | Diff
anjuta-1.2.4-as-needed.patch (anjuta-1.2.4-as-needed.patch,1.91 KB, patch)
2007-08-14 08:40 UTC, Gilles Dartiguelongue (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description onip 2006-09-07 10:30:56 UTC
ib/libglitz.so /usr/lib/libfontconfig.so /usr/lib/libexpat.so /usr/lib/libfreetype.so /usr/lib/libpangoft2-1.0.so /usr/lib/libxml2.so -lz /usr/lib/libpango-1.0.so -lm /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so ../scintilla/libscintilla.a
../scintilla/libscintilla.a(PlatGTK.o): In function `Platform_Initialise()':
PlatGTK.cxx:(.text+0x76d): undefined reference to `g_thread_init'
collect2: ld returned 1 exit status
make[3]: *** [test-scintilla] Error 1
make[3]: Leaving directory `/var/tmp/portage/anjuta-1.2.4-r1/work/anjuta-1.2.4/scintilla'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/anjuta-1.2.4-r1/work/anjuta-1.2.4/scintilla'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/anjuta-1.2.4-r1/work/anjuta-1.2.4'
make: *** [all] Error 2

!!! ERROR: dev-util/anjuta-1.2.4-r1 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  ebuild.sh, line 1248:   Called gnome2_src_compile
  gnome2.eclass, line 64:   Called die

!!! compile failure
!!! If you need support, post the topmost build error, and the call stack if relevant.

Hal9000 ~ # emerge --info
Portage 2.1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 i686)
=================================================================
System uname: 2.6.17-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 2.50GHz
Gentoo Base System version 1.12.4
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
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.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf"
CXXFLAGS="-Os -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distclean distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://gentoo.ngi.it/"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="it"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/sci"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X a52 aac alsa apache2 audiofile avi berkdb bitmap-fonts bzip2 cairo cdparanoia cdr cli crypt cups dbus directfb dlloader dri dvb dvd dvdread eds emboss encode exif fam fbcon ffmpeg firefox flac fortran ftp gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml hal imagemagick isdnlog java jikes jpeg jpeg2k lcms ldap libg++ mad mikmod mmx mng mp3 mpeg ncurses nls nptl nptlonly offensive ogg openal opengl oss pam pcre pdflib perl png ppds pppd python quicktime readline reflection samba sdl session spell spl sse sse2 ssl svg svga tcpd theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb v4l vorbis win32codecs xine xml xorg xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_it userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 onip 2006-09-07 10:31:47 UTC
I forgot... Obiouvsly emerging it without --as-needed gives no problems at all.
Comment 2 Peter Avramucz 2007-05-21 08:29:45 UTC
Created attachment 119870 [details, diff]
patch

You have to modify the scintilla/Makefile file:
LIBS = `pkg-config gtk+-2.0 gthread-2.0 --libs --cflags`
Comment 3 Peter Avramucz 2007-05-21 08:30:09 UTC
Some dev please review my patch!
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-06-10 11:28:07 UTC
Re-assign wrt Bug 171232
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2007-08-14 08:38:03 UTC
Created attachment 128021 [details, diff]
anjuta-1.2.4-r2.ebuild.patch

patch against the ebuild to use the following patch
Comment 6 Gilles Dartiguelongue (RETIRED) gentoo-dev 2007-08-14 08:40:04 UTC
Created attachment 128023 [details, diff]
anjuta-1.2.4-as-needed.patch

after applying the patch previously provided, I've seen some more --as-needed borkage both at compile time and at runtime. This patch should fix this as far as my testing goes. Please test.
Comment 7 Saleem Abdulrasool (RETIRED) gentoo-dev 2008-01-06 03:40:38 UTC
Please migrate to the 2.x series, as 1.x is not really being maintained anymore.  2.2.0 is up for stablization (bug #204494).