[GRASS-user] Re: GRASS-python-swig

thanks for the help,
maybe the solution will be useful: in "various Linux distributions are starting to ship with a version of the GNU C compiler which incorporates an extension which implements protection for stack-smashing". In that case the Makefile has to modified with

CFLAGS = -fno-stack-protector

gianluca

---------- Initial Header -----------

From : "Hamish" hamish_b@yahoo.com

To : "g_massa@libero.it" g_massa@libero.it
Cc : grass-user@lists.osgeo.org
Date : Sat, 30 Aug 2008 23:33:16 -0700 (PDT)
Subject : Re: [GRASS-user] Re: GRASS-python-swig

> I've still problems with GRASS/swig/python. I've
> build python_grass6.py and _python_grass6.so with make
> command in /swig/python directory and I copied the files in
> /usr/lib/python2.5/lib-dynload.
> If I import python_grass6 inside python I've this
> message:
>
> Traceback (most recent call last):
> File "<pyshell#0>", line 1, in
> <module>
> import python_grass6
> File
> "/usr/lib/python2.5/lib-dynload/python_grass6.py",
> line 7, in <module>
> import _python_grass6
> ImportError:
> /usr/lib/python2.5/lib-dynload/_python_grass6.so: undefined
> symbol: __stack_chk_fail_local.

did you run make clean after previous attempts? maybe it needs to be rebuilt from scratch.

google found:
http://ubuntuforums.org/showthread.php?t=352642

Re: Compile glibc got error `__stack_chk_fail_local'
"I had the same error.
The reason: An already compiled xxx.o file which "uses" the __stack_chk_fail_local.

This is the cause of not compiling the original xxx.cxx file due to performance.

Solution: make clean
and than make

Hope this helps....
PS: always make clean"

which seems to support that theory.

Hamish