Operating System - Linux
1753900 Members
7508 Online
108809 Solutions
New Discussion юеВ

Re: sys/select.h not found

 
John Huck
Occasional Advisor

sys/select.h not found


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.
Thanks
John

python setup.py build_ext
running 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/_informixdb.o
In file included from /usr/local/include/python2.4/Python.h:55,
from _informixdb.ec:32:
/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
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: sys/select.h not found

Shalom,

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.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
John Huck
Occasional Advisor

Re: sys/select.h not found


Well, I found my own solution. I read this:
http://devrsrc1.external.hp.com/STKS/impacts/i189.html

And then just created my own select.h with one line in it:
#include

The compile completed fine after that.

Thanks