[GRASS5] Re: Binaries on SGI

Justin Hickey jhickey at impact1.hpcc.nectec.or.th
Thu Jul 27 12:44:45 EDT 2000


Hi Markus

On Jul 27, 11:12am, Markus Neteler wrote:
> O.k. But tomorrow is latest day I can add updates here before
> vacations.... :-)

In case I forget tomorrow, have a great vacation!!

Now for more questions. An error that I found was caused by an error in the
configure script. The error concerns the test for the "curses.h WINDOW
structure component". On line 2322 of the configure script we have the
following:
	CURSES_MAXY=NONE
	cat > conftest.$ac_ext <<EOF
	#line 2325 "configure"
	#include "confdefs.h"

	  #include <curses.h>
	  WINDOW w;

	int main() {
	void t () { w.maxy = 0; }
	; return 0; }
	EOF
and again starting at line 2342:
	cat > conftest.$ac_ext <<EOF
	#line 2344 "configure"
	#include "confdefs.h"

	  #include <curses.h>
	  WINDOW w;

	int main() {
	void t () { w._maxy = 0; }
	; return 0; }
	EOF

The problem with this code is that it generates an error due to the definition
of the function t() inside main(). C does not support nested functions. This
error was reported in the config.log file as well. I am really surprised gcc
doesn't catch this!! Wow!

Since I know nothing about configure, can I simply delete the declaration of
the t function? It makes no sense and is never used in the code snippet. So, it
would look like this:

	int main() {
	w._maxy = 0;
	; return 0; }

I checked configure.in, but it doesn't appear there. And if I do delete it,
will it be safe to commit the configure script back to CVS?

Any comments would be greatly appreciated.

-- 
Sincerely,

Jazzman (a.k.a. Justin Hickey)  e-mail: jhickey at hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand
==================================================================
People who think they know everything are very irritating to those
of us who do.  ---Anonymous

Jazz and Trek Rule!!!
==================================================================

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list