This is the mail archive of the cygwin 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: blackbox does not compile with latest cygwin


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 <assert.h>".  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 <assert.h>", 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 <assert.h>") 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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/


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