Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 501734

Summary: net-misc/ipv6calc-0.96.0 USE=geoip with dev-libs/geoip-? - libipv6calc_db_wrapper_GeoIP.c:(.text+0xf7): undefined reference to `GeoIP_cleanup'
Product: Gentoo Linux Reporter: Drunkard Zhang <gongfan193>
Component: Current packagesAssignee: Peter Volkov (RETIRED) <pva>
Status: RESOLVED FIXED    
Severity: normal CC: blueness, bman, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 372079    
Attachments: build log

Description Drunkard Zhang 2014-02-19 03:58:28 UTC
Created attachment 370738 [details]
build log

net-misc/ipv6calc-0.96.0 failed to emerge with USE geoip enabled, but OK without geoip set.

11:57:34 ~ # emerge --info =net-misc/ipv6calc-0.96.0
Portage 2.3.6-r5 (funtoo/1.0/linux-gnu/arch/x86-64bit, gcc-4.8.1, glibc-2.18, 3.14.0-rc3 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.14.0-rc3-x86_64-AMD_A8-3500M_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.2.0
KiB Mem:     7631652 total,   1327440 free
KiB Swap:     524284 total,    524284 free
Timestamp of tree: Unknown
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45-r1
dev-java/java-config:     2.2.0-r1000
dev-lang/python:          2.7.6-r1001, 3.3.4-r1000
dev-util/cmake:           2.8.12.2
sys-apps/baselayout:      2.2.0-r4
sys-apps/openrc:          0.12.4::pentoo
sys-apps/sandbox:         2.6-r2
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.6.4-r2, 4.8.1-r3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.11 (virtual/os-headers)
sys-libs/glibc:           2.18
Repositories: gentoo hacking-gentoo gentoo-zh ltsp pentoo drunkard
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind /var/rancid/.cloginrc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-mtune=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync mini-manifest news nodoc parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS=""
GENTOO_MIRRORS="http://mirrors.163.com/gentoo/ http://mirrors.sohu.com/gentoo/ http://gentoo.gwbnsh.net.cn/ "
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="zh_CN zh_TW zh en ru de bo ug"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/hacking-gentoo /var/lib/layman/gentoo-zh /var/lib/layman/ltsp /var/lib/layman/pentoo /var/lib/layman/drunkard"
SYNC="git://github.com/funtoo/ports-2012.git"
SYNC_USER="root"
USE="3dnow 3dnowext X a52 acl acpi aio alsa amd64 ap apng bash-completion berkdb branding bzip2 caps cjk colord cracklib crypt cups cxx dbus djvu dri dvd dvdr dvdread encode evo ffmpeg flac gconf gdbm geoip gif gimp gmp gnome gpm gstreamer gtk gtk3 iconv icu idn ipv6 jpeg jpeg2k lame libass libsamplerate mad mmap mmx mmxext modules mp3 mpeg mplayer mudflap multilib multitarget nautilus ncurses nls nptl ogg opengl openmp opus pam pch pcre pdf png postgres postscript pppd pulseaudio python readline realtime resolvconf smp sse sse2 ssl svg theora threads tiff truetype udev unicode utils vim-syntax vorbis wavpack wifi win32codecs x264 xattr xft xinerama xml xvmc zlib" ABI_X86="64" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias authn_core authz_core socache_shmcb unixd" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport presenter-minimizer" LINGUAS="zh_CN zh_TW zh en ru de bo ug" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_ABIS="2.7 3.3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 sparc sparc64 x86_64" QEMU_USER_TARGETS="i386 sparc sparc64 x86_64" RUBY_TARGETS="ruby18 ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fglrx radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC_UMASK

=================================================================
                        Package Settings
=================================================================

net-misc/ipv6calc-0.96.0 was built with the following:
USE="-geoip -test"
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-02-19 12:06:42 UTC
Which version of dev-libs/geoip is that?
Comment 2 Anthony Basile gentoo-dev 2014-02-19 13:28:48 UTC
(In reply to Jeroen Roovers from comment #1)
> Which version of dev-libs/geoip is that?

Its a problem in the build system.  The -lGeoIP should come *after* -L../databases/lib/.  Ie, this line:

 x86_64-pc-linux-gnu-gcc -o ipv6calc ipv6calc.o showinfo.o ipv6calchelp_local.o ../getopt/getopt.o ../getopt/getopt1.o ../md5/md5.o -Wl,-O1 -Wl,--as-needed  -lGeoIP  -L../lib/ -L../databases/lib/ -lipv6calc -lipv6calc_db_wrapper -lm

shoud read

x86_64-pc-linux-gnu-gcc -o ipv6calc ipv6calc.o showinfo.o ipv6calchelp_local.o ../getopt/getopt.o ../getopt/getopt1.o ../md5/md5.o -Wl,-O1 -Wl,--as-needed   -L../lib/ -L../databases/lib/ -lipv6calc -lipv6calc_db_wrapper -lm  -lGeoIP


I'll get it.
Comment 3 Anthony Basile gentoo-dev 2014-02-19 14:46:02 UTC
Okay this should be fixed.  Please test net-misc/ipv6calc-0.96.0.  No revbump since this was a compile time error.  And reopen if this is still an issue.