[GRASS-dev] compiling in osgeo4w - configure: error: *** Unable to locate zlib library.

Helmut Kudrnovsky hellik at web.de
Fri Feb 11 18:22:51 EST 2011


I'm trying to compile a recent grass64svn in the osgeo4w-stack.

compiling fails with 

checking for location of zlib includes... 
checking for zlib.h... yes
checking for location of zlib library... 
checking for deflate in -lz... no
configure: error: *** Unable to locate zlib library."

from config.log

int main() {
; return 0; }
configure:6867: checking for location of zlib includes
configure:6893: checking for zlib.h
configure:6901: gcc -E    -I/c/OSGeo4W/apps/gdal-16/include -I/c/OSGeo4W/include conftest.c >/dev/null 2>conftest.out
configure:6935: checking for location of zlib library
configure:6960: checking for deflate in -lz
configure:6977: gcc -o conftest.exe -g -O2    -I/c/OSGeo4W/apps/gdal-16/include -I/c/OSGeo4W/include   -Wl,--export-dynamic,--enable-runtime-pseudo-reloc  -L/c/OSGeo4W/apps/gdal-16/lib -L/c/OSGeo4W/lib conftest.c -lz   1>&5
c:\OSGeo4W\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lz
collect2: ld returned 1 exit status
configure: failed program was:
#line 6966 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
 builtin and then its argument prototype would still apply.  */
char deflate();

int main() {
; return 0; }" 

there are following files

(06.02.2008  01:38            73.728 zlib1.dll
04.02.2008  06:16            73.728 zlib_osgeo.dll)

just a few weeks ago, compiling in the osge4w-stack was ok. I can't remember that
I've changed anything with zlib in the osgeo4w-stack.

any hints?

best regards

WEB.DE DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt mit 
gratis Handy-Flat! http://produkte.web.de/go/DSL_Doppel_Flatrate/2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1747 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20110212/20f13f2a/smime.bin

More information about the grass-dev mailing list