473,466 Members | 1,364 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

__stack_chk_fail_local

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
Aug 29 '08 #1
3 1746
On Fri, Aug 29, 2008 at 7:53 PM, gianluca <ge*******@gmail.comwrote:
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 Bizzarri
http://iliveinpisa.blogspot.com/
Aug 30 '08 #2
On 30 Ago, 12:05, "Marco Bizzarri" <marco.bizza...@gmail.comwrote:
On Fri, Aug 29, 2008 at 7:53 PM, gianluca <geonom...@gmail.comwrote:
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
Aug 30 '08 #3
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 <ge*******@gmail.comwrote:
On 30 Ago, 12:05, "Marco Bizzarri" <marco.bizza...@gmail.comwrote:
>On Fri, Aug 29, 2008 at 7:53 PM, gianluca <geonom...@gmail.comwrote:
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/
Aug 30 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: alexkon1250 | last post by:
i have a problem when i try to compile a C program that connects wth a MySQL database. when i execute in Linux Debian the follwoing : gcc mysql_ins_server.c -o mysql_ins_server -I...
2
by: frakie | last post by:
Hi 'body, I'm trying to compile a program which uses two static libraries. One is wrote in C language the other is wrote in C++ but it's functions are under extern "C" declaration. Once I try to...
0
by: g_massa\ | last post by:
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. ...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.