Mailinglist Archive: opensuse-bugs (4504 mails)

< Previous Next >
[Bug 965105] undefined reference to `__stack_chk_fail_local'
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Thu, 04 Feb 2016 11:53:09 +0000
  • Message-id: <bug-965105-21960-3WSeLGEumm@http.bugzilla.novell.com/>
http://bugzilla.novell.com/show_bug.cgi?id=965105
http://bugzilla.novell.com/show_bug.cgi?id=965105#c2

--- Comment #2 from Richard Biener <rguenther@xxxxxxxx> ---
(In reply to Dr. Werner Fink from comment #1)
Replacing ld with gcc leads to

gcc -g3 -fomit-frame-pointer -fmessage-length=0 -grecord-gcc-switches -O2
-Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -g -D_GNU_SOURCE -DLOG_BUFFER_SIZE=65536
-DTRANS_BUFFER_SIZE=4096 -DBOOT_LOGFILE=\"/var/log/boot.msg\"
-DBOOT_OLDLOGFILE=\"/var/log/boot.omsg\" -D_PATH_BLOG_FIFO=\"/dev/blog\"
-ffunction-sections -Wall -pipe -I ./ -I ./libconsole/ -funroll-loops -o
blogger blogger.c -Wl,-O2 -Wl,-gc-sections -Wl,-rpath-link=. -L . -lblogger
-lssp_nonshared
/usr/lib/gcc/i586-suse-linux/5/../../../../i586-suse-linux/bin/ld: cannot
find -lssp_nonshared
collect2: error: ld returned 1 exit status
Makefile:103: recipe for target 'blogger' failed
make: *** [blogger] Error 1

Drop -lssp_nonshared? On glibc systems glibc provides all the required
symbols,
this symbol is in libc_nonshared.a which is pulled in via the libc.so linker
script.

The original ld command simply fails to link -lc

--
You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >