[...]
checking whether to use bzlib... "yes"
checking for location of bzlib includes...
checking bzlib.h usability... yes
checking bzlib.h presence... yes
checking for bzlib.h... yes
checking for location of bzlib library...
checking for BZ2_bzBuffToBuffCompress in -lbz2... no
configure: error: *** Unable to locate bzlib library.
That are the latest build instructions on MS Windows (that are tested ;-))
Cheers,
Stefan
Gesendet: Montag, 06. März 2023 um 22:09 Uhr Von: “Helmut Kudrnovsky” hellik@web.de An: “Grass Dev” grass-dev@lists.osgeo.org Cc:landam@gmail.com Betreff: [GRASS-dev] winGRASS compilation: configure: error: *** Unable to locate bzlib library.
anyone out there who is actually compile GRASS on windows?
[…]
checking whether to use bzlib… “yes”
checking for location of bzlib includes…
checking bzlib.h usability… yes
checking bzlib.h presence… yes
checking for bzlib.h… yes
checking for location of bzlib library…
checking for BZ2_bzBuffToBuffCompress in -lbz2… no
configure: error: *** Unable to locate bzlib library.
checking for location of zlib includes...
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for location of zlib library...
checking for deflate in -lz... yes
checking whether to use bzlib... "yes"
checking for location of bzlib includes...
checking bzlib.h usability... yes
checking bzlib.h presence... yes
checking for bzlib.h... yes
checking for location of bzlib library...
checking for BZ2_bzBuffToBuffCompress in -lbz2... no
=> configure: error: *** Unable to locate bzlib library. <=
I've installed all build needed packackages mentioned in
checking for location of zlib includes...
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for location of zlib library...
checking for deflate in -lz... yes
checking whether to use bzlib... "yes"
checking for location of bzlib includes...
checking bzlib.h usability... yes
checking bzlib.h presence... yes
checking for bzlib.h... yes
checking for location of bzlib library...
checking for BZ2_bzBuffToBuffCompress in -lbz2... no
=> configure: error: *** Unable to locate bzlib library. <=
looking into config.log:
configure:7706: checking whether to use bzlib
configure:7708: result: "yes"
configure:7723: checking for location of bzlib includes
configure:7730: result:
configure:7749: checking bzlib.h usability
configure:7749: x86_64-w64-mingw32-gcc -c -g -O2 -I/c/OSGeo4W/include conftest.c >&5
configure:7749: $? = 0
configure:7749: result: yes
configure:7749: checking bzlib.h presence
configure:7749: x86_64-w64-mingw32-gcc -E -I/c/OSGeo4W/include conftest.c
configure:7749: $? = 0
configure:7749: result: yes
configure:7749: checking for bzlib.h
configure:7749: result: yes
configure:7769: checking for location of bzlib library
configure:7776: result:
configure:7795: checking for BZ2_bzBuffToBuffCompress in -lbz2
configure:7818: x86_64-w64-mingw32-gcc -o conftest.exe -g -O2 -I/c/OSGeo4W/include -Wl,--export-dynamic,--enable-runtime-pseudo-reloc -L/c/OSGeo4W/lib -L/c/OSGeo4W/bin conftest.c -lbz2 >&5
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: warning: --export-dynamic is not supported for PE+ targets, did you mean --export-all-symbols?
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../lib/libmingw32.a(lib64_libmingw32_a-merr.o): in function `_matherr':
C:/M/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/merr.c:46: undefined reference to `fprintf'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(bzlib.obj):(.text$mn+0x6a0): undefined reference to `fprintf'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(bzlib.obj):(.text$mn+0x6c2): undefined reference to `fprintf'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(bzlib.obj):(.text$mn+0x759): undefined reference to `fprintf'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(bzlib.obj):(.text$mn+0x2350): undefined reference to `fprintf'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(bzlib.obj):(.text$mn+0x2372): more undefined references to `fprintf' follow
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(bzlib.obj):(.text$mn+0x3747): undefined reference to `__security_cookie'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(bzlib.obj):(.text$mn+0x3a74): undefined reference to `__security_check_cookie'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(bzlib.obj):(.xdata+0x458): undefined reference to `__GSHandlerCheck'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(decompress.obj):(.text$mn+0x22): undefined reference to `__security_cookie'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(decompress.obj):(.text$mn+0x799): undefined reference to `fprintf'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(decompress.obj):(.text$mn+0x1ed2): undefined reference to `fprintf'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(decompress.obj):(.text$mn+0x27fa): undefined reference to `__security_check_cookie'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(decompress.obj):(.xdata+0x20): undefined reference to `__GSHandlerCheck'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(compress.obj):(.text$mn+0x88): undefined reference to `fprintf'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(compress.obj):(.text$mn+0x880): undefined reference to `fprintf'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(compress.obj):(.text$mn+0xab2): undefined reference to `__security_cookie'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(compress.obj):(.text$mn+0xcc0): undefined reference to `__security_check_cookie'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(compress.obj):(.text$mn+0xd12): undefined reference to `__security_cookie'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(compress.obj):(.text$mn+0xd6b): undefined reference to `fprintf'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(compress.obj):(.text$mn+0xf46): undefined reference to `fprintf'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(compress.obj):(.text$mn+0x254a): undefined reference to `fprintf'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(compress.obj):(.text$mn+0x256f): undefined reference to `fprintf'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(compress.obj):(.text$mn+0x2591): undefined reference to `fprintf'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(compress.obj):(.text$mn+0x29d4): more undefined references to `fprintf' follow
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(compress.obj):(.text$mn+0x465d): undefined reference to `__security_check_cookie'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(compress.obj):(.text$mn+0x4683): undefined reference to `__report_rangecheckfailure'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(compress.obj):(.xdata+0xa0): undefined reference to `__GSHandlerCheck'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(compress.obj):(.xdata+0xc8): undefined reference to `__GSHandlerCheck'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(huffman.obj):(.text$mn+0x6e): undefined reference to `__chkstk'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(huffman.obj):(.text$mn+0x78): undefined reference to `__security_cookie'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(huffman.obj):(.text$mn+0x5b3): undefined reference to `__security_check_cookie'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(huffman.obj):(.xdata+0x24): undefined reference to `__GSHandlerCheck'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(blocksort.obj):(.text$mn+0xe9): undefined reference to `fprintf'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(blocksort.obj):(.text$mn+0x11c): undefined reference to `fprintf'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(blocksort.obj):(.text$mn+0x29a): undefined reference to `__security_cookie'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(blocksort.obj):(.text$mn+0x5fb): undefined reference to `__security_check_cookie'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(blocksort.obj):(.text$mn+0x637): undefined reference to `__security_cookie'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(blocksort.obj):(.text$mn+0x676): undefined reference to `fprintf'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(blocksort.obj):(.text$mn+0xbd7): undefined reference to `fprintf'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(blocksort.obj):(.text$mn+0xdfe): undefined reference to `fprintf'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(blocksort.obj):(.text$mn+0xe3f): undefined reference to `fprintf'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(blocksort.obj):(.text$mn+0xeaf): undefined reference to `__security_check_cookie'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(blocksort.obj):(.text$mn+0x15ca): undefined reference to `__security_cookie'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(blocksort.obj):(.text$mn+0x19c5): undefined reference to `__security_check_cookie'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(blocksort.obj):(.text$mn+0x1a05): undefined reference to `__security_cookie'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(blocksort.obj):(.text$mn+0x1a66): undefined reference to `fprintf'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(blocksort.obj):(.text$mn+0x1dad): undefined reference to `fprintf'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(blocksort.obj):(.text$mn+0x2108): undefined reference to `fprintf'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(blocksort.obj):(.text$mn+0x2477): undefined reference to `fprintf'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(blocksort.obj):(.text$mn+0x248f): undefined reference to `__security_check_cookie'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(blocksort.obj):(.text$mn+0x24a6): undefined reference to `__report_rangecheckfailure'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(blocksort.obj):(.xdata+0xd4): undefined reference to `__GSHandlerCheck'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(blocksort.obj):(.xdata+0xf4): undefined reference to `__GSHandlerCheck'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(blocksort.obj):(.xdata+0x1c8): undefined reference to `__GSHandlerCheck'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/OSGeo4W/lib/libbz2.lib(blocksort.obj):(.xdata+0x1e8): undefined reference to `__GSHandlerCheck'
collect2.exe: error: ld returned 1 exit status