Mailinglist Archive: opensuse-packaging (155 mails)

< Previous Next >
Re: [opensuse-packaging] Stack protector isues?
On Sun, 29 Dec 2013, Jan Engelhardt wrote:

On Sunday 2013-12-29 03:24, Ilya Chernykh wrote:

What causes this package to fail for 32-bit but build for 64-bit in Factory?

I receive the following error message:

[ 666s] /usr/lib/libc_nonshared.a(stack_chk_fail_local.oS): In function
[ 666s]
undefined reference to `__stack_chk_fail'
[ 666s] collect2: error: ld returned 1 exit status
[ 666s] Error creating
./kdeprint/management/ Exit status 1.

__stack_chk_fail is only present in libc.a, but not libc_nonshared.a.

-rw-r--r-- 1 root root 23502316 Dec 10 13:09 libc.a
-rw-r--r-- 1 root root 72190 Dec 10 13:14 libc_nonshared.a

Given the huge size difference would indicate to me that whenever you
attempt to link in libc_nonshared.a (why would you do that on your
own?), you must also link in libc.a — and do so in the proper order,
which kdeprint might fail to do.

(And it also raises the question why you are even building

The symbol is part of as well, given the name libc_nonshared.a
is always linked statically - is a linker script:

/* GNU ld script
Use the shared library, but some functions are only in
the static library, so try that secondarily. */
GROUP ( /lib64/ /usr/lib64/libc_nonshared.a AS_NEEDED (
/lib64/ ) )

< Previous Next >
Follow Ups