#411: Makefile uses LD instead of GCC for linking leads to undefined symbol:
__stack_chk_fail_local
-----------------------------------------------------+----------------------
 Reporter:  RRosario                                 |       Owner:  
[email protected]
     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:

 $ python -c "import _python_grass6"
 Traceback (most recent call last):
   File "<string>", line 1, in <module>
 ImportError: ./_python_grass6.so: undefined symbol: __stack_chk_fail_local

 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.

 R.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/411>
GRASS GIS <http://grass.osgeo.org>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to