I configured geoip with the --target=x86_64 option and used the following compiler flags
MACOSX_DEPLOYMENT_TARGET=10.5
CFLAGS="-arch x86_64 -g -Os -pipe -no-cpp-precomp"
CCFLAGS="-arch x86_64 -g -Os -pipe"
CXXFLAGS="-arch x86_64 -g -Os -pipe"
LDFLAGS="-arch x86_64 -bind_at_load"
Compilation failed, but some libraries were generated which were 32 bit. Can someone please tell me how to proceed?
Compilation output
sh-3.2# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... missing
checking for working autoconf... found
checking for working automake-1.4... missing
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 ANSI C... none needed
checking build system type... i686-apple-darwin9.6.0
checking host system type... i686-apple-darwin9.6.0
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) is GNU ld... no
checking for /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
rm: conftest.dSYM: is a directory
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm -p output from gcc object... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
checking if gcc static flag works... rm: conftest.dSYM: is a directory
yes
checking if gcc supports -fno-rtti -fno-exceptions... rm: conftest.dSYM: is a directory
no
checking for gcc option to produce PIC... -fno-common
checking if gcc PIC flag -fno-common works... rm: conftest.dSYM: is a directory
yes
checking if gcc supports -c -o file.o... rm: conftest.dSYM: is a directory
yes
checking whether the gcc linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin9.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
checking for ld used by g++... /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) is GNU ld... no
checking whether the g++ linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common
checking if g++ PIC flag -fno-common works... rm: conftest.dSYM: is a directory
yes
checking if g++ supports -c -o file.o... rm: conftest.dSYM: is a directory
yes
checking whether the g++ linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin9.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
Enabling GeoIP City Edition support
checking for byte... no
checking for ushort... yes
checking for ulong... no
checking for u16... no
checking for u32... no
checking whether byte ordering is bigendian... no
checking for stdint.h... (cached) yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gethostbyname... yes
checking for gethostbyname_r... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating GeoIP.spec
config.status: creating libGeoIP/Makefile
config.status: creating apps/Makefile
config.status: creating conf/Makefile
config.status: creating data/Makefile
config.status: creating man/Makefile
config.status: creating test/Makefile
sh-3.2# make install
Making install in libGeoIP
/bin/sh ../libtool --mode=compile gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"GeoIP\" -DVERSION=\"1.4.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_USHORT_TYPEDEF=1 -DLITTLE_ENDIAN_HOST=1 -DHAVE_STDINT_H=1 -DHAVE_ZLIB_H=1 -DHAVE_GETHOSTBYNAME=1 -DDEFAULT_DBDIR=\"NONE/share/GeoIP\" -I. -I. -DGEOIPDATADIR=\"/usr/local/share/GeoIP\" -Wall -arch x86_64 -g -Os -pipe -no-cpp-precomp -c GeoIP.c
mkdir .libs
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"GeoIP\" -DVERSION=\"1.4.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_USHORT_TYPEDEF=1 -DLITTLE_ENDIAN_HOST=1 -DHAVE_STDINT_H=1 -DHAVE_ZLIB_H=1 -DHAVE_GETHOSTBYNAME=1 -DDEFAULT_DBDIR=\"NONE/share/GeoIP\" -I. -I. -DGEOIPDATADIR=\"/usr/local/share/GeoIP\" -Wall -arch x86_64 -g -Os -pipe -no-cpp-precomp -c GeoIP.c -fno-common -DPIC -o .libs/GeoIP.o
GeoIP.c: In function '_check_mtime':
GeoIP.c:349: warning: implicit declaration of function 'gettimeofday'
GeoIP.c: In function '_GeoIP_seek_record_v6':
GeoIP.c:501: warning: pointer targets in passing argument 2 of 'inet_pton' differ in signedness
GeoIP.c: In function '_get_name':
GeoIP.c:1294: warning: pointer targets in assignment differ in signedness
GeoIP.c: In function '_get_name_v6':
GeoIP.c:1329: warning: pointer targets in assignment differ in signedness
GeoIP.c: In function 'GeoIP_range_by_ip':
GeoIP.c:1391: warning: operation on 'left_seek' may be undefined
GeoIP.c:1400: warning: operation on 'right_seek' may be undefined
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"GeoIP\" -DVERSION=\"1.4.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_USHORT_TYPEDEF=1 -DLITTLE_ENDIAN_HOST=1 -DHAVE_STDINT_H=1 -DHAVE_ZLIB_H=1 -DHAVE_GETHOSTBYNAME=1 -DDEFAULT_DBDIR=\"NONE/share/GeoIP\" -I. -I. -DGEOIPDATADIR=\"/usr/local/share/GeoIP\" -Wall -arch x86_64 -g -Os -pipe -no-cpp-precomp -c GeoIP.c -o GeoIP.o >/dev/null 2>&1
/bin/sh ../libtool --mode=compile gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"GeoIP\" -DVERSION=\"1.4.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_USHORT_TYPEDEF=1 -DLITTLE_ENDIAN_HOST=1 -DHAVE_STDINT_H=1 -DHAVE_ZLIB_H=1 -DHAVE_GETHOSTBYNAME=1 -DDEFAULT_DBDIR=\"NONE/share/GeoIP\" -I. -I. -DGEOIPDATADIR=\"/usr/local/share/GeoIP\" -Wall -arch x86_64 -g -Os -pipe -no-cpp-precomp -c GeoIPCity.c
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"GeoIP\" -DVERSION=\"1.4.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_USHORT_TYPEDEF=1 -DLITTLE_ENDIAN_HOST=1 -DHAVE_STDINT_H=1 -DHAVE_ZLIB_H=1 -DHAVE_GETHOSTBYNAME=1 -DDEFAULT_DBDIR=\"NONE/share/GeoIP\" -I. -I. -DGEOIPDATADIR=\"/usr/local/share/GeoIP\" -Wall -arch x86_64 -g -Os -pipe -no-cpp-precomp -c GeoIPCity.c -fno-common -DPIC -o .libs/GeoIPCity.o
GeoIPCity.c: In function '_extract_record':
GeoIPCity.c:86: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness
GeoIPCity.c:110: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"GeoIP\" -DVERSION=\"1.4.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_USHORT_TYPEDEF=1 -DLITTLE_ENDIAN_HOST=1 -DHAVE_STDINT_H=1 -DHAVE_ZLIB_H=1 -DHAVE_GETHOSTBYNAME=1 -DDEFAULT_DBDIR=\"NONE/share/GeoIP\" -I. -I. -DGEOIPDATADIR=\"/usr/local/share/GeoIP\" -Wall -arch x86_64 -g -Os -pipe -no-cpp-precomp -c GeoIPCity.c -o GeoIPCity.o >/dev/null 2>&1
/bin/sh ../libtool --mode=compile gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"GeoIP\" -DVERSION=\"1.4.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_USHORT_TYPEDEF=1 -DLITTLE_ENDIAN_HOST=1 -DHAVE_STDINT_H=1 -DHAVE_ZLIB_H=1 -DHAVE_GETHOSTBYNAME=1 -DDEFAULT_DBDIR=\"NONE/share/GeoIP\" -I. -I. -DGEOIPDATADIR=\"/usr/local/share/GeoIP\" -Wall -arch x86_64 -g -Os -pipe -no-cpp-precomp -c regionName.c
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"GeoIP\" -DVERSION=\"1.4.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_USHORT_TYPEDEF=1 -DLITTLE_ENDIAN_HOST=1 -DHAVE_STDINT_H=1 -DHAVE_ZLIB_H=1 -DHAVE_GETHOSTBYNAME=1 -DDEFAULT_DBDIR=\"NONE/share/GeoIP\" -I. -I. -DGEOIPDATADIR=\"/usr/local/share/GeoIP\" -Wall -arch x86_64 -g -Os -pipe -no-cpp-precomp -c regionName.c -fno-common -DPIC -o .libs/regionName.o
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"GeoIP\" -DVERSION=\"1.4.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_USHORT_TYPEDEF=1 -DLITTLE_ENDIAN_HOST=1 -DHAVE_STDINT_H=1 -DHAVE_ZLIB_H=1 -DHAVE_GETHOSTBYNAME=1 -DDEFAULT_DBDIR=\"NONE/share/GeoIP\" -I. -I. -DGEOIPDATADIR=\"/usr/local/share/GeoIP\" -Wall -arch x86_64 -g -Os -pipe -no-cpp-precomp -c regionName.c -o regionName.o >/dev/null 2>&1
/bin/sh ../libtool --mode=compile gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"GeoIP\" -DVERSION=\"1.4.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_USHORT_TYPEDEF=1 -DLITTLE_ENDIAN_HOST=1 -DHAVE_STDINT_H=1 -DHAVE_ZLIB_H=1 -DHAVE_GETHOSTBYNAME=1 -DDEFAULT_DBDIR=\"NONE/share/GeoIP\" -I. -I. -DGEOIPDATADIR=\"/usr/local/share/GeoIP\" -Wall -arch x86_64 -g -Os -pipe -no-cpp-precomp -c timeZone.c
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"GeoIP\" -DVERSION=\"1.4.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_USHORT_TYPEDEF=1 -DLITTLE_ENDIAN_HOST=1 -DHAVE_STDINT_H=1 -DHAVE_ZLIB_H=1 -DHAVE_GETHOSTBYNAME=1 -DDEFAULT_DBDIR=\"NONE/share/GeoIP\" -I. -I. -DGEOIPDATADIR=\"/usr/local/share/GeoIP\" -Wall -arch x86_64 -g -Os -pipe -no-cpp-precomp -c timeZone.c -fno-common -DPIC -o .libs/timeZone.o
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"GeoIP\" -DVERSION=\"1.4.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_USHORT_TYPEDEF=1 -DLITTLE_ENDIAN_HOST=1 -DHAVE_STDINT_H=1 -DHAVE_ZLIB_H=1 -DHAVE_GETHOSTBYNAME=1 -DDEFAULT_DBDIR=\"NONE/share/GeoIP\" -I. -I. -DGEOIPDATADIR=\"/usr/local/share/GeoIP\" -Wall -arch x86_64 -g -Os -pipe -no-cpp-precomp -c timeZone.c -o timeZone.o >/dev/null 2>&1
/bin/sh ../libtool --mode=link gcc -arch x86_64 -g -Os -pipe -no-cpp-precomp -arch x86_64 -bind_at_load -o libGeoIP.la -rpath /usr/local/lib -version-info 5:5:4 GeoIP.lo GeoIPCity.lo regionName.lo timeZone.lo
gcc -dynamiclib ${wl}-undefined ${wl}dynamic_lookup -o .libs/libGeoIP.1.4.5.dylib .libs/GeoIP.o .libs/GeoIPCity.o .libs/regionName.o .libs/timeZone.o -install_name /usr/local/lib/libGeoIP.1.dylib -Wl,-compatibility_version -Wl,6 -Wl,-current_version -Wl,6.5
ld: warning in .libs/GeoIP.o, file is not of required architecture
ld: warning in .libs/GeoIPCity.o, file is not of required architecture
ld: warning in .libs/regionName.o, file is not of required architecture
ld: warning in .libs/timeZone.o, file is not of required architecture
(cd .libs && rm -f libGeoIP.1.dylib && ln -s libGeoIP.1.4.5.dylib libGeoIP.1.dylib)
(cd .libs && rm -f libGeoIP.dylib && ln -s libGeoIP.1.4.5.dylib libGeoIP.dylib)
ar cru .libs/libGeoIP.a GeoIP.o GeoIPCity.o regionName.o timeZone.o
ranlib .libs/libGeoIP.a
creating libGeoIP.la
(cd .libs && rm -f libGeoIP.la && ln -s ../libGeoIP.la libGeoIP.la)
/bin/sh ../libtool --mode=compile gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"GeoIP\" -DVERSION=\"1.4.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_USHORT_TYPEDEF=1 -DLITTLE_ENDIAN_HOST=1 -DHAVE_STDINT_H=1 -DHAVE_ZLIB_H=1 -DHAVE_GETHOSTBYNAME=1 -DDEFAULT_DBDIR=\"NONE/share/GeoIP\" -I. -I. -DGEOIPDATADIR=\"/usr/local/share/GeoIP\" -Wall -arch x86_64 -g -Os -pipe -no-cpp-precomp -c GeoIPUpdate.c
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"GeoIP\" -DVERSION=\"1.4.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_USHORT_TYPEDEF=1 -DLITTLE_ENDIAN_HOST=1 -DHAVE_STDINT_H=1 -DHAVE_ZLIB_H=1 -DHAVE_GETHOSTBYNAME=1 -DDEFAULT_DBDIR=\"NONE/share/GeoIP\" -I. -I. -DGEOIPDATADIR=\"/usr/local/share/GeoIP\" -Wall -arch x86_64 -g -Os -pipe -no-cpp-precomp -c GeoIPUpdate.c -fno-common -DPIC -o .libs/GeoIPUpdate.o
GeoIPUpdate.c: In function 'GeoIP_update_database_general':
GeoIPUpdate.c:631: warning: pointer targets in passing argument 2 of 'md5_write' differ in signedness
GeoIPUpdate.c:632: warning: pointer targets in passing argument 2 of 'md5_write' differ in signedness
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"GeoIP\" -DVERSION=\"1.4.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_USHORT_TYPEDEF=1 -DLITTLE_ENDIAN_HOST=1 -DHAVE_STDINT_H=1 -DHAVE_ZLIB_H=1 -DHAVE_GETHOSTBYNAME=1 -DDEFAULT_DBDIR=\"NONE/share/GeoIP\" -I. -I. -DGEOIPDATADIR=\"/usr/local/share/GeoIP\" -Wall -arch x86_64 -g -Os -pipe -no-cpp-precomp -c GeoIPUpdate.c -o GeoIPUpdate.o >/dev/null 2>&1
/bin/sh ../libtool --mode=compile gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"GeoIP\" -DVERSION=\"1.4.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_USHORT_TYPEDEF=1 -DLITTLE_ENDIAN_HOST=1 -DHAVE_STDINT_H=1 -DHAVE_ZLIB_H=1 -DHAVE_GETHOSTBYNAME=1 -DDEFAULT_DBDIR=\"NONE/share/GeoIP\" -I. -I. -DGEOIPDATADIR=\"/usr/local/share/GeoIP\" -Wall -arch x86_64 -g -Os -pipe -no-cpp-precomp -c md5.c
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"GeoIP\" -DVERSION=\"1.4.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_USHORT_TYPEDEF=1 -DLITTLE_ENDIAN_HOST=1 -DHAVE_STDINT_H=1 -DHAVE_ZLIB_H=1 -DHAVE_GETHOSTBYNAME=1 -DDEFAULT_DBDIR=\"NONE/share/GeoIP\" -I. -I. -DGEOIPDATADIR=\"/usr/local/share/GeoIP\" -Wall -arch x86_64 -g -Os -pipe -no-cpp-precomp -c md5.c -fno-common -DPIC -o .libs/md5.o
md5.c:324: warning: 'md5_read' defined but not used
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"GeoIP\" -DVERSION=\"1.4.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_USHORT_TYPEDEF=1 -DLITTLE_ENDIAN_HOST=1 -DHAVE_STDINT_H=1 -DHAVE_ZLIB_H=1 -DHAVE_GETHOSTBYNAME=1 -DDEFAULT_DBDIR=\"NONE/share/GeoIP\" -I. -I. -DGEOIPDATADIR=\"/usr/local/share/GeoIP\" -Wall -arch x86_64 -g -Os -pipe -no-cpp-precomp -c md5.c -o md5.o >/dev/null 2>&1
/bin/sh ../libtool --mode=link gcc -arch x86_64 -g -Os -pipe -no-cpp-precomp -arch x86_64 -bind_at_load -o libGeoIPUpdate.la -rpath /usr/local/lib GeoIPUpdate.lo md5.lo -lz libGeoIP.la
gcc -dynamiclib ${wl}-undefined ${wl}dynamic_lookup -o .libs/libGeoIPUpdate.0.0.0.dylib .libs/GeoIPUpdate.o .libs/md5.o -lz ./.libs/libGeoIP.dylib -install_name /usr/local/lib/libGeoIPUpdate.0.dylib -Wl,-compatibility_version -Wl,1 -Wl,-current_version -Wl,1.0
ld: warning in .libs/GeoIPUpdate.o, file is not of required architecture
ld: warning in .libs/md5.o, file is not of required architecture
(cd .libs && rm -f libGeoIPUpdate.0.dylib && ln -s libGeoIPUpdate.0.0.0.dylib libGeoIPUpdate.0.dylib)
(cd .libs && rm -f libGeoIPUpdate.dylib && ln -s libGeoIPUpdate.0.0.0.dylib libGeoIPUpdate.dylib)
ar cru .libs/libGeoIPUpdate.a GeoIPUpdate.o md5.o
ranlib .libs/libGeoIPUpdate.a
creating libGeoIPUpdate.la
(cd .libs && rm -f libGeoIPUpdate.la && ln -s ../libGeoIPUpdate.la libGeoIPUpdate.la)
/bin/sh ../mkinstalldirs /usr/local/lib
/bin/sh ../libtool --mode=install /usr/bin/install -c libGeoIP.la /usr/local/lib/libGeoIP.la
/usr/bin/install -c .libs/libGeoIP.1.4.5.dylib /usr/local/lib/libGeoIP.1.4.5.dylib
(cd /usr/local/lib && rm -f libGeoIP.1.dylib && ln -s libGeoIP.1.4.5.dylib libGeoIP.1.dylib)
(cd /usr/local/lib && rm -f libGeoIP.dylib && ln -s libGeoIP.1.4.5.dylib libGeoIP.dylib)
/usr/bin/install -c .libs/libGeoIP.lai /usr/local/lib/libGeoIP.la
/usr/bin/install -c .libs/libGeoIP.a /usr/local/lib/libGeoIP.a
ranlib /usr/local/lib/libGeoIP.a
chmod 644 /usr/local/lib/libGeoIP.a
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
during execution
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/sh ../libtool --mode=install /usr/bin/install -c libGeoIPUpdate.la /usr/local/lib/libGeoIPUpdate.la
/usr/bin/install -c .libs/libGeoIPUpdate.0.0.0.dylib /usr/local/lib/libGeoIPUpdate.0.0.0.dylib
(cd /usr/local/lib && rm -f libGeoIPUpdate.0.dylib && ln -s libGeoIPUpdate.0.0.0.dylib libGeoIPUpdate.0.dylib)
(cd /usr/local/lib && rm -f libGeoIPUpdate.dylib && ln -s libGeoIPUpdate.0.0.0.dylib libGeoIPUpdate.dylib)
/usr/bin/install -c .libs/libGeoIPUpdate.lai /usr/local/lib/libGeoIPUpdate.la
/usr/bin/install -c .libs/libGeoIPUpdate.a /usr/local/lib/libGeoIPUpdate.a
ranlib /usr/local/lib/libGeoIPUpdate.a
chmod 644 /usr/local/lib/libGeoIPUpdate.a
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
during execution
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/sh ../mkinstalldirs /usr/local/include
/usr/bin/install -c -m 644 GeoIP.h /usr/local/include/GeoIP.h
/usr/bin/install -c -m 644 GeoIPCity.h /usr/local/include/GeoIPCity.h
/usr/bin/install -c -m 644 GeoIPUpdate.h /usr/local/include/GeoIPUpdate.h
Making install in apps
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"GeoIP\" -DVERSION=\"1.4.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_USHORT_TYPEDEF=1 -DLITTLE_ENDIAN_HOST=1 -DHAVE_STDINT_H=1 -DHAVE_ZLIB_H=1 -DHAVE_GETHOSTBYNAME=1 -DDEFAULT_DBDIR=\"NONE/share/GeoIP\" -I. -I. -I../libGeoIP -Wall -DSYSCONFDIR=\"/usr/local/etc\" -Wall -arch x86_64 -g -Os -pipe -no-cpp-precomp -c geoiplookup.c
/bin/sh ../libtool --mode=link gcc -arch x86_64 -g -Os -pipe -no-cpp-precomp -arch x86_64 -bind_at_load -o geoiplookup geoiplookup.o ../libGeoIP/libGeoIP.la
mkdir .libs
gcc -arch x86_64 -g -Os -pipe -no-cpp-precomp -arch x86_64 -bind_at_load -o .libs/geoiplookup geoiplookup.o ../libGeoIP/.libs/libGeoIP.dylib
ld: warning in ../libGeoIP/.libs/libGeoIP.dylib, file is not of required architecture
Undefined symbols:
"_GeoIP_name_by_ipnum", referenced from:
_geoiplookup in geoiplookup.o
"__GeoIP_lookupaddress", referenced from:
_geoiplookup in geoiplookup.o
"_GeoIP_record_by_ipnum", referenced from:
_geoiplookup in geoiplookup.o
_geoiplookup in geoiplookup.o
"_GeoIP_delete", referenced from:
_main in geoiplookup.o
_main in geoiplookup.o
"_GeoIP_country_name", referenced from:
_geoiplookup in geoiplookup.o
"_GeoIPDBDescription", referenced from:
_geoiplookup in geoiplookup.o
_geoiplookup in geoiplookup.o
_geoiplookup in geoiplookup.o
_geoiplookup in geoiplookup.o
_geoiplookup in geoiplookup.o
_geoiplookup in geoiplookup.o
_geoiplookup in geoiplookup.o
_geoiplookup in geoiplookup.o
_geoiplookup in geoiplookup.o
_geoiplookup in geoiplookup.o
_geoiplookup in geoiplookup.o
_geoiplookup in geoiplookup.o
_geoiplookup in geoiplookup.o
_geoiplookup in geoiplookup.o
_geoiplookup in geoiplookup.o
_geoiplookup in geoiplookup.o
_main in geoiplookup.o
_main in geoiplookup.o
"_GeoIP_org_by_ipnum", referenced from:
_geoiplookup in geoiplookup.o
"__GeoIP_setup_dbfilename", referenced from:
_main in geoiplookup.o
"_GeoIP_db_avail", referenced from:
_main in geoiplookup.o
"_GeoIP_region_by_ipnum", referenced from:
_geoiplookup in geoiplookup.o
"_GeoIP_open_type", referenced from:
_main in geoiplookup.o
"_GeoIP_setup_custom_directory", referenced from:
_main in geoiplookup.o
"_GeoIPRegion_delete", referenced from:
_geoiplookup in geoiplookup.o
"_GeoIP_id_by_ipnum", referenced from:
_geoiplookup in geoiplookup.o
_geoiplookup in geoiplookup.o
"_GeoIP_database_edition", referenced from:
_main in geoiplookup.o
"_GeoIP_country_code", referenced from:
_geoiplookup in geoiplookup.o
"_GeoIP_database_info", referenced from:
_main in geoiplookup.o
_main in geoiplookup.o
"_GeoIP_open", referenced from:
_main in geoiplookup.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [geoiplookup] Error 1
make: *** [install-recursive] Error 1
