/bin/sh ../libtool --mode=link i686-pc-linux-gnu-gcc -march=athlon-xp -mtune=athlon-xp -O3 -pipe -frename-registers -fPIC -Wl,--as-needed -o geoipupdate geoipupdate.o ../libGeoIP/libGeoIPUpdate.la ../libGeoIP/libGeoIP.la i686-pc-linux-gnu-gcc -march=athlon-xp -mtune=athlon-xp -O3 -pipe -frename-registers -fPIC -Wl,--as-needed -o .libs/geoipupdate geoipupdate.o ../libGeoIP/.libs/libGeoIPUpdate.so -lz ../libGeoIP/.libs/libGeoIP.so ../libGeoIP/.libs/libGeoIPUpdate.so: undefined reference to `GeoIP_id_by_name' ../libGeoIP/.libs/libGeoIPUpdate.so: undefined reference to `GeoIP_database_info' ../libGeoIP/.libs/libGeoIPUpdate.so: undefined reference to `GeoIPDBFileName' ../libGeoIP/.libs/libGeoIPUpdate.so: undefined reference to `GeoIP_record_by_addr' ../libGeoIP/.libs/libGeoIPUpdate.so: undefined reference to `GeoIP_delete' ../libGeoIP/.libs/libGeoIPUpdate.so: undefined reference to `GeoIP_database_edition' ../libGeoIP/.libs/libGeoIPUpdate.so: undefined reference to `_GeoIP_full_path_to' ../libGeoIP/.libs/libGeoIPUpdate.so: undefined reference to `GeoIP_country_code_by_addr' ../libGeoIP/.libs/libGeoIPUpdate.so: undefined reference to `GeoIP_region_by_addr' ../libGeoIP/.libs/libGeoIPUpdate.so: undefined reference to `GeoIP_org_by_addr' ../libGeoIP/.libs/libGeoIPUpdate.so: undefined reference to `_GeoIP_setup_dbfilename' ../libGeoIP/.libs/libGeoIPUpdate.so: undefined reference to `GeoIP_open' collect2: ld returned 1 exit status make[1]: *** [geoipupdate] Error 1 make[1]: Leaving directory `/home/portage/tmp/portage/geoip-1.3.17/work/GeoIP-1.3.17/apps' make: *** [all-recursive] Error 1 !!! ERROR: dev-libs/geoip-1.3.17 failed. Call stack: ebuild.sh, line 1539: Called dyn_compile ebuild.sh, line 939: Called src_compile geoip-1.3.17.ebuild, line 32: Called die !!! emake failed !!! If you need support, post the topmost build error, and the call stack if relevant. Portage 2.1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.16.28 i686) ================================================================= System uname: 2.6.16.28 i686 AMD Athlon(tm) XP 3000+ 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.18.1 sys-devel/autoconf: 2.13, 2.60 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.17 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -mtune=athlon-xp -O3 -pipe -frename-registers" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /home /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/X11/Sessions /etc/X11/app-defaults /etc/X11/mwm /etc/X11/wmconfig /etc/X11/xinit /etc/bash_completion.d /etc/bonobo-activation /etc/cups /etc/dbus-1 /etc/dev.d /etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/fonts /etc/foomatic /etc/gconf /etc/gimp /etc/gnome-vfs-2.0 /etc/gtk /etc/gtk-2.0 /etc/hotplug /etc/hotplug.d /etc/imlib /etc/init.d /etc/iproute2 /etc/java-config/vms/ /etc/nas /etc/ntop /etc/pam.d /etc/pango /etc/profile.d /etc/revdep-rebuild /etc/sasl2 /etc/ssl /etc/ssmtp /etc/t1lib /etc/terminfo /etc/xinetd.d /etc/xml" CXXFLAGS="-march=athlon-xp -mtune=athlon-xp -O3 -pipe -frename-registers -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LDFLAGS="-Wl,--as-needed" LINGUAS="de" PKGDIR="/home/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="/home/portage/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://192.168.0.254/gentoo-portage" USE="x86 3dnow 3dnowext X a52 aac acpi alsa arts asf avi berkdb bitmap-fonts bluetooth bzip2 cairo cdparanoia cdr cli crypt cups dri dvd dvdr dvdread emboss encode fam ffmpeg firefox flac gdbm gif gnutls gpg gstreamer gtk gtk2 idn imagemagick imlib isdnlog jpeg kde libg++ libwww mad mikmod mjpeg mmx mmxext mp3 mpeg ncurses nls nptl nptlonly nsplugin ogg oggvorbis opengl pam pcre pdflib perl png ppds pppd python qt3 quicktime readline real reflection samba sdl seamonkey session silc slang spell spl sse ssl svg tga theora tiff truetype truetype-fonts type1-fonts udev vcd vorbis win32codecs x264 xcomposite xml xml2 xorg xprint xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_de userland_GNU video_cards_nv video_cards_nvidia" Unset: CTARGET, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Confirmed (sigh I'm not CCed to one of the bugs that I actually care about ;) ). Have to see 1.4.x series though.
Hi Diego, 1.4.0 doesn't compile as well with --as-needed. I already gave that version a try in my overlay. Cheers Poly-C
Created attachment 95751 [details, diff] geoip-1.4.0-asneeded.patch Here is the patch, I've also sent it upstream already. Now if Netmon herd has no trouble with it, I'd like to bump to 1.4.0 and add this patch (I need 1.4.0 for TorK), so that we can also close this bug.
You're awesome ;) Added to my overlay and works like a charm. Thank you very much. Poly-C
Fixed in CVS, happy BugDay :)
*** Bug 146040 has been marked as a duplicate of this bug. ***