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: Oracle 10g (release1), AIX, Pro-COBOL, Problems building sample programs
    ... able to see the dependencies, but all seems to be well. ... environment variable that are related to finding paths to libraries ... The output from my test with ldd is shown below:- ... But I guess it just executes it, ...
    (comp.databases.oracle.server)
  • RE: python/svn issues....
    ... i'll try to build berkeley db by hand and see what i get... ... not linked against the Berkeley DB libraries. ... You can check what's linked using ldd, ... If it doesn't look like that, then I'd say your Subversion package was ...
    (comp.lang.python)
  • Re: python/svn issues....
    ... > Traceback: ... not linked against the Berkeley DB libraries. ... You can check what's linked using ldd, ... If it doesn't look like that, then I'd say your Subversion package was ...
    (comp.lang.python)
  • Re: finding libraries at compile - strange problems
    ... CFLAGS etc to include libraries and include files ... the an ldd of the binary in this case it finds libgcc in /usr/local/lib ... (this is the reason that I am not running Sol 10 as this just kept happening with no solution) ...
    (comp.sys.sun.admin)
  • Re: ldd and library dependency
    ... dave, nico, laurenz, frank: ... libraries and packages. ... I ran ldd. ... It showed a list of libraries. ...
    (comp.os.linux.setup)