Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 407613

Summary: dev-lang/spidermonkey-1.7.0-r2 - jsapi.c: undefined reference to `__stack_chk_fail_local'
Product: Gentoo Linux Reporter: Anton Kochkov <anton.kochkov>
Component: Current packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: RESOLVED DUPLICATE    
Severity: normal CC: anton.kochkov, simon, ultrabug
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: full build log
emerge --info output

Description Anton Kochkov 2012-03-10 03:30:29 UTC
Created attachment 304775 [details]
full build log

i686-pc-linux-gnu-ld -shared  -soname libjs.so -o Linux_All_OPT.OBJ/libjs.so Linux_All_OPT.OBJ/jsapi.lo Linux_All_OPT.OBJ/jsarena.lo Linux_All_OPT.OBJ/jsarray.lo Linux_All_OPT.OBJ/jsatom.lo Linux_All_OPT.OBJ/jsbool.lo Linux_All_OPT.OBJ/jscntxt.lo Linux_All_OPT.OBJ/jsdate.lo Linux_All_OPT.OBJ/jsdbgapi.lo Linux_All_OPT.OBJ/jsdhash.lo Linux_All_OPT.OBJ/jsdtoa.lo Linux_All_OPT.OBJ/jsemit.lo Linux_All_OPT.OBJ/jsexn.lo Linux_All_OPT.OBJ/jsfun.lo Linux_All_OPT.OBJ/jsgc.lo Linux_All_OPT.OBJ/jshash.lo Linux_All_OPT.OBJ/jsinterp.lo Linux_All_OPT.OBJ/jsiter.lo Linux_All_OPT.OBJ/jslock.lo Linux_All_OPT.OBJ/jslog2.lo Linux_All_OPT.OBJ/jslong.lo Linux_All_OPT.OBJ/jsmath.lo Linux_All_OPT.OBJ/jsnum.lo Linux_All_OPT.OBJ/jsobj.lo Linux_All_OPT.OBJ/jsopcode.lo Linux_All_OPT.OBJ/jsparse.lo Linux_All_OPT.OBJ/jsprf.lo Linux_All_OPT.OBJ/jsregexp.lo Linux_All_OPT.OBJ/jsscan.lo Linux_All_OPT.OBJ/jsscope.lo Linux_All_OPT.OBJ/jsscript.lo Linux_All_OPT.OBJ/jsstr.lo Linux_All_OPT.OBJ/jsutil.lo Linux_All_OPT.OBJ/jsxdrapi.lo Linux_All_OPT.OBJ/jsxml.lo Linux_All_OPT.OBJ/prmjtime.lo -O1 --as-needed -lm
Linux_All_OPT.OBJ/jsapi.lo: In function `JS_PropertyStub':
jsapi.c:(.text+0x1f): undefined reference to `__stack_chk_fail_local'
Linux_All_OPT.OBJ/jsapi.lo: In function `JS_EnumerateStub':
jsapi.c:(.text+0x46): undefined reference to `__stack_chk_fail_local'
Linux_All_OPT.OBJ/jsapi.lo: In function `JS_ResolveStub':
jsapi.c:(.text+0x6d): undefined reference to `__stack_chk_fail_local'
Linux_All_OPT.OBJ/jsapi.lo: In function `LookupResult':
jsapi.c:(.text+0x11c): undefined reference to `__stack_chk_fail_local'
Linux_All_OPT.OBJ/jsapi.lo: In function `GetPropertyAttributes':
jsapi.c:(.text+0x2e8): undefined reference to `__stack_chk_fail_local'
Linux_All_OPT.OBJ/jsapi.lo:jsapi.c:(.text+0x436): more undefined references to `__stack_chk_fail_local' follow
make[1]: *** [Linux_All_OPT.OBJ/libjs.so] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-lang/spidermonkey-1.7.0-r2/work/js/src'
make: *** [all] Error 2
emake failed
Comment 1 Anton Kochkov 2012-03-10 03:31:07 UTC
Created attachment 304777 [details]
emerge --info output
Comment 2 Ultrabug gentoo-dev 2012-05-23 13:57:18 UTC
Hi Anton, tho I'm no expert enough to know exactly the why of this problem I ran into the same problem on one of my old x86 servers.

The workaround I found was to switch to the vanilla version of GCC to compile spidermonkey and then switch back to usual for the rest (using gcc-config ofc).

My 2 cents, have fun.
Comment 3 Ian Stakenvicius (RETIRED) gentoo-dev 2012-06-22 20:27:06 UTC
Not that i've been able to make any progress towards fixing it, but the issue does seem to relate to 'hardened'.
Comment 4 Ian Stakenvicius (RETIRED) gentoo-dev 2012-06-22 20:30:59 UTC
..this looks a lot like bug 325849 ..  it might be worth trying attachment 259514 [details] to see if it gets you past this...?
Comment 5 Simon 2012-09-19 11:23:17 UTC
I've also hit this bug. However, i'm using gcc version i686-pc-linux-gnu-4.5.3-vanilla
Comment 6 SpanKY gentoo-dev 2012-10-07 06:39:01 UTC

*** This bug has been marked as a duplicate of bug 325849 ***