Need a 32-bit libssl-dev for crosscompile?

Nathan Dorfman na at rtfm.net
Mon Feb 3 17:55:01 UTC 2014


Hi,

Does anyone know if it's possible to easily build a 32-bit x86 program
that uses OpenSSL on a 64-bit machine?

After installing a few packages like libc6-dev-i386, lib32stdc++-dev,
gcc-multilib and g++-multilib, I can easily build C/C++ sources with
the -m32 option. Until, that is, I try to build something that uses
OpenSSL. I'm missing a 32-bit analog of the following file:

libssl-dev:amd64: /usr/include/x86_64-linux-gnu/
openssl/opensslconf.h

There's no lib32ssl-dev package, or anything seemingly like it, so I
don't know what's best to do. I can easily just build my own upstream
OpenSSL for this purpose, but is there a more Ubuntu-esque way of
doing it? I don't think I should just install the 32-bit libssl-dev,
since some of the filenames will overlap with the normal package. I'm
not familiar with working with source packages, but is there something
I should be doing with that?

Thanks,
-nd.




More information about the ubuntu-users mailing list