Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Showing results for 
Search instead for 
Did you mean: 

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.

python build_ext
running build_ext
/opt/informix/test/bin/esql -EDHAVE_ESQL9 -e
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,
/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
Steven E. Protter
Exalted Contributor

Re: sys/select.h not found


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.

Steven E Protter
Owner of ISN Corporation
John Huck
Occasional Advisor

Re: sys/select.h not found

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.