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 Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Mon, 26 Apr 2004 08:43:54 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Carlo Florendo cc: cygwin AT cygwin DOT com Subject: Re: blackbox does not compile with latest cygwin In-Reply-To: <408CA7F6.3010502@hq.astra.ph> Message-ID: References: <408C81CB DOT 6010206 AT hq DOT astra DOT ph> <6 DOT 1 DOT 0 DOT 6 DOT 0 DOT 20040425233831 DOT 037630e8 AT 127 DOT 0 DOT 0 DOT 1> <408CA7F6 DOT 3010502 AT hq DOT astra DOT ph> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 On Mon, 26 Apr 2004, Carlo Florendo wrote: > Larry Hall wrote: > > >At 11:28 PM 4/25/2004, you wrote: > > > >>Hi, > >> > >>First of all, thanks to the latest version of cygwin. It appears to > >>run faster and and the issues I complained about for the past year > >>(some which I didn't follow up) have already been fixed! :) > >> > >>I upgraded to the latest cygwin last Friday and all seems to work fine > >>until I compiled blackbox, a light window manager. BTW, attached is a > >>gzipped dump of cygcheck -svr. > >> > >>In the older version of cygwin, blackbox compiled OOTB and I didn't > >>need to pass special parameters for configuring and building. > >> > >>I use the blackbox release: blackbox-0.65.0 > >>(The blackbox website says this is the latest release.) > >> > >>Now, upon running ./configure on blackbox, all was ok. When I started make, this is the error I got: > >> > >>Making all in src > >>make[2]: Entering directory `/usr/src/sources/blackbox-0.65.0/src' > >>c++ -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE -DNDEBUG -DTIMEDCACHE -DLOCALEPATH=\"/usr/local/share/blackbox/nls\" -DDEFAULTMENU=\"/usr/local/share/blackbox/menu\" -DDEFAULTSTYLE=\"/usr/local/share/blackbox/styles/Results\" -g -O2 > >>-I/usr/X11R6/include -Wall -W -pedantic -c Window.cc > >>Window.cc: In member function `bool BlackboxWindow::setInputFocus()': > >>Window.cc:1396: error: `assert' undeclared (first use this function) > >>Window.cc:1396: error: (Each undeclared identifier is reported only once for > >> each function it appears in.) > >>Window.cc: In member function `void > >> BlackboxWindow::constrain(BlackboxWindow::Corner, unsigned int*, unsigned > >> int*)': > >>Window.cc:3234: error: `assert' undeclared (first use this function) > >>make[2]: *** [Window.o] Error 1 > >>make[2]: Leaving directory `/usr/src/sources/blackbox-0.65.0/src' > >>make[1]: *** [all-recursive] Error 1 > >>make[1]: Leaving directory `/usr/src/sources/blackbox-0.65.0' > >>make: *** [all-recursive-am] Error 2 > >> > >>Could anyone point out what I'm doing wrong? > > > > > >Clearly the problem is that you're missing "#include ". That's > >likely the result of a configure problem but I didn't investigate to any > >great extent so I might be wrong. > > > Right! When I added "#include ", blackbox compiled clearly. > How come it didn't complain in the past cygwin? I compiled the same > blackbox at a linux box (without my added "#include ") and the > thing built perfectly. How come the new cygwin behaves differently? > > Thanks! > > Best Regards, > Carlo Well, as a WAG, assert.h could have been #included in some standard header file before, and isn't now. This indicates buggy software, BTW: it shouldn't rely on anything else including the needed functionality -- that's what the double include guards are for. The rule of thumb is: "when in doubt, include it". You might want to submit a patch to the blackbox maintainers. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/