Make error porting project - libcrypto.so File in wrong format

1,016 views
Skip to first unread message

Joshua Krohn

unread,
Oct 27, 2011, 12:16:55 PM10/27/11
to native-cli...@googlegroups.com
Does NaCl support libssl and libcrypto?  I am building on a 32 bit install of Ubuntu, it is the correct version 0.9.8.  The project builds fine when nacl is not the target.  When building with NaCl as the target I stop at the following

/usr/lib/libcrypto.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status


It appears to be locating libcrypto without any issues and this appears to be isolated to building for nacl.  Searches have yielded little helpful info for me at this point.  Anyone else run in to this or have any suggestions?

Thanks.

Libraries in /usr/lib:

lrwxrwxrwx 1 root root      23 2011-10-27 06:39 /usr/lib/libcrypto.so -> /lib/libcrypto.so.0.9.8
lrwxrwxrwx 1 root root      23 2011-07-26 18:17 /usr/lib/libcrypto.so.0.9.8 -> /lib/libcrypto.so.0.9.8
lrwxrwxrwx 1 root root     20 2011-10-27 06:39 /usr/lib/libssl.so -> /lib/libssl.so.0.9.8
lrwxrwxrwx 1 root root     20 2011-07-26 18:17 /usr/lib/libssl.so.0.9.8 -> /lib/libssl.so.0.9.8


Matthew Ball

unread,
Oct 27, 2011, 12:38:50 PM10/27/11
to native-cli...@googlegroups.com
Hi Joshua,

I've run into similar issues before on Fedora.

Could you run 'ldd <naclcommand>' to get a list of the library dependencies?  Also, could you run 'readelf -h <library>' to determine whether this is a 32-bit or 64-bit library?

Thanks!
-Matt



--
You received this message because you are subscribed to the Google Groups "Native-Client-Discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msg/native-client-discuss/-/im1dlRy_ROYJ.
To post to this group, send email to native-cli...@googlegroups.com.
To unsubscribe from this group, send email to native-client-di...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/native-client-discuss?hl=en.

Derek Schuff

unread,
Oct 27, 2011, 1:00:35 PM10/27/11
to native-cli...@googlegroups.com
It actually looks like you're trying to link native libraries (in /usr/lib) with your nacl program. This won't work, the libraries also have to be compiled with the nacl compiler. I don't know if anyone has ported libcrypto/libssl, but there is the libtomcrypt library in naclports.

Joshua Krohn

unread,
Oct 27, 2011, 6:37:33 PM10/27/11
to native-cli...@googlegroups.com
This makes sense - I'll take a look at that and see if it will serve as a substitute.

Thanks
Reply all
Reply to author
Forward
0 new messages