[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] Building Python 2.2 on raq3



Hi, I am trying to build Python 2.2.2 on my raq3, but it seems like a module called socket is missing. This module is needed in Python to make rdiff-bakup working.

Do anyone know if it is possible to get this compiled into Python? Under is an extract of messages from ./configure and make on Python, and from the running of rdiff-backup.

#./configure
checking for socket in -lsocket... (cached) no

#make
building '_socket' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DUSE_SSL=1 -I. -I/home/root/update1002/Python-2.2.2/./Include -I/usr/local/include -I/tmp/build/Python-2.2.2/Include -I/tmp/build/Python-2.2.2 -c /tmp/build/Python-2.2.2/Modules/socketmodule.c -o build/temp.linux-i586-2.2/socketmodule.o /tmp/build/Python-2.2.2/Modules/socketmodule.c: In function `PySSL_RAND_add': /tmp/build/Python-2.2.2/Modules/socketmodule.c:2965: warning: implicit declaration of function `RAND_add' /tmp/build/Python-2.2.2/Modules/socketmodule.c: In function `PySSL_RAND_status': /tmp/build/Python-2.2.2/Modules/socketmodule.c:2979: warning: implicit declaration of function `RAND_status' /tmp/build/Python-2.2.2/Modules/socketmodule.c: In function `PySSL_RAND_egd': /tmp/build/Python-2.2.2/Modules/socketmodule.c:2998: warning: implicit declaration of function `RAND_egd' gcc -shared build/temp.linux-i586-2.2/socketmodule.o -L/usr/local/lib -lssl -lcrypto -o build/lib.linux-i586-2.2/_socket.so
WARNING: removing "_socket" since importing it failed

building '_tkinter' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/tmp/build/Python-2.2.2/./Include -I/usr/local/include -I/tmp/build/Python-2.2.2/Include -I/tmp/build/Python-2.2.2 -c /tmp/build/Python-2.2.2/Modules/_tkinter.c -o build/temp.linux-i586-2.2/_tkinter.o
In file included from /tmp/build/Python-2.2.2/Modules/_tkinter.c:49:
/usr/include/tk.h:77: X11/Xlib.h: No such file or directory
WARNING: building of extension "_tkinter" failed: command 'gcc' failed with exit status 1

# rdiff-backup
Traceback (most recent call last):
 File "/usr/local/bin/rdiff-backup", line 21, in ?
   import rdiff_backup.Main
File "/usr/local/lib/python2.2/site-packages/rdiff_backup/Main.py", line 14, in ?
   from log import *
File "/usr/local/lib/python2.2/site-packages/rdiff_backup/log.py", line 168, in ?
   import Globals, Main
File "/usr/local/lib/python2.2/site-packages/rdiff_backup/Globals.py", line 277, in ? from rpath import * # kludge to avoid circularity - not needed in this module File "/usr/local/lib/python2.2/site-packages/rdiff_backup/rpath.py", line 19, in ?
   import os, stat, re, sys, shutil, gzip, socket
 File "/usr/local/lib/python2.2/socket.py", line 41, in ?
   from _socket import *
ImportError: No module named _socket

--
Hans Kristian Eiken, Nettkroken AS