undefined symbol: __stack_chk_fail_local

Douglas Bagnall douglas at paradise.net.nz
Mon Nov 3 03:47:44 UTC 2008


>> http://sundaram.fedorapeople.org/packages/pam_sotp-0.3.3-1.fc9.src.rpm
>>
>>  PAM unable to dlopen(/lib/security/pam_sotp.so): \
>>   /lib/security/pam_sotp.so: undefined symbol: __stack_chk_fail_local
>>
>>   Some googling suggested linking with gcc rather than ld, but I
>> can't work out how to make the rpm do that.

Jakub Jelinek wrote:

> Yeah, that's very likely the case.  Linking with ld -shared as opposed
> to gcc -shared is (almost always) a bug.
> Guess you need to modify this package's Makefiles to do the right thing...

OK, thanks. I found the right Makefile.in, fixed it, and it works.


and Andrew Haley wrote:

>> (This is all Fedora 9, gcc-4.3.0-8.i386).
>
>This symbol hould be in /lib/libc.so.6.  Isn't it?

No.  At least not according to strings or nm.  It is in
/usr/lib/libc.a though (and __stack_chk_fail is in libc.so.6).  That's
with glibc-2.8-8.i686.

thanks to both of you for your help.


Douglas




More information about the fedora-devel-list mailing list