[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)

Jeffrey Walton noloader at gmail.com
Sun Sep 20 23:06:47 UTC 2015


On Sun, Sep 20, 2015 at 4:25 PM, Kurt Roeckx <kurt at roeckx.be> wrote:
> 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.

Ah, OK, thanks.

When I see a configure that uses gcc by default, then I defer
everything to the compiler driver since its the one that will be
selecting the programs to run.

> 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.

Hmmm.. OK. Should I bring this up with the Debian folks? They provide
the platform; and if its not quite correct, then they should be the
ones who correct it.

Also, on Debian:

    # gcc -dumpmachine 2>&1 | grep x32
    x86_64-linux-gnux32

So it appears to be detectable in a default configuration without the
need to do anything special (at least on Debian).

(Usually OS X experiences these types of pain points, not GNU Linux).

Thanks again.

Jeff



More information about the Pkg-openssl-devel mailing list