Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Ralf Habacker" To: "Cygwin" Subject: RE: Problem with winsup/cinstall compilation Date: Thu, 10 Jan 2002 23:15:09 +0100 Message-ID: <007e01c19a24$4425c270$651c440a@BRAMSCHE> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: <019e01c199bd$1b463860$0200a8c0@lifelesswks> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal > ----- 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/Makefile.in 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 Makefile.in > > CFLAGS := > @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 > with? gcc 2.95.3-5 > Also, why are you building against your system includes , not the winsup includes? (see my compile line below. The system includes are included automatic at the end of the list, so the winsup includes are used first, see my compile line. I have updated today from cvs. gcc -MMD -g -O2 -Werror -Winline -Wall -Wpointer-arith -Wcast-align -Wwrite-strings -Wstrict- prototypes -Wmissing-prototypes -Wmissing-declarations -Wcomments -mno-cygwin -I. -I/home/hab acker/src/cvs.cygwin.com/src/winsup/cinstall -I/home/habacker/src/cvs.cygwin.com/src/winsup/m ingw/include -I/home/habacker/src/cvs.cygwin.com/src/winsup/w32api/include -I/home/habacker/s rc/cvs.cygwin.com/ src/winsup/bz2lib -mwindows -c -o mklink2.o ../../../src/winsup/cinstall/mklink2.c $ make CC="gcc -v" Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs gcc -v -c -g -O2 -Werror -Winline -Wall -Wpointer-arith -Wcast-align -Wwrite-strings -Wstrict -prototypes -Wmissing-prototypes -Wmissing-declarations -Wcomments ... mklink2.c Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs gcc version 2.95.3-5 (cygwin special) /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/cpp0.exe -lang-c -v -I. -I/home/habacker/src/cvs.cyg win.com/src/winsup/cinstall -I/home/ habacker/src/cvs.cygwin.com/src/winsup/mingw/include -I/home/habacker/src/cvs.cygwin.com/src/ winsup/w32api/include -I/home/habacke r/src/cvs.cygwin.com/src/winsup/bz2lib -MMD mklink2.d -D__GNUC__=2 -D__GNUC_MINOR__=95 -D_X86_=1 -D_X86_=1 -Asystem(winnt) -D__OPT IMIZE__ -g -Werror -Winline -Wall -Wpointer-arith -Wcast-align -Wwrite-strings -Wstrict-proto types -Wmissing-prototypes -Wmissing- declarations -Wcomments -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpenti umpro -D__i686 -D__i686__ -D__pentium pro -D__pentiumpro__ -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdec l__)) -D_stdcall=__attribute__((__std call__)) -D_cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -D__MSVCRT__ -D__MINGW32__ -isystem /usr/local/inc lude/mingw -idirafter /usr/include/mingw -DWIN32 -DWINNT -D_WIN32 -D_WIN32 -D__WIN32 -D__WIN32__ -idirafter /usr/include/w32api .. /../../src/winsup/cinstall/mklink2.c /c/DOKUME~1/habacker/LOKALE~1/Temp/ccUo6xxm.i GNU CPP version 2.95.3-5 (cygwin special) (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: . /home/habacker/src/cvs.cygwin.com/src/winsup/cinstall /home/habacker/src/cvs.cygwin.com/src/winsup/mingw/include /home/habacker/src/cvs.cygwin.com/src/winsup/w32api/include /home/habacker/src/cvs.cygwin.com/src/winsup/bz2lib /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/include /usr/include/mingw /usr/include/w32api > The patch looks ok though, you should make a ChangeLog etc and send it to cygwin-patches. > > Rob > > $ make > gcc -L/usr/src/cygwin/build/i686-pc-cygwin/winsup -L/usr/src/cygwin/buil > d/i686-pc-cygwin/w > 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 > /usr/src/src/winsup/ > w32api/include -isystem /usr/src/src/newlib/libc/sys/cygwin -isystem > /usr/src/src/newlib/l > ibc/sys/cygwin32 -B/usr/src/cygwin/build/i686-pc-cygwin/newlib/ -isystem > /usr/src/cygwin/b > 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 > -Wstrict-prototype > s -Wmissing-prototypes -Wmissing-declarations -Wcomments -mno-cygwin -I. > -I/usr/src/src/wi > 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 > -cygwin/winsup/w32 > 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 > system > /usr/src/src/newlib/libc/sys/cygwin32 -B/usr/src/cygwin/build/i686-pc-cy > gwin/newlib > / -isystem > /usr/src/cygwin/build/i686-pc-cygwin/newlib/targ-include -isystem > /usr/src/src/ > newlib/libc/include" > 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 > `/usr/src/cygwin/build/i686-pc-cygwin/winsup/cinstall/zlib' > .... > > Rob > > -- 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/