hi,

openssl-0.9.7c builds correctly/completely as released on OSX 10.3.1

        ./Configure --prefix=/usr --openssldir=/System/Library/OpenSSL darwin-ppc-cc 
-DUSE_TOD shared threads
        make
        make install

however, on reboot the machine hangs

verbose mode shows numerous 'compatibitly_version' errors with libssl/libcrypto, of 
the sort:

        dyld: version mismatch for library: /usr/lib/libssl/dylib (compatibility 
version of user: 0.9.7 greater than 
library's version: 0.9.0)

this stems from an apparently incorrectly defined "compatibility_version" in 
Makefile.org, defined in the following 
stanza:


        # For Darwin AKA Mac OS/X (dyld)
        do_darwin-shared:
                libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
                if [ "${SHLIBDIRS}" = "ssl" -a -n "$(LIBKRB5)" ]; then \
                        libs="$(LIBKRB5) $$libs"; \
                fi; \
                ( set -x; ${CC} --verbose -dynamiclib -o lib$$i${SHLIB_EXT} \
                        lib$$i.a $$libs -all_load -current_version 
${SHLIB_MAJOR}.${SHLIB_MINOR} \
                        -compatibility_version ${SHLIB_MAJOR}.`echo ${SHLIB_MINOR} | 
cut -d. -f1` \
                        -install_name ${INSTALLTOP}/lib/lib$$i${SHLIB_EXT} ) || exit 
1; \
                libs="-l`basename $$i${SHLIB_EXT} .dylib` $$libs"; \
                echo "" ; \
                done


NOTE:

given the definitions of:

        # SHLIB_MAJOR = "0"
        # SHLIB_MINOR = "9.7"

then,

        # ${SHLIB_MAJOR}.`echo ${SHLIB_MINOR} | cut -d. -f1` --> outputs: "0.9"

which causes dyld: to choke on version comparison, reporting the error as above (cref: 
http://fink.sourceforge.net/doc/porting/shared.php)

the following changes seem to cure the problem ...

(EDITOR) Makefile.org
@ 304
        ---       -compatibility_version ${SHLIB_MAJOR}.`echo ${SHLIB_MINOR} | cut -d. 
-f1` \
        +++     -compatibility_version 0.9.7 \


as make/make install completely, and no more errors are seen on machine reboot &/or 
use of the libs.


=======================================
testlog:

OpenSSL self-test report:

OpenSSL version:  0.9.7c
Last change:      Fix various bugs revealed by running the NISCC test sui...
Options:          --prefix=/usr --openssldir=/System/Library/OpenSSL -DUSE_TOD shared 
threads no-krb5
OS (uname):       Darwin tiedgar.internal.presence-group.net 7.0.0 Darwin Kernel 
Version 7.0.0: Wed Sep 24 15:48:39 PDT 
2003; root:xnu/xnu-517.obj~1/RELEASE_PPC  Power Macintosh powerpc
OS (config):      ppc-apple-darwinDarwin Kernel Version 7.0.0: Wed Sep 24 15:48:39 PDT 
2003; 
root:xnu/xnu-517.obj~1/RELEASE_PPC
Target (default): darwin-ppc-cc
Target:           darwin-ppc-cc
Compiler:         Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1495)

Test passed.
========================================

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to