Re: __stack_chk_fail_local



Thanks!
I've resolved the problem with libraries but... I've still error with this message:
ImportError: ./_python_grass6.so: undefined symbol: __stack_chk_fail_local

exuse me, I'm not a guru.

Gianluca

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

From : "Marco Bizzarri" marco.bizzarri@xxxxxxxxx
To : "gianluca" geonomica@xxxxxxxxx
Cc : python-list@xxxxxxxxxx
Date : Sat, 30 Aug 2008 14:45:05 +0200
Subject : Re: __stack_chk_fail_local







The ldd should point you to the library which is not loaded.

Maybe the library you need is not in one of the normal locations in
your Linux/Unix path.

Normally, the linker looks for library under /lib and /usr/lib, and
maybe other paths specified in /etc/ld.so.conf

If you know the library is installed in your system, you can force the
linker to look for it, either modifying your /etc/ld.so.conf (better
if you know what you're doing, however) or, just setting the
LD_LIBRARY_PATH variable:

export LD_LIBRARY_PATH=/some/non/standard/lib/dir/

python -c "import foo"

Another possibility, which you can check googling a little, is that
you've two different versions of the libarary around your system, and
that you're loading the wrong one (i.e., python is looking at the
wrong one)

again, setting the LD_LIBRARY_PATH should help

Regards
Marco

On Sat, Aug 30, 2008 at 2:33 PM, gianluca <geonomica@xxxxxxxxx> wrote:
On 30 Ago, 12:05, "Marco Bizzarri" <marco.bizza...@xxxxxxxxx> wrote:
On Fri, Aug 29, 2008 at 7:53 PM, gianluca <geonom...@xxxxxxxxx> wrote:
hy list,
I've built _libfoo.so and libfoo.py library with swig and I've copied
in /usr/lib/python2.5/lib-dynload/ but when import the module

import libfoo

I've that message

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: /usr/lib/python2.5/lib-dynload/_libfoo.so: undefined
symbol: __stack_chk_fail_local

Could anybody help me?

gianluca
--
http://mail.python.org/mailman/listinfo/python-list

Have you tried to use ldd against the _libfoo.so to check if it is
able to get all the libraries it needs?

Regards
Marco

--
Marco Bizzarrihttp://iliveinpisa.blogspot.com/

I've tried with ldd and the library aren't loaded. I don't use my *.i
interface so is quite difficult modify it (realy, the libraru is
supplied with make).

Any suggests?
gianluca
--
http://mail.python.org/mailman/listinfo/python-list




--
Marco Bizzarri
http://iliveinpisa.blogspot.com/


.



Relevant Pages

  • Re: Pythons garbage collection was Re: Python reliability
    ... >>> Has anyone looked into using a real GC for python? ... A strategy based on PURE reference counting just ... > extensions, and with correct implementations, both refcounting and GC are ... > Lucky those existing C libraries were written to use python's refcounting! ...
    (comp.lang.python)
  • Re: Python component model
    ... other libraries. ... application domains like Scientific Python. ... dearth of Web frameworks as a benefit, I think you'd see less activity ... near-blessing of Django: it's almost nonsensical. ...
    (comp.lang.python)
  • Re: Why Lisp is not popular with average programmers
    ... are multiple implementations of Common Lisp, the "fragmentation" of which you speak can simply not exist in in Common Lisp ... ... the implementations differ on these. ... But, there are compatibility libraries that you can use rather than your implementation's primitives, and have your code portable across implementations. ... Python seems horribly "fragmented" as well. ...
    (comp.lang.lisp)
  • Re: How Common Lisp sucks
    ... web server up and running using Python takes substantially less effort ... You're right, it's not an advantage of the language itself, but it's ... the effort required to locate the right libraries ... I think a lot of the advances that happen in programming languages ...
    (comp.lang.lisp)
  • Re: Why Lisp is not popular with average programmers
    ... If I want SMTP client support in my script, Python has it out of the box. ... In Python, the whole thing seems packaged together into a coherent whole, whereas in Lisp, it seems more like an exercise in trying to put square pegs in round holes. ... Libraries does not a language make. ...
    (comp.lang.lisp)