Newsgroup: it.comp.os.linux.iniziare
Titolo: problema con mandrake e geoip

una volta scaricata l'ultima versione di geoip (mi serve per il programma
verlihub), dato il ./configure, al make mi da errore e non riesco a capire
perchč..
[root@localhost GeoIP-1.3.7]# ./configure
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal-1.4... found
checking for working autoconf... found
checking for working automake-1.4... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking how to run the C preprocessor... (cached) gcc -E
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for /usr/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking for a sed that does not truncate output... (cached) /bin/sed
checking whether ln -s works... (cached) yes
checking how to recognise dependent libraries... (cached) pass_all
checking for object suffix... (cached) o
checking for executable suffix... (cached) no
checking command to parse /usr/bin/nm -B output... (cached) ok
checking for dlfcn.h... (cached) yes
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
checking for objdir... .libs
checking for gcc option to produce PIC... (cached)   -fPIC
checking if gcc PIC flag   -fPIC works... (cached) yes
checking if gcc static flag  works... (cached) no
checking if gcc supports -c -o file.o... (cached) yes
checking if gcc supports -c -o file.lo... (cached) yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... (cached) no
creating libtool
Enabling GeoIP City Edition support
checking for stdint.h... (cached) yes
checking for gethostbyname... (cached) yes
checking for gethostbyname_r... (cached) yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating GeoIP.spec
creating libGeoIP/Makefile
creating apps/Makefile
creating conf/Makefile
creating data/Makefile
creating man/Makefile
creating test/Makefile
[root@localhost GeoIP-1.3.7]# make
Making all in libGeoIP
make[1]: Entering directory `/home/flapane/archivio/verlihub e librerie x
verlihub/GeoIP-1.3.7/libGeoIP'
/bin/sh ../libtool --mode=compile
gcc -DPACKAGE=\"GeoIP\" -DVERSION=\"1.3.7\" -DHAVE_DLFCN_H=1 -DHAVE_STDINT_H
=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_GETHOSTBYNAME_R=1 -DDEFAULT_DBDIR=\"NONE/sh
are/GeoIP\"  -I. -I.   -DGEOIPDATADIR=\"/usr/local/share/GeoIP\" -Wall   -g 
-O2 -c GeoIPUpdate.c
rm -f .libs/GeoIPUpdate.lo
gcc -DPACKAGE=\"GeoIP\" -DVERSION=\"1.3.7\" -DHAVE_DLFCN_H=1 -DHAVE_STDINT_H
=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_GETHOSTBYNAME_R=1 -DDEFAULT_DBDIR=\"NONE/sh
are/GeoIP\" -I. -I. -DGEOIPDATADIR=\"/usr/local/share/GeoIP\" -Wall -g -O2 -
c GeoIPUpdate.c    -fPIC -DPIC -o .libs/GeoIPUpdate.lo
GeoIPUpdate.c:37:18: zlib.h: No such file or directory
GeoIPUpdate.c: In function `GeoIP_update_database':
GeoIPUpdate.c:76: error: `gzFile' undeclared (first use in this function)
GeoIPUpdate.c:76: error: (Each undeclared identifier is reported only once
GeoIPUpdate.c:76: error: for each function it appears in.)
GeoIPUpdate.c:76: error: parse error before "gz_fh"
GeoIPUpdate.c:208: error: `gz_fh' undeclared (first use in this function)
GeoIPUpdate.c:208: warning: implicit declaration of function `gzopen'
GeoIPUpdate.c:215: warning: implicit declaration of function `gzread'
GeoIPUpdate.c:217: warning: implicit declaration of function `gzclose'
GeoIPUpdate.c: In function `GeoIP_update_database_general':
GeoIPUpdate.c:323: error: `gzFile' undeclared (first use in this function)
GeoIPUpdate.c:323: error: parse error before "gz_fh"
GeoIPUpdate.c:590: error: `gz_fh' undeclared (first use in this function)
GeoIPUpdate.c:733: warning: initialization from incompatible pointer type
make[1]: *** [GeoIPUpdate.lo] Error 1
make[1]: Leaving directory `/home/flapane/archivio/verlihub e librerie x
verlihub/GeoIP-1.3.7/libGeoIP'
make: *** [all-recursive] Error 1
spero possiate aiutarmi a fare un pň di luce:D

 GeoIPUpdate.c:37:18: zlib.h: No such file or directory
Manca la parte sviluppo delle zlib
zlib-devel-qualcosa-dipendente-dalla-tua-distribuzione
-- 
           |Save our planet!
    Ciao   |Save wildlife!
   roberto |For your E-MAIL use ONLY recycled Bytes  !!
           |roberto poggi   
rpo...@softhome.net

è mandrake 10
"roberto" <rpoggi...@softhome.net.invalid> ha scritto nel messaggio
news:2uuio5F...@uni-berlin.de...


 ha scritto nel messaggio
news:lWuid.257$k62...@tornado.fastwebnet.it...


 b/geoip'
Boh, io non vedo segnalazioni di errori, per me, il make lo ha fatto,
oppure hai troncato qualche riga.
PS: si scrive sotto, e si toglie tutto salvo l'indispensabile.


 PS: si scrive sotto, e si toglie tutto salvo l'indispensabile.
si però andando a fare make check da errore.. e il check dovrebbe essere
solo un controllo
