Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Error compiling tests/net/fdpass



On Sat, Sep 01, 2012 at 11:47:57AM +0200, Adam Ciarci?ski wrote:
> Hi,
> 
> I can't compile NetBSD-amd64 (on Darwin). I think, in 
> test/net/fdpass/Makefile this is wrong:
> 
> .if ${MACHINE} == "sparc64" || ${MACHINE} == "amd64"
> COPTS.fdpass32.c      += -m32
> LDFLAGS.fdpass32      += -m32
> .endif
> 
> With -m32 the linker tries to link against libgcc_s in 32-bit mode, but the 
> library itself is 64-bit.

cc -m32 needs to do the right thing to create 32bit executables. Whatever
that is.

Note that I tested this on amd64 when I did the original change, and it also
works just fine on the automated test runs for amd64. Maybe you have some
old objects lying around in your objdir?

Martin


Home | Main Index | Thread Index | Old Index