Python-2.3.4 on OSF1 V4.0?

Edmond Rusjan edmond.rusjan at gmail.com
Fri Nov 19 14:54:04 EST 2004


Hi All,

I'd like to use Python-2.3.4 on OSF1 V4.0, but have trouble
installing.
With a plain "./configure; make" build, I cannot import socket.
If I uncomment the socketmodule in Modules/Setup, the build fails.
Using gcc 3.4.2. Had no problem on OSF1 V5.1, Linux and Sun.
Have not been able to find reference to a similar problem in
comp.lang.python.

Thanks for any tip or reference,
Edmond

Details:

Plain "./configure; make" build:
[Python-2.3.4_no_socket]$ ./python
Python 2.3.4 (#4, Nov 17 2004, 17:01:35)
[GCC 3.4.2] on osf1V4
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
Traceback (most recent call last):
    ...
    import _socket
ImportError: No module named _socket
>>>

With "_socket socketmodule.c" uncommented in Modules/Setup:
[Python-2.3.4]$ make
gcc -pthread   -o python \
                Modules/python.o \
                libpython2.3.a -lrt    -lm 
_Esetsockopt
_Egetsockopt
_Erecv
_Esend
_Esendto
_Econnect
_Ebind
collect2: ld returned 1 exit status
make: *** [python] Error 1

Wrote, compiled and ran a simple test program which binds to a socket
and listens: no problem.

First few line of config.log:
...
It was created by python configure 2.3, which was
generated by GNU Autoconf 2.57.  Invocation command line was

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = alpha-s16.ajb.org
uname -m = alpha
uname -r = V4.0
uname -s = OSF1
uname -v = 1229

/usr/bin/uname -p = alpha
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = alpha
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/users/ajbddg/edmond/tools2/bin
PATH: /usr/users/ajbddg/edmond/tools/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /u01/app/oracle/product/8.1.6/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1402: checking MACHDEP
configure:1511: result: osf1V4
configure:1517: checking EXTRAPLATDIR
configure:1532: result: 
configure:1545: checking for --without-gcc
configure:1594: result: no
configure:1600: checking for --with-cxx=<compiler>
configure:1621: result: no
configure:1640: checking for c++
configure:1656: found /usr/users/ajbddg/edmond/tools2/bin/c++
configure:1666: result: c++
configure:1707: checking for C++ compiler default output
configure:1710: c++    conftest.cc  >&5
configure:1713: $? = 0
configure:1759: result: a.out
configure:1764: checking whether the C++ compiler works
configure:1770: ./a.out
configure:1773: $? = 0
configure:1790: result: yes
configure:1797: checking whether we are cross compiling
configure:1799: result: no
configure:1802: checking for suffix of executables
configure:1804: c++ -o conftest    conftest.cc  >&5
configure:1807: $? = 0
configure:1832: result: 
configure:1906: checking for gcc
configure:1922: found /usr/users/ajbddg/edmond/tools2/bin/gcc
configure:1932: result: gcc
configure:2176: checking for C compiler version
configure:2179: gcc --version </dev/null >&5
gcc (GCC) 3.4.2
...



More information about the Python-list mailing list