#411: Makefile uses LD instead of GCC for linking leads to undefined symbol:
__stack_chk_fail_local
-----------------------------------------------------+----------------------
Reporter: RRosario | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: default | Version: unspecified
Keywords: undefined symbol __stack_chk_fail_local | Platform: Unspecified
Cpu: x86-32 |
-----------------------------------------------------+----------------------
The Makefile for Python SWIG uses LD for linking rather than GCC. On some
Linux systems, this causes Python to throw the error:
when the library python_grass6 is imported due to a stack smash guard.
I have confirmed that replacing LD with CC fixes this problem. On some
distributions of Linux, this can be fixed by adding "-fno-stack-protector"
to CFLAGS.
#411: Makefile uses LD instead of GCC for linking leads to undefined symbol:
__stack_chk_fail_local
----------------------------------+-----------------------------------------
Reporter: RRosario | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: SWIG (all bindings) | Version: svn-develbranch6
Resolution: | Keywords: undefined symbol __stack_chk_fail_local
Platform: Linux | Cpu: x86-32
----------------------------------+-----------------------------------------
Comment (by kyngchaos):
This isn't right on OSX either. We've spent some effort to get the
wxpython nviz and vdigit to compile correctly on different platforms, so
maybe that method should be used here also (patch attached).
There is still cleanup needed to completely conform to the GRASS make
system, but it should compile correctly now.