Author mattcomms
Recipients
Date 2006-07-04.09:08:48
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=1543599

Hello, Wondering if your still offering some support.   
   
As people have reported success with 2.4.2 I decided to use  
that version. I have been carefull to follow the steps as  
described but still having some difficulty.  
  
The steps I take are:  
  
patch -p3 < ../python-patch  
autoconf configure.in >configure  
mkdir cross-build  
cd cross-build  
../configure --host=cris-axis-linux-gnu 
--build=i486-slackware-linux  
  
I also edit the LINKCC line in the makefile and include  
-static (as I want to run on devboard with limited memory  
and not to worry about shared libraries)  
  
make throws lots of errors like:  
  
*** WARNING: renaming "struct" since importing it failed:  
build/lib.linux-i686-2.4/struct.so: cannot open shared  
object file: No such file or directory  
building 'regex' extension  
cris-axis-linux-gnu-gcc -DNDEBUG -g -O3 -Wall  
-Wstrict-prototypes -fPIC -fno-strict-aliasing -I.  
-I/root/Python-2.4.2/./Include -I/usr/local/include  
-I/root/Python-2.4.2/cross-build/Include  
-I/root/Python-2.4.2/cross-build/buildpython  
-c /root/Python-2.4.2/Modules/regexmodule.c -o  
build/temp.linux-i686-2.4/regexmodule.o  
cris-axis-linux-gnu-gcc -DNDEBUG -g -O3 -Wall  
-Wstrict-prototypes -fPIC -fno-strict-aliasing -I.  
-I/root/Python-2.4.2/./Include -I/usr/local/include  
-I/root/Python-2.4.2/cross-build/Include  
-I/root/Python-2.4.2/cross-build/buildpython  
-c /root/Python-2.4.2/Modules/regexpr.c -o  
build/temp.linux-i686-2.4/regexpr.o  
cris-axis-linux-gnu-gcc -shared  
build/temp.linux-i686-2.4/regexmodule.o  
build/temp.linux-i686-2.4/regexpr.o -L/usr/local/lib -o  
build/lib.linux-i686-2.4/regex.so  
  
and  
  
cris-axis-linux-gnu-gcc -DNDEBUG -g -O3 -Wall  
-Wstrict-prototypes -fPIC -fno-strict-aliasing -I.  
-I/root/Python-2.4.2/./Include -I/usr/local/include  
-I/root/Python-2.4.2/cross-build/Include  
-I/root/Python-2.4.2/cross-build/buildpython  
-c /root/Python-2.4.2/Modules/_ssl.c -o  
build/temp.linux-i686-2.4/_ssl.o  
/root/Python-2.4.2/Modules/_ssl.c:30:25: openssl/rsa.h: No  
such file or directory  
  
make install prefix=/root/Python-2.4.2/cross-build  
  
throws the same errors but finishes.  
  
I then mount cross-build via nfs and run python  
  
Python 2.4.2 (#2, Jun 28 2006, 18:35:28)  
[GCC 3.2.1 Axis release R61/1.61] on linux2  
Type "help", "copyright", "credits" or "license" for more  
information.  
>>> import time  
import time  
Traceback (most recent call last):  
  File "<stdin>", line 1, in ?  
ImportError: /mnt/flash/Python/lib/python2.4/lib-dynload/time.so:  
undefined symbol: PyExc_IOError  
>>>  
  
>>> import socket  
import socket  
Traceback (most recent call last):  
  File "<stdin>", line 1, in ?  
  File "/mnt/flash/Python/lib/python2.4/socket.py", line  
45, in ?  
    import _socket  
ImportError: /mnt/flash/Python/lib/python2.4/lib-dynload/_socket.so:  
undefined symbol: PyObject_GenericGetAttr  
  
Any hint as to what might be causing these  errors would be  
most appreciated.  
  
Cheers  
  
Matthew  
History
Date User Action Args
2007-08-23 15:39:18adminlinkissue1006238 messages
2007-08-23 15:39:18admincreate