#1318·zlib

The 1.3.2 won't compile shared library on FreeBSD 15

Author: Zoran-VasiljevicCreated Sep 16, 2026Updated Sep 16, 2026

devbsd15:~/zlib-1.3.2 $ uname -a FreeBSD devbsd15 15.0-RELEASE FreeBSD 15.0-RELEASE releng/15.0-n280995-7aedc8de6446 GENERIC amd64

devbsd15:~/zlib-1.3.2 $ ./configure Checking for gcc... Checking for shared library support... No shared library support. Building static library libz.a version 1.3.2 with cc. Checking for size_t... Yes.

Excerpt from configure.log:

Checking for shared library support... === ztest29764.c === extern int getchar(); int hello() {return getchar();}

cc -c -O3 -fPIC ztest29764.c cc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map -O3 -fPIC -o ztest29764.so ztest29764.o ld: error: version script assignment of 'ZLIB_1.2.0' to symbol 'compressBound' failed: symbol not defined ld: error: version script assignment of 'ZLIB_1.2.0' to symbol 'deflateBound' failed: symbol not defined ld: error: version script assignment of 'ZLIB_1.2.0' to symbol 'inflateBack' failed: symbol not defined ld: error: version script assignment of 'ZLIB_1.2.0' to symbol 'inflateBackEnd' failed: symbol not defined ld: error: version script assignment of 'ZLIB_1.2.0' to symbol 'inflateBackInit_' failed: symbol not defined