Hi Ralf,

When building openldap-2.3.11-2.5.0.src.rpm on Solaris 9 using
openpkg-tools, we encountered the following build failure:

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
checking for SSLeay_add_ssl_algorithms in -lssl... no
checking for SSL_library_init in -lssl... no
checking for ssl3_accept in -lssl... no
checking OpenSSL library version (CRL checking capability)... yes
configure: error: Could not locate TLS/SSL package
error: Bad exit status from /usr/psr.local/RPM/TMP/rpm-tmp.29402 (%build)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The problem turned out to be a missing reference to "-lz" on the command
line used to test for "SSL_library_init". Config.log reveals:

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
configure:19388: checking for SSL_library_init in -lssl
configure:19418: /usr/psr.local/bin/cc -o conftest -O2 -pipe
-I/usr/psr.local/
include/pth -I/usr/psr.local/include -I/usr/psr.local/include/sasl
-I/usr/psr.
local/include/pth -L/usr/psr.local/lib -L/usr/psr.local/lib/pth
-L/usr/psr.loc
al/lib conftest.c -lssl -lcrypto -lresolv -lpth -lfsl -lsocket -lnsl -lrt
>&5
/usr/psr.local/lib/libcrypto.a(c_zlib.o): In function
`zlib_stateful_free_ex_d
ata':
c_zlib.c:(.text+0x8): undefined reference to `inflateEnd'
c_zlib.c:(.text+0x10): undefined reference to `deflateEnd'
/usr/psr.local/lib/libcrypto.a(c_zlib.o): In function `zlib_stateful_init':
c_zlib.c:(.text+0x90): undefined reference to `inflateInit_'
c_zlib.c:(.text+0xe4): undefined reference to `deflateInit_'
/usr/psr.local/lib/libcrypto.a(c_zlib.o): In function
`zlib_stateful_compress_
block':
c_zlib.c:(.text+0x230): undefined reference to `deflate'
/usr/psr.local/lib/libcrypto.a(c_zlib.o): In function
`zlib_stateful_expand_bl
ock':
c_zlib.c:(.text+0x2b0): undefined reference to `inflate'
collect2: ld returned 1 exit status
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Adding "-lz" solved the problem. What we're trying to understand is how you
were able to build it on your build farm without it?

libcrypto.a is built as part of openssl and contains references to zlib; in
fact, zlib is an openssl dependency. Yet, the openldap configure script,
which requires openssl, does not reference zlib. So how did this work for
you?

As a member, is there a way for me to look at your config.log to see what is
different in your setup? I want OpenPKG to succeed, and problems like this
can contribute to users not accepting OpenPKG as their solution. So it would
be good if we could understand the discrepancy, and then clarify, perhaps
through documentation, what the required Solaris 9 setup is for a successful
build.

Thanks,
       Dennis

Dennis McRitchie
Computational Science and Engineering Support (CSES)
Academic Services Department
Office of Information Technology
Princeton University

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   openpkg-dev@openpkg.org

Reply via email to