[Pkg-openssl-devel] Bug#799606: Bug#799606: Cannot compile OpenSSL 1.0.2d under X32 (fatal error: sys/cdefs.h: No such file or directory)
Kurt Roeckx
kurt at roeckx.be
Sun Sep 20 20:25:13 UTC 2015
On Sun, Sep 20, 2015 at 03:52:34PM -0400, Jeffrey Walton wrote:
>
> # find /usr -name cdefs.h
> /usr/include/x86_64-linux-gnux32/sys/cdefs.h
If you want to show include directories, you should show cpp -v,
not gcc -v. But it's obvious why this doesn't work since you're
telling it to build for amd64, not for x32.
> # ./config
> Operating system: x86_64-whatever-linux2
That is clearly not what you want. Your libc dev package at least
doesn't match that. Please note that it's calling gcc with -m64,
but you don't have the headers for that.
Why are you reporting something about the upstream source to
Debian while the Debian package build fine? It has an debian-x32
target that uses -mx32.
I'm not sure there is a sane way to make config auto detect that
you want x32. You should at least make uname -m report x32
instead of x86_64.
If you remove the -m64 it might also just work for you, but I have
no idea if it requires the -mx32 or not.
Kurt
More information about the Pkg-openssl-devel
mailing list