[Samba] samba 4.12 build on hp-ux not able to find library z

Kumar, Arjit (SSTO) arjit.kumar at hpe.com
Tue Mar 31 17:26:25 UTC 2020


Hi Team,

We are building samba 4.12 on hp-ux with using default aCC compiler.
But during configuration it fails to find library z provided by zlib even library location is passed as LDFLAGS.

Checking for library z                                                            : no

libz location: /usr/local/lib/hpux32/libz.so
LDFLAGS passed for configuration: export LDFLAGS="-Wl,+s,+b/opt/samba/lib:/opt/samba/lib/samba:/opt/samba/lib/others/lib:/opt/samba/lib/security:/usr/local/lib/hpux32 -Wl,+as,mpas -L/opt/iexpress/python/lib
/python2.7 -L/opt/samba/lib/others/lib -L/usr/local/lib/hpux32"
Linker from bin/config.log: ['/usr/bin/cc', 'test.c.1.o', '-o/samba_build/samba-4.12.0rc2/bin/.conf_check_4798172081046f755f5fa4771438660a/testbuild/default/testprog', '-L/usr/local/lib', '-lz', '-Wl,
+s,+b/opt/samba/lib:/opt/samba/lib/samba:/opt/samba/lib/others/lib:/opt/samba/lib/security:/usr/local/lib/hpux32', '-Wl,+as,mpas', '-L/opt/iexpress/python/lib/python2.7', '
-L/opt/samba/lib/others/lib', '-L/usr/local/lib/hpux32']

Note: if I add '-lz' in the end of linker I am able to find library z

Workaround: Create symbolic links from /usr/local/lib/hpux32 to /usr/local/lib

Please let me know how can I pass linker paths so that '-lz' comes in the end.

Also let me know if some additional information.

Regards,
Arjit


More information about the samba mailing list