Re: [exim] Compiling SPF

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: David Woodhouse
Data:  
Para: Stephen Gran
CC: exim-users
Asunto: Re: [exim] Compiling SPF
On Tue, 2010-07-06 at 23:04 +0100, Stephen Gran wrote:
> That looks an awful lot like RedHat's half baked implementation of biarch
> support. It has bitten an awful lot of people, particularly because the
> toolchain shipped with RedHat isn't particularly good about supporting
> the directory layout they ship, leading builds to do silly things like
> find the headers while building a 64bit app and then fail at link time
> because they found the 32 bit .so first.


Not a failure mode I recognise. Do you have a bug number?

The toolchain will skip incompatible libraries if you erroneously put
them into the link path...

[dwmw2@westmere ~]$ gcc timing_evp_aes.c -lssl -lrt
[dwmw2@westmere ~]$ gcc timing_evp_aes.c -lssl -lrt -L /usr/lib
/usr/bin/ld: skipping incompatible /usr/lib/librt.so when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
[dwmw2@westmere ~]$ echo $?
0

I think Marc's problem was that he put a 64-bit library into /usr/lib,
which is where the 32-bit libraries live... and which isn't in the rpath
for a 64-bit binary.

--
dwmw2