Documentation on how to build 32bit applications on amd64?

Yuri yuri at rawbw.com
Fri Aug 13 18:12:17 UTC 2010


On 08/13/2010 10:58, Anonymous wrote:
> I guess machine-dependent headers are involved.
>
>    $ cc -m32 -B/usr/lib32 a.c
>    $ ./a.out
>    match: off=0 so=3 eo=0
>    $ ln -s /usr/src/sys/i386/include machine
>    $ cc -m32 -B/usr/lib32 -isystem. a.c
>    $ ./a.out
>    match: off=0 so=3 eo=4
>    match: off=4 so=3 eo=4
>
> Same thing is happening for mmap()
>    http://docs.freebsd.org/cgi/mid.cgi?20100524.134955.2300883222251175323.okuno.kohji
>    

But what is the general solution for this problem? Symbolic link that 
you created only exists in one local directory.

Yuri


More information about the freebsd-questions mailing list