Python2.5 and zlib problems - optware v4 branch

View: New views
3 Messages — Rating Filter:   Alert me  

Python2.5 and zlib problems - optware v4 branch

by marcin.kudzia :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have encountered a problem with the Python and zlib in the optware
v4 branch.

When trying to import symbols from zlib I get:

python test.py
Traceback (most recent call last):
  File "test.py", line 1, in <module>
    from zlib import GZipFile
ImportError: /opt/lib/libz.so: undefined symbol: __udivsi3

I have checked the LD_LIBRARY_PATH and it uses the proper zlib library
installed with ipkg.
Package info:

ipkg info zlib
Package: zlib
Version: 1.2.3-2
Status: install user installed
Section: libs
Architecture: arm
maintainer: NSLU2 Linux <nslu2-linux@...>
MD5Sum: d9d8878662f89b096cf1bb37db58c452
Size: 61767
Filename: zlib_1.2.3-2_arm.ipk
Source: http://easynews.dl.sf.net/sourceforge/libpng/zlib-1.2.3.tar.bz2

ipkg info python25
Package: python25
Version: 2.5.2-2
Depends: readline, bzip2, openssl, libdb, zlib, sqlite, ncursesw
Status: install user installed
Section: misc
Architecture: arm
maintainer: Brian Zhou<bzhou@...>
MD5Sum: beb14e92c2d781c06f4daa882dfce14a
Size: 14007183
Filename: python25_2.5.2-2_arm.ipk
Source: http://www.python.org/ftp/python/2.5.2//Python-2.5.2.tar.bz2
Description: Python is an interpreted, interactive, object-oriented
programming language.



Re: Python2.5 and zlib problems - optware v4 branch

by Brian Zhou :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

--- In nslu2-linux@..., "marcin.kudzia"
<marcin.kudzia@...> wrote:

>
> I have encountered a problem with the Python and zlib in the optware
> v4 branch.
>
> When trying to import symbols from zlib I get:
>
> python test.py
> Traceback (most recent call last):
>   File "test.py", line 1, in <module>
>     from zlib import GZipFile
> ImportError: /opt/lib/libz.so: undefined symbol: __udivsi3
>

Does zlib-1.2.3-3 makes any difference?

I've changed zlib to set RPATH to /opt/lib.

-Brian


Parent Message unknown Re: Re: Python2.5 and zlib problems - optware v4 branch

by marcin.kudzia :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yep, works fine now.
Thanks for the prompt response.

Regards
- Marcin Kudzia



----- Original Message ----
From: Brian Zhou <b88zhou@...>
To: nslu2-linux@...
Sent: Thursday, July 17, 2008 8:18:24 PM
Subject: [nslu2-linux] Re: Python2.5 and zlib problems - optware v4 branch


--- In nslu2-linux@ yahoogroups. com, "marcin.kudzia"
<marcin.kudzia@ ...> wrote:

>
> I have encountered a problem with the Python and zlib in the optware
> v4 branch.
>
> When trying to import symbols from zlib I get:
>
> python test.py
> Traceback (most recent call last):
>   File "test.py", line 1, in <module>
>     from zlib import GZipFile
> ImportError: /opt/lib/libz. so: undefined symbol: __udivsi3
>

Does zlib-1.2.3-3 makes any difference?

I've changed zlib to set RPATH to /opt/lib.

-Brian

   


     
LightInTheBox - Buy quality products at wholesale price