Huxing,

On 11/5/15 7:08 PM, Huxing Zhang wrote:
> Hi All,
> 
> I have solved the problem building tcnative on Mac OSX.
> 
> The message worth noticing is:
> ld: warning: ld: warning: ignoring file /usr/local/openssl/lib/libcrypto.a, 
> file was built for archive which is not the architecture being linked 
> (x86_64): /usr/local/openssl/lib/libcrypto.aignoring file 
> /usr/local/openssl/lib/libssl.a, file was built for archive which is not the 
> architecture being linked (x86_64): /usr/local/openssl/lib/libssl.a

I'm sorry I hadn't noticed that before. It's obviously the problem.

> The root cause is openssl is not correctly compiled with the right 
> architecture.
> 
> Recompile openssl with the following configuration will solve this problem.

That openssl is one that you must have provided yourself in the past...
Mac OS has been 64-bit-only for quite a while, now, and the OpenSSL
binaries shipped with Mac OS X are dual-architecture:

$ file /usr/lib/libssl.dylib
/usr/lib/libssl.dylib: Mach-O universal binary with 2 architectures
/usr/lib/libssl.dylib (for architecture i386):  Mach-O dynamically linked
shared library i386
/usr/lib/libssl.dylib (for architecture x86_64):        Mach-O 64-bit
dynamically linked shared library x86_64

On Mac OS X, consider using something like Brew for things like newer
versions of OpenSSL.

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to