Hi Support,

It appears there is something wrong with your static libraries.
There doesn't seem to be any functions exported.


-----------
gcc -Wall -DCORES=2 -DHTHREADS=4 -static -o monicap-2x4 monicap.cpp
monicap-api.cpp monicap-capture.cpp monicap-chomp.cpp
-L/usr/lib/x86_64-linux-gnu/libGeoIP.a -pthread -lz -lpcap -lsqlite3 -ldl
-lGeoIP

 . . .

/tmp/ccmwnakq.o: In function `GetGeoIP(CoordinateSpec&, char const*)':
monicap-api.cpp:(.text+0x203f): undefined reference to `GeoIP_open'
monicap-api.cpp:(.text+0x2081): undefined reference to `GeoIP_record_by_name'
monicap-api.cpp:(.text+0x20c0): undefined reference to `GeoIPRecord_delete'
monicap-api.cpp:(.text+0x20d0): undefined reference to `GeoIP_delete'
collect2: error: ld returned 1 exit status
Makefile:171: recipe for target 'monicap-static-2x4' failed
make: *** [monicap-static-2x4] Error 1

--
netlinux@SharedPC:/brain/Projects/MONI/pcapread$ dpkg -s libgeoip-dev
Package: libgeoip-dev
Status: install ok installed
Priority: optional
Section: libdevel
Installed-Size: 268
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Source: geoip
Version: 1.6.6-1
Depends: libgeoip1 (= 1.6.6-1), geoip-bin (= 1.6.6-1)
Description: Development files for the GeoIP library
 GeoIP is a C library that enables the user to find the country that any
 IP address or hostname originates from. It uses a file based database.
 .
 This database simply contains IP blocks as keys, and countries as values and
 it should be more complete and accurate than using reverse DNS lookups.
 .
 This package contains the development files.
Original-Maintainer: Patrick Matthäi <pmatth...@debian.org>
Homepage: http://www.maxmind.com/

--
netlinux@SharedPC:/brain/Projects/MONI/pcapread$ dpkg -L libgeoip-dev
 . . .
/usr/lib/x86_64-linux-gnu/libGeoIP.a
 . . .

--
netlinux@SharedPC:/brain/Projects/MONI/pcapread$ nm
/usr/lib/x86_64-linux-gnu/libGeoIP.a

GeoIP.o:
nm: GeoIP.o: no symbols

GeoIP_deprecated.o:
nm: GeoIP_deprecated.o: no symbols

GeoIPCity.o:
nm: GeoIPCity.o: no symbols

regionName.o:
nm: regionName.o: no symbols

timeZone.o:
nm: timeZone.o: no symbols
-----------

Thanks.

Graham
www.realtime-analysis.com | +44 779 321 1967




-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss

Reply via email to