10-24-2006 03:56 AM
I am trying to compile the Informix module for Python on HP-UX 11i V1 (PA-RISC). I'm getting an error that says sys/select.h: No such file or directory. I've searched the entire system and this file doesn't exist. I've seen references that say it is part of 11i V2. Does anyone know if its available for V1, or how I can get around the error. Below is the detailed output.
python setup.py build_ext
/opt/informix/test/bin/esql -EDHAVE_ESQL9 -e _informixdb.ec
building '_informixdb' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O -D_POSIX_THREADS -I/usr/local/include/ncurses -fPIC -DPYTHON_INCLUDE=/usr/local/include/python2.4 -DHAVE_C_DATETIME=1 -DHAVE_PY_BOOL=1 -DHAVE_DECIMAL=1 -Iext -I/opt/informix/test/incl/esql -I/usr/local/include/python2.4 -c ext/_informixdb.c -o build/temp.hp-ux-B.11.11-9000/800-2.4/ext/_informi
In file included from /usr/local/include/python2.4/Python.h:55,
/usr/local/include/python2.4/pyport.h:116:24: error: sys/select.h: No such file or directory
error: command 'gcc' failed with exit status 1
10-24-2006 04:06 AM
Check the file exists. If so make sure it is on SHLIB_PATH and PATH variables.
There could also be a version issue with multiple versions and the one earlier on the path confusing the compiler.
Compilers are easily confused.
Owner of ISN Corporation
10-24-2006 04:07 AM
Well, I found my own solution. I read this:
And then just created my own select.h with one line in it:
The compile completed fine after that.