[GRASSLIST:2463] More info: build error in 5.7 on OSX

From: Christopher Fonnesbeck <chris@fonnesbeck.org>
Date: February 4, 2004 8:22:55 AM EST
To: GRASSLIST@baylor.edu
Subject: build error in 5.7 on OSX

I haven't seen this one before. From a fresh cvs updated build this morning:

gcc -I/usr/local/src/grass57_exp_2003_11_22/include -I/usr/local/src/grass57_exp_2003_11_22/dist.powerpc-apple-darwin7.2.0/include -I/usr/X11R6/include -I/usr/local/include -I/sw/include -faltivec -lcc_dynamic -framework vecLib -Wall -Wconversion -Wno-implicit-int -I/usr/X11R6/include -I/usr/local/include -I/sw/include -I/usr/local/include -DUSE_GDAL_H -I/usr/local/src/grass57_exp_2003_11_22/include -I/usr/local/src/grass57_exp_2003_11_22/dist.powerpc-apple-darwin7.2.0/include \
        -o OBJ.powerpc-apple-darwin7.2.0/main.o -c main.c
main.c: In function `main':
main.c:112: error: `create' undeclared (first use in this function)
main.c:112: error: (Each undeclared identifier is reported only once
main.c:112: error: for each function it appears in.)
make[2]: *** [OBJ.powerpc-apple-darwin7.2.0/main.o] Error 1
make[1]: *** [subdirs] Error 1
make: *** [default] Error 1

Sorry I left this out ... main.c is from g.proj

--
Christopher J. Fonnesbeck ( c h r i s @ f o n n e s b e c k . o r g )
Georgia Cooperative Fish & Wildlife Research Unit, University of Georgia

On Wed, 4 Feb 2004, Christopher Fonnesbeck wrote:

> main.c:112: error: `create' undeclared (first use in this function)
> main.c:112: error: (Each undeclared identifier is reported only once
> main.c:112: error: for each function it appears in.)
> make[2]: *** [OBJ.powerpc-apple-darwin7.2.0/main.o] Error 1
> make[1]: *** [subdirs] Error 1
> make: *** [default] Error 1

Sorry I left this out ... main.c is from g.proj

That would be my fault---I didn't check compiling without OGR/GDAL when I
made some recent changes to g.proj. I have fixed it in CVS or you can move
the #ifdef HAVE_OGR on line 34 to the other side of *create,

Paul

On Feb 4, 2004, at 9:02 AM, Paul Kelly wrote:

On Wed, 4 Feb 2004, Christopher Fonnesbeck wrote:

main.c:112: error: `create' undeclared (first use in this function)
main.c:112: error: (Each undeclared identifier is reported only once
main.c:112: error: for each function it appears in.)
make[2]: *** [OBJ.powerpc-apple-darwin7.2.0/main.o] Error 1
make[1]: *** [subdirs] Error 1
make: *** [default] Error 1

Sorry I left this out ... main.c is from g.proj

That would be my fault---I didn't check compiling without OGR/GDAL when I
made some recent changes to g.proj. I have fixed it in CVS or you can move
the #ifdef HAVE_OGR on line 34 to the other side of *create,

However, "create" is also used further down (line 367) outside of the HAVE_OGR if statement ...

C.

--
Christopher J. Fonnesbeck ( c h r i s @ f o n n e s b e c k . o r g )
Georgia Cooperative Fish & Wildlife Research Unit, University of Georgia