Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 209475 - net-p2p/amule-2.2.0_pre20080204 doesn't build with USE="geoip" and LDFLAG --as-needed
Summary: net-p2p/amule-2.2.0_pre20080204 doesn't build with USE="geoip" and LDFLAG --a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2008-02-09 23:05 UTC by .:deadhead:.
Modified: 2008-02-18 19:56 UTC (History)
0 users

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


Attachments
emerge log when --as-needed used (build.log,253.72 KB, text/plain)
2008-02-09 23:20 UTC, .:deadhead:.
Details
2.2.0-as_needed.patch (2.2.0-as_needed.patch,540 bytes, patch)
2008-02-17 09:14 UTC, Tiziano Müller
Details | Diff
amule-2.2.0_pre20080204.ebuild.patch (amule-2.2.0_pre20080204.ebuild.patch,749 bytes, patch)
2008-02-17 09:15 UTC, Tiziano Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description .:deadhead:. 2008-02-09 23:05:51 UTC
If I build Amule-2.2.0_pre20080204 with LDFLAGS="-Wl,-O1 -Wl,--as-needed" I get an error about references to GeoIP functions (you an find the whole compilation log attacched).

If I don't use --as-needed everything work.

my info:

Portage 2.1.3.19 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r8-stars i686)
=================================================================
System uname: 2.6.22-gentoo-r8-stars i686 Intel(R) Pentium(R) M processor 1400MHz
Timestamp of tree: Sat, 09 Feb 2008 11:16:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1     emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m   maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol"
ARCH="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -Os -pipe -mfpmath=sse"
CG_COMPILER_EXE="/usr/bin/cgc"
CHOST="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
COLORTERM=""
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CVS_RSH="ssh"
CXXFLAGS="-march=pentium-m -Os -pipe -mfpmath=sse"
DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-cZWa64OH3B,guid=0375ddd3c83e3dbbbfcbe10047ad8bf6"
DCCC_PATH="/usr/lib/distcc/bin"
DCOP_YAKUAKE_SESSION="0"
DCOP_YAKUAKE_TERMINAL="0"
DESKTOP_SESSION="default"
DISPLAY=":0"
DISTCC_LOG="/var/log/distcc.log"
DISTCC_VERBOSE="0"
DISTDIR="/usr/portage/distfiles"
DM_CONTROL="/var/run/xdmctl"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="-tDv --with-bdeps y"
EMERGE_WARNING_DELAY="10"
FEATURES="ccache distcc distlocks fixpackages metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/curl --retry 5 -o ${DISTDIR}/${FILE} ${URI}"
FLTK_DOCDIR="/usr/share/doc/fltk-1.1.7-r2/html"
GCC_SPECS=""
GDK_USE_XFT="1"
GENERATION="2"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp.heanet.ie/pub/gentoo/ http://distfiles.gentoo.org"
GPG_AGENT_INFO="/tmp/gpg-QVnQpP/S.gpg-agent:5872:1"
GS_LIB="/home/deadhead/.fonts"
GTK2_RC_FILES="/etc/gtk-2.0/gtkrc:/home/deadhead/.gtkrc-2.0:/home/deadhead/.kde3.5/share/config/gtkrc-2.0"
GTK_RC_FILES="/etc/gtk/gtkrc:/home/deadhead/.gtkrc:/home/deadhead/.kde3.5/share/config/gtkrc"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info"
INPUT_DEVICES="evdev mouse keyboard"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
KDEDIR="/usr/kde/3.5"
KDEDIRS="/usr:/usr/local:/usr/kde/3.5"
KDE_FULL_SESSION="true"
KDE_MULTIHEAD="false"
KDE_SESSION_UID="1000"
KERNEL="linux"
KONSOLE_DCOP="DCOPRef(yakuake,konsole)"
KONSOLE_DCOP_SESSION="DCOPRef(yakuake,session-1)"
LANG="it_IT@euro"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_ALL="it_IT@euro"
LC_MESSAGES="it_IT@euro"
LDPATH="/usr/kde/3.5/lib:"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LINGUAS="it"
LOGNAME="root"
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:"
MAKEOPTS="-j2"
MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man:/opt/sun-jdk-1.4.2.16/man:/etc/java-config/system-vm/man/:/usr/kde/3.5/share/man:/usr/qt/3/doc/man:/opt/vmware/player/man"
MM_CHARSET="ISO-8859-15"
OPENGL_PROFILE="nvidia"
PAGER="/usr/bin/less"
PATH="/sbin:/bin:/usr/sbin:/usr/bin"
PKGDIR="/usr/portage/packages"
PKG_CONFIG_PATH="/usr/qt/3/lib/pkgconfig"
PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha ppc-macos hppa sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib/portage/bin"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_PYM_PATH="/usr/lib/portage/pym"
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 --filter=H_**/files/digest-*"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
PWD="/home/deadhead"
PYTHONPATH="/usr/lib/portage/pym"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/curl -C - --retry 5 -o ${DISTDIR}/${FILE} ${URI}"
ROOT="/"
ROOTPATH="/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/opt/sun-jdk-1.4.2.16/bin:/opt/sun-jdk-1.4.2.16/jre/bin:/opt/sun-jdk-1.4.2.16/jre/javaws:/usr/qt/3/bin:/usr/games/bin:/opt/vmware/player/bin"
RPMDIR="/usr/portage/rpm"
SESSION_MANAGER="local/INSPIRON8600:/tmp/.ICE-unix/5919"
SHELL="/bin/bash"
SHLVL="3"
SSH_AGENT_PID="5875"
SSH_AUTH_SOCK="/tmp/ssh-HRaTRx5874/agent.5874"
STAGE1_USE="nptl nptlonly unicode"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
TERM="xterm"
USE="7zip X a52 aac acpi alsa asf audiofile bash-completion branding bzip2 cairo cddb cdparanoia cdr cpudetection cracklib cups curl dbus dga djvu dri dts dvd dvdr dvdread encode exif fam ffmpeg firefox flac foomaticdb ftp geoip gif gmp gpm gs gtk gtk2 hal icq idn ieee1394 imagemagick imap jabber java javascript jbig jpeg jpeg2k kde kdeenablefinal lcms libsamplerate logitech-mouse mad maildir matroska mmx mng mp3 mp4 mpeg mplayer musepack musicbrainz ncurses nls nocxx nptl nptlonly nsplugin nvidia offensive ogg openal openexr opengl oscar pam pcmcia pdf plotutils png posix ppds qt3 qt4 quicktime readline real sasl sdl sndfile speex sse sse2 ssl svg theora threads tiff truetype usb utempter vcd vorbis wavpack wifi win32codecs wma wmf x264 x86 xine xorg xpm xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1  emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m       maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol"  ELIBC="glibc" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
USER="root"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="nv nvidia"
VMHANDLE="sun-jdk-1.4"
WINDOWID="29360497"
XARGS="xargs -r"
XAUTHORITY="/root/.xauthsW51Zz"
XCURSOR_THEME="default"
XDG_CONFIG_DIRS="/usr/kde/3.5/etc/xdg"
XDG_DATA_DIRS="/usr/share:/usr/kde/3.5/share:/usr/local/share"
XDM_MANAGED="/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic"
_="/usr/bin/emerge"
Comment 1 .:deadhead:. 2008-02-09 23:20:30 UTC
Created attachment 143062 [details]
emerge log when --as-needed used
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-02-13 10:19:59 UTC
Th amule makefile pass the -lGeoIP option as an LDFLAG rather than a LIB (ldflags goes before object files, libs afterward).
The fix here is to move -lGeoIP together with the rest of libs. 
Comment 3 Tiziano Müller gentoo-dev 2008-02-17 09:14:24 UTC
Created attachment 143750 [details, diff]
2.2.0-as_needed.patch

The patch for configure.in
Comment 4 Tiziano Müller gentoo-dev 2008-02-17 09:15:25 UTC
Created attachment 143753 [details, diff]
amule-2.2.0_pre20080204.ebuild.patch

... and the ebuild patch.
Comment 5 .:deadhead:. 2008-02-17 10:52:45 UTC
Tried new ebuild + patch and worked like a charm! Thank you Flame & Dev-Zero!
Comment 6 Raúl Porcel (RETIRED) gentoo-dev 2008-02-18 19:56:38 UTC
Added in the 20080218 snapshot and opened a bug upstream, number 1266