[Bug 247190] Re: /lib/security/pam_otpw.so: undefined symbol: __stack_chk_fail_local
Priya Bhat
247190 at bugs.launchpad.net
Fri Mar 18 20:58:49 UTC 2011
Hello again,
I just wanted to add that I found this
(http://www.linuxquestions.org/questions/linux-from-scratch-13/glibc-
compile-issues-597651/) web-page that recommends changing the option
LDFLAGS in the Makefile.
The advice on that page is:
* dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
get the __stack_chk_fail_local definition when it's needed.
Based on what I understood from the webpage I changes the Makefile LDFLAG options from:
LDFLAGS="-pthread -shared -m32 -Wl,--version-script,$TMW_ROOT/extern/lib/$Arch/$MAPFILE"
to:
LDFLAGS=" -lgcc_eh /usr/lib/libc_nonshared.a -pthread -shared -m32 -Wl,--version-script,$TMW_ROOT/extern/lib/$Arch/$MAPFILE"
I have already added the -fno-stack-protector to the CFLAGS option in
the Makefile.
CFLAGS='-fPIC -ansi -D_GNU_SOURCE -pthread -fexceptions -m32 -fno-stack-
protector'
But I am still getting the error :
??? Invalid MEX-file '/home/pbhat/Downloads/lsm/csim/csim.mexglx':
/home/pbhat/Downloads/lsm/csim/csim.mexglx: undefined symbol:
__stack_chk_fail_local.
Can somebody advice on whether I have correctly deciphered the instructions on the web-page and what are the next steps I could try
Thanks!
--
You received this bug notification because you are a member of MOTU,
which is a bug assignee.
https://bugs.launchpad.net/bugs/247190
Title:
/lib/security/pam_otpw.so: undefined symbol: __stack_chk_fail_local
More information about the universe-bugs
mailing list