Problems compiling Python 2.1 on HP-UX 11.0

Olaf Meyer olaf.meyer at web.de
Mon May 28 13:26:01 EDT 2001


I'm having some problems installing (compiling) Python 2.1 on HP-UX 11.0.

I've ran configure with the following options, since we do not
have gcc on our machines:

  ./configure --prefix=$HOME/opt/Python-2.1 --without-gcc --with-cxx=no

After successfully building the python binary 'make' fails to build
the modules. Here's some of the error output:
  PYTHONPATH= ./python ./setup.py build
  'import site' failed; use -v for traceback
  Traceback (most recent call last):
    File "./setup.py", line 9, in ?
      import sys, os, getopt
  ImportError: No module named os
  *** Error exit code 1

If I set PYTHONPATH to the 'Lib' directory of the source distribution, I can
manually run the './python ./setup.py build' command. But this is where I
get stuck. I get tons of warning and/or error messages during compilation of
the modules:

  Modules/socketmodule.c
  Modules/termios.c
  Modules/_cursesmodule.c

I guess it's not the right thing to try to fix all the errors. I'd
appreciate any advice on how to get the installation done smoothly :-)

I've included some of the error messages. I can send/post more upon request.
Here's on of the compiler invocations:

  cc -Ae -O +z -I. -I/usrd42/users/SMON/omeyer/src/Python-2.1/./Include \
        -I/usr/local/include -IInclude/ \
        -c /usrd42/users/SMON/omeyer/src/Python-2.1/Modules/socketmodule.c \
        -o build/temp.hp-ux-B.11.00-9000/782-2.1/socketmodule.o

Here are some of the errors/warnings. I've shortend the paths to
make the output more readable:

cc: "socketmodule.c", line 794: warning 604: 
        Pointers are not assignment-compatible.
cc: "socketmodule.c", line 794: warning 563: 
        Argument #3 is not the correct type.

cc: "termios.c", line 529: error 1588: "VREPRINT" undefined.
cc: "termios.c", line 529: error 1521: Incorrect initialization.

cc: "_cursesmodule.c", line 313: error 1588: "attr_t" undefined.
cc: "_cursesmodule.c", line 313: error 1588: "arg1" undefined

Thanks for taking your time to get this far :-)

  Olaf
-- 
 Olaf Meyer        <_Q_/ _   ,_~o
 Nokia Networks      \\_/    /  //\    /~~\_/~\        ,,,    ___   _~o
 Heltorfer Str. 1    ^   \_    \>> |  |  #=#==========#   |  ___  _-\_<,
 D-40472 Duesseldorf             \\    \__/~\_/        ```       (*)/'(*)



More information about the Python-list mailing list