This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with winsup/cinstall compilation

----- Original Message -----
From: "Ralf Habacker" <>
To: "Cygwin" <>
Sent: Thursday, January 10, 2002 8:45 PM
Subject: Problem with winsup/cinstall compilation

> Hi,
> I've tried to compile a recent setup.exe from the cvs and got an error
while compiling
> mklink2.c about "function declaration isn't a prototype"
> I've found that in cinstall/ the -Werror option is set, so
warnings causes
> compiling failures.
> What about this ? As I see there are two solutions for this.
> 1. remove the -Werror in
@CFLAGS@ -Werror -Winline -Wall -Wpointer-arith -Wcast-align\
>                               ^^^^^^^^
> -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
> -Wmissing-declarations -Wcomments
> 2. fix the bad header.
>    This seems to me the better solution, so a patch for the w32api
header is appended.

2. is correct. The -Werror is there deliberately.

I don't see these errors however. What version of gcc are you building
Also, why are you building against your system includes, not the winsup
includes? (see my compile line below. The patch looks ok though, you
should make a ChangeLog etc and send it to cygwin-patches.


$ make
gcc -L/usr/src/cygwin/build/i686-pc-cygwin/winsup -L/usr/src/cygwin/buil
insup/cygwin -L/usr/src/cygwin/build/i686-pc-cygwin/winsup/w32api/lib -i
system /usr/src/sr
c/winsup/include -isystem /usr/src/src/winsup/cygwin/include -isystem
w32api/include -isystem /usr/src/src/newlib/libc/sys/cygwin -isystem
ibc/sys/cygwin32 -B/usr/src/cygwin/build/i686-pc-cygwin/newlib/ -isystem
uild/i686-pc-cygwin/newlib/targ-include -isystem
/usr/src/src/newlib/libc/include -MMD -g
-O2 -Werror -Winline -Wall -Wpointer-arith -Wcast-align -Wwrite-strings 
s -Wmissing-prototypes -Wmissing-declarations -Wcomments -mno-cygwin -I.
nsup/cinstall -I/usr/src/src/winsup/mingw/include  -I/usr/src/src/winsup
/bz2lib -mwindows
-c -o mklink2.o ../../../../../src/winsup/cinstall/mklink2.c
make -C zlib libzcygw.a
CC="gcc -L/usr/src/cygwin/build/i686-pc-cygwin/winsup -L/usr/src/c
ygwin/build/i686-pc-cygwin/winsup/cygwin -L/usr/src/cygwin/build/i686-pc
api/lib -isystem /usr/src/src/winsup/include -isystem
/usr/src/src/winsup/cygwin/include -
isystem /usr/src/src/winsup/w32api/include -isystem
/usr/src/src/newlib/libc/sys/cygwin -i
/usr/src/src/newlib/libc/sys/cygwin32 -B/usr/src/cygwin/build/i686-pc-cy
/ -isystem
/usr/src/cygwin/build/i686-pc-cygwin/newlib/targ-include -isystem
CFLAGS='-MMD -g -O2 -Werror -Winline -Wall -Wpointer-arith -Wcast-ali
gn -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-de
clarations -Wcomme
nts -mno-cygwin -I. -I/usr/src/src/winsup/cinstall -I/usr/src/src/winsup
/mingw/include  -I
/usr/src/src/winsup/bz2lib -mwindows'
make[1]: Entering directory


Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]