[csw-maintainers] Help with BIND build (symbol gzopen64 missing)

Dagobert Michelsen dam at opencsw.org
Fri Sep 20 17:52:57 CEST 2013


Hi Peter,

Am 20.09.2013 um 17:39 schrieb Peter Bonivart:
> Hi, I'm trying to build the latest BIND version and it fails with this:
> 
> /opt/csw/bin/gcc-4.8 -O2 -pipe -m32 -march=pentiumpro
> -I/opt/csw/include/libxml2 -I../../lib/isc/include \
> -I/opt/csw/include -D_XPG4_2 -D__EXTENSIONS__  -m32 -march=pentiumpro
> -L/opt/csw/lib -R/opt/csw/lib -o gen ./gen.c -lpthread  -lthread
> -L/opt/csw/lib -R/opt/csw/lib -lxml2 -lz -lpthread -liconv -lm
> -lsocket -lnsl
> Undefined                       first referenced
> symbol                             in file
> gzopen64                            /opt/csw/lib/libxml2.so
> ld: fatal: symbol referencing errors. No output written to gen
> collect2: error: ld returned 1 exit status
> ...
> 
> Looks like libxml2.so uses this libz:
> 
> bonivart at unstable10x[trunk]$ ldd /opt/csw/lib/libxml2.so
>        libz.so.1 =>     /opt/csw/lib/pentium_pro+mmx/libz.so.1
> ...
> 
> And it has gzopen64:
> 
> bonivart at unstable10x[trunk]$ /usr/xpg4/bin/nm
> /opt/csw/lib/pentium_pro+mmx/libz.so.1|grep gzopen
> [136]   |     60016|        21|FUNC |GLOB |0    |12     |gzopen
> [150]   |     60040|        21|FUNC |GLOB |0    |12     |gzopen64
> 
> But still it fails, the systems libz does not have gzopen64, is that
> why it fails but why is that libz even used?
> 
> bonivart at unstable10x[trunk]$ /usr/xpg4/bin/nm /usr/lib/libz.so.1|grep gzopen
> [159]   |      8398|        20|FUNC |GLOB |0    |10     |gzopen

Maybe this sheds some light:
  http://lists.opencsw.org/pipermail/maintainers/2013-May/018094.html


Best regards

  -- Dago


More information about the maintainers mailing list