Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 155587 - app-misc/lcdproc-0.5.1 does not build with --as-needed
Summary: app-misc/lcdproc-0.5.1 does not build 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: LCD Herd
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2006-11-18 06:45 UTC by Matthias Schwarzott
Modified: 2006-12-06 03:44 UTC (History)
2 users (show)

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


Attachments
lcdproc-0.5.1-as-needed.patch (lcdproc-0.5.1-as-needed.patch,2.62 KB, patch)
2006-11-18 07:10 UTC, Matthias Schwarzott
Details | Diff
ebuild-changes (ebuild-changes.diff,951 bytes, patch)
2006-11-18 07:10 UTC, Matthias Schwarzott
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Schwarzott gentoo-dev 2006-11-18 06:45:15 UTC
app-misc/lcdproc-0.5.1 does not want to emerge with LDFLAGS="-Wl,--as-needed".

make[3]: Entering directory `/var/tmp/portage/app-misc/lcdproc-0.5.1/work/lcdproc-0.5.1/clients/lcdexec'
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../.. -DSYSCONFDIR=\"/etc\"   -Wall -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wno-unused-function -MT lcdexec.o -MD -MP -MF ".deps/lcdexec.Tpo" \
          -c -o lcdexec.o `test -f 'lcdexec.c' || echo './'`lcdexec.c; \
        then mv -f ".deps/lcdexec.Tpo" ".deps/lcdexec.Po"; \
        else rm -f ".deps/lcdexec.Tpo"; exit 1; \
        fi
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../.. -DSYSCONFDIR=\"/etc\"   -Wall -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wno-unused-function -MT menu.o -MD -MP -MF ".deps/menu.Tpo" \
          -c -o menu.o `test -f 'menu.c' || echo './'`menu.c; \
        then mv -f ".deps/menu.Tpo" ".deps/menu.Po"; \
        else rm -f ".deps/menu.Tpo"; exit 1; \
        fi
i686-pc-linux-gnu-gcc  -Wall -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wno-unused-function  -Wl,--as-needed -Wl,-z,noexecstack -o lcdexec  lcdexec.o menu.o -L/usr/lib -lldap -llber ../../shared/libLCDstuff.a -ldl
../../shared/libLCDstuff.a(configfile.o): In function `find_section':
configfile.c:(.text+0x15a): undefined reference to `ldap_search_s'
configfile.c:(.text+0x174): undefined reference to `ldap_msgfree'
configfile.c:(.text+0x1c1): undefined reference to `ldap_count_entries'
configfile.c:(.text+0x1d1): undefined reference to `ldap_msgfree'
../../shared/libLCDstuff.a(configfile.o): In function `find_key':
configfile.c:(.text+0xba7): undefined reference to `ldap_search_s'
configfile.c:(.text+0xbc4): undefined reference to `ldap_first_entry'
configfile.c:(.text+0xc04): undefined reference to `ldap_get_values'
configfile.c:(.text+0xc0e): undefined reference to `ldap_count_values'
configfile.c:(.text+0xc27): undefined reference to `ldap_msgfree'
configfile.c:(.text+0xc62): undefined reference to `ldap_value_free'
configfile.c:(.text+0xcbf): undefined reference to `ldap_msgfree'
configfile.c:(.text+0xcfe): undefined reference to `ldap_value_free'
configfile.c:(.text+0xd0c): undefined reference to `ldap_msgfree'
configfile.c:(.text+0xd2d): undefined reference to `ldap_value_free'
../../shared/libLCDstuff.a(configfile.o): In function `config_read_file':
configfile.c:(.text+0x1056): undefined reference to `ldap_is_ldap_url'
configfile.c:(.text+0x1078): undefined reference to `ldap_url_parse'
configfile.c:(.text+0x10f5): undefined reference to `ldap_free_urldesc'
configfile.c:(.text+0x110b): undefined reference to `ldap_init'
configfile.c:(.text+0x1153): undefined reference to `ldap_search_s'
configfile.c:(.text+0x11a3): undefined reference to `ldap_count_entries'
configfile.c:(.text+0x121c): undefined reference to `ldap_err2string'
configfile.c:(.text+0x1244): undefined reference to `ldap_free_urldesc'
collect2: ld gab 1 als Ende-Status zur
Comment 1 Matthias Schwarzott gentoo-dev 2006-11-18 06:45:15 UTC
app-misc/lcdproc-0.5.1 does not want to emerge with LDFLAGS="-Wl,--as-needed".

make[3]: Entering directory `/var/tmp/portage/app-misc/lcdproc-0.5.1/work/lcdproc-0.5.1/clients/lcdexec'
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../.. -DSYSCONFDIR=\"/etc\"   -Wall -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wno-unused-function -MT lcdexec.o -MD -MP -MF ".deps/lcdexec.Tpo" \
          -c -o lcdexec.o `test -f 'lcdexec.c' || echo './'`lcdexec.c; \
        then mv -f ".deps/lcdexec.Tpo" ".deps/lcdexec.Po"; \
        else rm -f ".deps/lcdexec.Tpo"; exit 1; \
        fi
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../.. -DSYSCONFDIR=\"/etc\"   -Wall -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wno-unused-function -MT menu.o -MD -MP -MF ".deps/menu.Tpo" \
          -c -o menu.o `test -f 'menu.c' || echo './'`menu.c; \
        then mv -f ".deps/menu.Tpo" ".deps/menu.Po"; \
        else rm -f ".deps/menu.Tpo"; exit 1; \
        fi
i686-pc-linux-gnu-gcc  -Wall -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wno-unused-function  -Wl,--as-needed -Wl,-z,noexecstack -o lcdexec  lcdexec.o menu.o -L/usr/lib -lldap -llber ../../shared/libLCDstuff.a -ldl
../../shared/libLCDstuff.a(configfile.o): In function `find_section':
configfile.c:(.text+0x15a): undefined reference to `ldap_search_s'
configfile.c:(.text+0x174): undefined reference to `ldap_msgfree'
configfile.c:(.text+0x1c1): undefined reference to `ldap_count_entries'
configfile.c:(.text+0x1d1): undefined reference to `ldap_msgfree'
../../shared/libLCDstuff.a(configfile.o): In function `find_key':
configfile.c:(.text+0xba7): undefined reference to `ldap_search_s'
configfile.c:(.text+0xbc4): undefined reference to `ldap_first_entry'
configfile.c:(.text+0xc04): undefined reference to `ldap_get_values'
configfile.c:(.text+0xc0e): undefined reference to `ldap_count_values'
configfile.c:(.text+0xc27): undefined reference to `ldap_msgfree'
configfile.c:(.text+0xc62): undefined reference to `ldap_value_free'
configfile.c:(.text+0xcbf): undefined reference to `ldap_msgfree'
configfile.c:(.text+0xcfe): undefined reference to `ldap_value_free'
configfile.c:(.text+0xd0c): undefined reference to `ldap_msgfree'
configfile.c:(.text+0xd2d): undefined reference to `ldap_value_free'
../../shared/libLCDstuff.a(configfile.o): In function `config_read_file':
configfile.c:(.text+0x1056): undefined reference to `ldap_is_ldap_url'
configfile.c:(.text+0x1078): undefined reference to `ldap_url_parse'
configfile.c:(.text+0x10f5): undefined reference to `ldap_free_urldesc'
configfile.c:(.text+0x110b): undefined reference to `ldap_init'
configfile.c:(.text+0x1153): undefined reference to `ldap_search_s'
configfile.c:(.text+0x11a3): undefined reference to `ldap_count_entries'
configfile.c:(.text+0x121c): undefined reference to `ldap_err2string'
configfile.c:(.text+0x1244): undefined reference to `ldap_free_urldesc'
collect2: ld gab 1 als Ende-Status zurück
make[3]: *** [lcdexec] Fehler 1
make[3]: Leaving directory `/var/tmp/portage/app-misc/lcdproc-0.5.1/work/lcdproc-0.5.1/clients/lcdexec'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/app-misc/lcdproc-0.5.1/work/lcdproc-0.5.1/clients'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/app-misc/lcdproc-0.5.1/work/lcdproc-0.5.1'
make: *** [all] Fehler 2

!!! ERROR: app-misc/lcdproc-0.5.1 failed.
Call stack:
  ebuild.sh, line 1568:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  lcdproc-0.5.1.ebuild, line 149:   Called die

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


# emerge --info
Portage 2.1.2_rc2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18.1 i686)
=================================================================
System uname: 2.6.18.1 i686 AMD Athlon(tm) XP 3000+
Gentoo Base System version 1.12.6
Last Sync: Unknown
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.6, 2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/my-distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-detect cvs distlocks metadata-transfer parallel-fetch sandbox sfperms sign strict"
GENTOO_MIRRORS="http://85.25.128.62 http://pandemonium.tiscali.de/pub/gentoo/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j4"
PKGDIR="/usr/my-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="/home/matze/gentoo/overlays/de /home/matze/gentoo/overlays/zzam /home/matze/gentoo/overlays/vdr/testing /home/matze/gentoo/overlays/vdr/experimental /usr/portage/local/layman/sunrise"
SYNC="cvs://zzam@cvs.gentoo.org:/var/cvsroot"
USE="x86 3dnow 3dnowext X Xaw3d a52 aac acl alsa apache2 artswrappersuid audacious berkdb bitmap-fonts bluetooth bzip2 cairo cap caps cddb cdparanoia cdr cli cracklib crypt cups dbus dlloader doc dri dts dvb dvb_cards_dibusb-usb2 dvb_cards_ttpci dvb_cards_usb-dib0700 dvb_cards_usb-wt220u dvd dvdr eds elibc_glibc emboss encode exif fam fbcon ffmpeg firefox font-server fortran fuse gcj gdbm gif gimpprint glut gpm gstreamer gtk hal iconv imap input_devices_keyboard input_devices_mouse ipv6 isdnlog java jpeg jpeg2k kde kdexdeltas kernel_linux ldap libg++ linguas_de lirc lirc_devices_all logitech-mouse mad mikmod mmx mmxext mng mp3 mpeg mplayer musicbrainz mysql ncurses nls nptl nptlonly nvram offensive ogg opengl oss pam pcre pdf perl png ppds pppd python qt3 qt4 quotes readline reflection samba session sms sndfile spell spl sqlite sse ssl svg taglib tcltk tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales vcd vdr video_cards_nv video_cards_nvidia video_cards_v4l video_cards_vbdev video_cards_vesa visualization vorbis win32codecs wma wmf xinerama xml xorg xrandr xslt xv zlib zvbi"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Matthias Schwarzott gentoo-dev 2006-11-18 07:10:11 UTC
Created attachment 102273 [details, diff]
lcdproc-0.5.1-as-needed.patch

The attached patch + the ebuild changes solve that problem for me.
Comment 3 Matthias Schwarzott gentoo-dev 2006-11-18 07:10:53 UTC
Created attachment 102274 [details, diff]
ebuild-changes
Comment 4 Daniel 2006-12-01 15:33:45 UTC
(In reply to comment #1)
> Created an attachment (id=102273) [edit]
> lcdproc-0.5.1-as-needed.patch
> 
> The attached patch + the ebuild changes solve that problem for me.
> 

for me, too! Thanks a lot!
Comment 5 Robert Buchholz (RETIRED) gentoo-dev 2006-12-02 10:43:49 UTC
Thanks for the hint, the cvs change is on its way (I hope).

The bugfix has also been forwarded upstream and was committed there, too.
Comment 6 Markus Ullmann (RETIRED) gentoo-dev 2006-12-06 03:44:35 UTC
Fixed in CVS, thanks guys :)