Current-Users archive

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

Re: Error compiling tests/net/fdpass

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

Could it be the fact that I have MKCOMPAT=no? In that case, 32-bit version of is not installed.
I propose disabling the 32-bit version of the test when MKCOMPAT == "no".
The objdir is fresh and clean. :)

Kind regards,

Home | Main Index | Thread Index | Old Index