In message <[EMAIL PROTECTED]> on Wed, 31 Jul 2002 09:23:03 
+0200 (METDST), "Richard Reed via RT" <[EMAIL PROTECTED]> said:

rt> The output of 'make report' speaks for itself:

The FAQ says the following:

 * Why does the OpenSSL compilation fail on MacOS X?
 
 If the failure happens when trying to build the "openssl" binary, with
 a large number of undefined symbols, it's very probable that you have
 OpenSSL 0.9.6b delivered with the operating system (you can find out by
 running '/usr/bin/openssl version') and that you were trying to build
 OpenSSL 0.9.7 or newer.  The problem is that the loader ('ld') in
 MacOS X has a misfeature that's quite difficult to go around.
 Look in the file PROBLEMS for a more detailed explanation and for possible
 solutions.
 
 
 * Why does the OpenSSL test suite fail on MacOS X?
 
 If the failure happens when running 'make test' and the RC4 test fails,
 it's very probable that you have OpenSSL 0.9.6b delivered with the
 operating system (you can find out by running '/usr/bin/openssl version')
 and that you were trying to build OpenSSL 0.9.6d.  The problem is that
 the loader ('ld') in MacOS X has a misfeature that's quite difficult to
 go around and has linked the programs "openssl" and the test programs
 with /usr/lib/libcrypto.dylib and /usr/lib/libssl.dylib instead of the
 libraries you just built.
 Look in the file PROBLEMS for a more detailed explanation and for possible
 solutions.

The PROBLEMS file refered to says the following:

 * System libcrypto.dylib and libssl.dylib are used by system ld on MacOS X.
 
 
     NOTE: The problem described here only applies when OpenSSL isn't built
     with shared library support (i.e. without the "shared" configuration
     option).  If you build with shared library support, you will have no
     problems as long as you set up DYLD_LIBRARY_PATH properly at all times.
 
 
 This is really a misfeature in ld, which seems to look for .dylib libraries
 along the whole library path before it bothers looking for .a libraries.  This
 means that -L switches won't matter unless OpenSSL is built with shared
 library support.
 
 The workaround may be to change the following lines in apps/Makefile.ssl and
 test/Makefile.ssl:
 
   LIBCRYPTO=-L.. -lcrypto
   LIBSSL=-L.. -lssl
 
 to:
 
   LIBCRYPTO=../libcrypto.a
   LIBSSL=../libssl.a
 
 It's possible that something similar is needed for shared library support
 as well.  That hasn't been well tested yet.
 
 
 Another solution that many seem to recommend is to move the libraries
 /usr/lib/libcrypto.0.9.dylib, /usr/lib/libssl.0.9.dylib to a different
 directory, build and install OpenSSL and anything that depends on your
 build, then move libcrypto.0.9.dylib and libssl.0.9.dylib back to their
 original places.  Note that the version numbers on those two libraries
 may differ on your machine.
 
 
 As long as Apple doesn't fix the problem with ld, this problem building
 OpenSSL will remain as is.


Developpers at Apple have told me that the analysis in the PROBLEMS
file is correct.

I will remove ticket 176.

-- 
Richard Levitte   \ Spannv�gen 38, II \ [EMAIL PROTECTED]
Redakteur@Stacken  \ S-168 35  BROMMA  \ T: +46-8-26 52 47
                    \      SWEDEN       \ or +46-708-26 53 44
Procurator Odiosus Ex Infernis                -- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/

Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.

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

Reply via email to