make[1]: Entering directory `/root/ipv6calc/ipv6calc' gcc -O2 -Wall -g -I../ -I../lib/ -c ipv6calc.c gcc -O2 -Wall -g -I../ -I../lib/ -c showinfo.c showinfo.c: In function 'print_geoip': showinfo.c:315: error: 'GEOIP_COUNTRY_EDITION_V6' undeclared (first use in this function) showinfo.c:315: error: (Each undeclared identifier is reported only once showinfo.c:315: error: for each function it appears in.) showinfo.c:320: warning: implicit declaration of function 'GeoIP_country_code_by_addr_v6' showinfo.c:320: warning: assignment makes pointer from integer without a cast showinfo.c:321: warning: implicit declaration of function 'GeoIP_country_name_by_addr_v6' showinfo.c:321: warning: assignment makes pointer from integer without a cast make[1]: *** [showinfo.o] Error 1 make[1]: Leaving directory `/root/ipv6calc/ipv6calc' make: *** [ipv6calc-make] Error 2 Compiling using: ./configure --enable-geoip Kind regards, Jimmy
Hi, Am 05.10.2011 18:36, schrieb Jimmy Andelhofs:
make[1]: Entering directory `/root/ipv6calc/ipv6calc' gcc -O2 -Wall -g -I../ -I../lib/ -c ipv6calc.c gcc -O2 -Wall -g -I../ -I../lib/ -c showinfo.c showinfo.c: In function 'print_geoip': showinfo.c:315: error: 'GEOIP_COUNTRY_EDITION_V6' undeclared (first use in this function) showinfo.c:315: error: (Each undeclared identifier is reported only once showinfo.c:315: error: for each function it appears in.) showinfo.c:320: warning: implicit declaration of function 'GeoIP_country_code_by_addr_v6' showinfo.c:320: warning: assignment makes pointer from integer without a cast showinfo.c:321: warning: implicit declaration of function 'GeoIP_country_name_by_addr_v6' showinfo.c:321: warning: assignment makes pointer from integer without a cast make[1]: *** [showinfo.o] Error 1 make[1]: Leaving directory `/root/ipv6calc/ipv6calc' make: *** [ipv6calc-make] Error 2
Compiling using: ./configure --enable-geoip
which GeoIP-devel version are you using and which underlying OS version? Please send me also the output of ./configure --enable-geoip Perhaps I have to catch older GeoIP versions without IPv6 support. For the meantime please use version 0.82.1, this is the version before enabling IPv6 in GeoIP. Regards, Peter
which GeoIP-devel version are you using and which underlying OS version?
Please send me also the output of ./configure --enable-geoip
Perhaps I have to catch older GeoIP versions without IPv6 support.
For the meantime please use version 0.82.1, this is the version before enabling IPv6 in GeoIP.
Regards, Peter
Debian Lenny 5.0.8 The standard geoip-bin and dev from the debian lenny packages geoip-bin 1.4.4.dfsg-3+lenny1 [24.6kB] libgeoip-dev 1.4.4.dfsg-3+lenny1 [125kB] On Debian 6, it compiles without any problems Output of ./configure: :~/ipv6calc-0.90.0# ./configure --enable-geoip checking for gawk... no checking for mawk... mawk checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for ranlib... ranlib checking whether make sets $(MAKE)... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for an ANSI C-conforming const... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for off_t... yes checking for size_t... yes checking whether byte ordering is bigendian... no checking for working memcmp... yes checking for strspn... yes checking for strstr... yes checking for getopt_long... yes checking GeoIP.h usability... yes checking GeoIP.h presence... yes checking for GeoIP.h... yes checking for GeoIP_open in -lGeoIP... yes configure: creating ./config.status config.status: creating Makefile config.status: creating md5/Makefile config.status: creating tools/Makefile config.status: creating getopt/Makefile config.status: creating ipv6calc/Makefile config.status: creating lib/Makefile config.status: creating man/Makefile config.status: creating ipv6logconv/Makefile config.status: creating ipv6loganon/Makefile config.status: creating ipv6logstats/Makefile config.status: creating contrib/ipv6calc.spec config.status: creating ipv6calcweb/ipv6calcweb.cgi config.status: creating config.h gcc version 4.3.2 (Debian 4.3.2-1.1)
Hi, At 05.10.2011 20:42, Jimmy Andelhofs wrote:
The standard geoip-bin and dev from the debian lenny packages geoip-bin 1.4.4.dfsg-3+lenny1 [24.6kB] libgeoip-dev 1.4.4.dfsg-3+lenny1 [125kB]
Ah, ok, GeoIP 1.4.4 does not support IPv6, this was introduced in 1.4.5 I've added now an additional GeoIP IPv6 check in configure.in and some code to cover, if GeoIP only supports IPv4. Please try latest version from CVS, if working fine, I will release a new version. Regards, Peter
Ah, ok, GeoIP 1.4.4 does not support IPv6, this was introduced in 1.4.5
I've added now an additional GeoIP IPv6 check in configure.in and some code to cover, if GeoIP only supports IPv4.
Please try latest version from CVS, if working fine, I will release a new version.
Regards, Peter
Works! Thanks, Jimmy
participants (2)
-
Jimmy Andelhofs
-
Peter Bieringer