Wring winioctl.h used in compiling cygwin1.dll from CVS sources

Ronald Landheer-Cieslak info@rlsystems.net
Sat Nov 16 17:45:00 GMT 2002


Hello y'all,

I was just trying to compile the Cygwin DLL, but couln'd because the 
winioctl.h from w32api was never included (using CVS sources): the one 
actually includes was the one of my Cygwin installation.

This is the command-line used for the file that didn't compile because one of the defines was missing:

c++ -L/home/RonaldLandheer/cygwin/build/i686-pc-cygwin/winsup \
-L/home/RonaldLandheer/cygwin/build/i686-pc-cygwin/winsup/cygwin \
-L/home/RonaldLandheer/cygwin/build/i686-pc-cygwin/winsup/w32api/lib \
-isystem /home/RonaldLandheer/cygwin/src/winsup/include -isystem \
/home/RonaldLandheer/cygwin/src/winsup/cygwin/include -isystem \
/home/RonaldLandheer/cygwin/src/winsup/w32api/include -isystem \
/home/RonaldLandheer/cygwin/src/newlib/libc/sys/cygwin -isystem \
/home/RonaldLandheer/cygwin/src/newlib/libc/sys/cygwin32 \
-B/home/RonaldLandheer/cygwin/build/i686-pc-cygwin/newlib/ -isystem \
/home/RonaldLandheer/cygwin/build/i686-pc-cygwin/newlib/targ-include \
-isystem /home/RonaldLandheer/cygwin/src/newlib/libc/include -c \
-nostdinc++ -nostdinc -DHAVE_CONFIG_H  -g -O2 -Wall -Wwrite-strings \
-fno-common -pipe -Winline -fbuiltin  -I.  \
-I/home/RonaldLandheer/cygwin/src/winsup/cygwin    \
-I/home/RonaldLandheer/cygwin/src/newlib/libc/sys/cygwin/include  \
-I../../../../src/winsup/cygwin/config/i386 \
-I/usr/lib/gcc-lib/i686-pc-cygwin/3.2//include -fno-rtti \
-fno-exceptions -o ./fhandler_floppy.o \
../../../../src/winsup/cygwin/fhandler_floppy.cc

Adding 
``-I/home/RonaldLandheer/cygwin/src/winsup/w32api/include''
helps in as much that it results in a valid object file, but a warning as well (because I left the ``-isystem /home/RonaldLandheer/cygwin/src/winsup/w32api/include'' in there

I have no idea how to work with all the Makefile.in files in the source 
tree, so I can't give you an easy patch to apply. However, I can tell 
you that I verified that the file was not included, as I put an ``#error 
Hello, world!'' at the beginning of it, and didn't get that as an error 
when trying to compile without modifying anything..

Hope it helps!

Ronald


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list