Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KTorrent compile fails with "cannot find -lGeoIP" [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Thu May 01, 2008 7:14 pm    Post subject: KTorrent compile fails with "cannot find -lGeoIP" Reply with quote

I just tried to upgrade from ktorrent-2.2.5 to 2.2.6 but it fails with:
Quote:
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lGeoIP


At first I thought there was some change in the ebuild that I missed when I modded it (Recent ones force an external geoip to be emerged for no apparent reason, so I'm using an overlay to undo this), but because the original package no longer compiles either, and even compiling by hand from the tarball fails.

Because of this, I don't think this is a problem with ktorrent, as 2.2.5 no longer compiles too, either via emerge or by hand, which leaves some global thing?

Does anyone have any suggestions on where I could track down the source of the problem?

My most recent sync looks like:
Quote:
[ebuild U ] app-editors/nano-2.1.1 [2.0.7] USE="ncurses spell unicode -debug -justify -minimal -nls -slang" 1,365 kB
[ebuild U ] sys-apps/util-linux-2.13.1.1 [2.13.1] USE="crypt unicode -loop-aes -nls -old-linux (-selinux) -slang" 2,764 kB
[ebuild U ] sys-apps/man-1.6f-r1 [1.6f] USE="-nls" 0 kB
[ebuild U ] kde-base/kdelibs-3.5.8-r4 [3.5.8-r3] USE="kdeenablefinal spell tiff utempter -acl -alsa -arts -avahi -bindist -branding -cups -debug -doc -fam -jpeg2k -kdehiddenvisibility -kerberos -legacyssl -lua -openexr -xinerama -zeroconf" 0 kB [1]
[ebuild U ] net-p2p/ktorrent-2.2.6 [2.2.5] USE="kdeenablefinal -arts -avahi -debug -geoip -xinerama" LINGUAS="en_GB -ar -bg -br -ca -cs -cy -da -de -el -es -et -fa -fr -gl -hu -it -ja -ka -lt -ms -nb -nds -nl -pa -pl -pt -pt_BR -ru -rw -sk -sr -sr@Latn -sv -tr -uk -zh_CN -zh_TW" 0 kB [0=>1]
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Thu May 01, 2008 8:26 pm    Post subject: Reply with quote

Ah, I think I found the problem.

There's a bug in the configure script so that if you pass --enable-geoip and --disable-system-geoip, it thinks you passed --enable-geoip and --enable-system-geoip!

I modified my ebuild so that it omits the --disable-system-geoip param completely and it now works as desired. \o/

The actual bug is in the configure.in:
Code:
AC_ARG_ENABLE(system-geoip,
    [AS_HELP_STRING(--enable-system-geoip,[Enables use of system-wide
GeoIP data base (implies --disable-geoip) (no by default)])],
    [case "${enableval}" in
        yes) if test "$have_system_geoip" = yes; then
                system_geoip=true
                geoip=false
             else
                AC_MSG_ERROR(cannot enable system geoip. GeoIP library
headers were not found on your system)
             fi ;;
        no) system_geoip=true ;;
        *) AC_MSG_ERROR(bad value ${enableval} for --enable-system-geoip) ;;
    esac],[system_geoip=false])


Basically, the bit that says "no) system_geoip=true ;;" should say "no) system_geoip=false ;;"
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Thu May 01, 2008 8:52 pm    Post subject: Reply with quote

You should report that to bugs.gentoo.org so that it can be patched and fixed upstream.
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Thu May 01, 2008 10:56 pm    Post subject: Reply with quote

My aversion to registering bit me there, but I reported it upstream myself :)

(Well, I sent it to Ivan anyway. Who knows when he'll read it!! :P)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum