Here is a patch I created for the Makefile.org file to correct the problem we were having...
Steven Bade wrote: > It seems that building with -Wl,-Bsymbolic on the linker options for > creating the libcrypto.so makes this issue go away... > > Tom Wu wrote: > >> Steven Bade wrote: >> >>> We've created in the openCryptoki project a software token which >>> uses openSSL's crypto routines... When running under the iplanet >>> regression test suite we get a core dump in the key generation >>> code... Tracing it down, the crash occurs in the SHA1_Update... one >>> of the community members as a test changed the calls in the openSSL >>> code to SHA1_Update to be FOO_SHA1_Update. >>> >>> Any of the more experienced openSSL developers out there have any >>> suggestions of things we may try with regard to linker options or >>> other ideas that we could do to address this collision (I doubt that >>> I;m going to be able to get netscape to chance their function names >>> :).... >> >> >> >> We encountered the same problem here when loading OpenSSL-based >> modules under iPlanet or the Netscape browser. Our solution was to >> add macros to the OpenSSL includes to "remap" the offending symbols to >> avoid conflicts. We also added placeholders for the old function >> names that called the remapped functions to ensure that our library >> binaries were still binary and source-compatible with unmodified >> OpenSSL libraries. >> >>> thanks for your help... >> >> >> >> Tom >> > > -- Steven A. Bade UNIX Network Security Cryptographic Strategy and Development Architecture [EMAIL PROTECTED] T/L 678-4799 (512)-838-4799 -- To convert from Hogsheads to Cubic Feet - Multiply by 8.4219 "Two-way communication is necessary to proactively facilitate acceptance and involvement and to get insights about the journey it takes to get where we want" this mess is so big and so bad and so tall, we cannot clean it up, there is no way at all (Cat in the Hat)
--- Makefile.org.base Fri Apr 5 08:56:18 2002 +++ Makefile.org Fri Apr 5 08:56:36 2002 @@ -258,6 +258,7 @@ ( set -x; ${CC} -shared -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ -Wl,-soname=lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ -Wl,--whole-archive lib$$i.a \ + -Wl,-Bsymbolic \ -Wl,--no-whole-archive $$libs ${EX_LIBS} -lc ) || exit 1; \ libs="$$libs -l$$i"; \ done