[GRASS5] Re: [GRASSLIST:1204] Compilation errors

Hello:

I started this thread on the open email list regarding some compilation errors I received:

> Compilation error in module: src/general/g.region (ignored)

Compilation error in module: src/imagery/i.points3 (ignored)
Compilation error in module: src/mapdev/v.digit (ignored)
Compilation error in module: src/mapdev/v.in.gshhs (ignored)
Compilation error in module: src/mapdev/v.mkquads (ignored)
Compilation error in module: src/mapdev/v.proj (ignored)
Compilation error in module: src/misc/m.proj2 (ignored)
Compilation error in module: src/raster/r.in.gdal (ignored)
Compilation error in module: src/raster/r.proj (ignored)
Compilation error in module: src/raster/r.sun (ignored)
Compilation error in module: src/raster/r.sunmask (ignored)
Compilation error in module: src/sites/s.proj (ignored)

> Compilation error in module: src.contrib/GMSL/NVIZ2.2 (ignored)

>

I used the standard configure options. I'm guessing this means that
none of these modules will be available to me within GRASS, so it
would be nice to know why there were compilation errors and how to

> correct them.

Paul Kelly and Glynn Clements have been helping me out with this, and suggested I need to send part of the make error log so we can figure out what's going on. The error log is attaches as build.rtf and only contains those parts of the build log that are relevant to the errors listed. It is assumed that all of the errors except the last one - NVIZ2.2 - are related to the PROJ.4 external library that I have on my machine, so I give only one example of the suspected proj errors in the build.rtf file.

Thanks.
Bill
--

Bill Dickinson
GIS Specialist
NASA Goddard Space Flight Center
Environmental & Safety Branch, Code 250
wdickins@pop700.gsfc.nasa.gov

(attachments)

build.25722DEFANGED-rtf (4.29 KB)

(Summary for people who can't read the binhex encoded file):
gcc
-L/Users/wbdickinson/unix/grass502source/grass5.0.2/src/libes/LIB.powerpc-apple-darwin6.6
-L/sw/lib -o
/Users/wbdickinson/unix/grass502source/grass5.0.2/dist.powerpc-apple-darwin6.6/etc/bin/cmd/r.sun
OBJ.powerpc-apple-darwin6.6/main.o -lgis -lintl -lproj -llinkm -lz
ld: Undefined symbols:
_pj_do_proj
_pj_get_kv
_pj_zero_proj

This looks like the wrong proj library is being used. Either delete the
external PROJ or (preferably) update to the CVS HEAD where the internal
GRASS proj libary has already been renamed to gproj.

gcc -I/Users/wbdickinson/unix/grass502source/grass5.0.2/src/include -g -O2
-I/sw/include -I/usr/X11R6/include
-I/Users/wbdickinson/unix/grass502source/grass5.0.2/src/libes/ogsf
-D_NO_PROTO -D__STDC__ -c nvizAppInit.c -o
OBJ.powerpc-apple-darwin6.6/nvizAppInit.o
In file included from nvizAppInit.c:9:
interface.h:257: conflicting types for `Tk_SetAppName'
/sw/include/tkDecls.h:573: previous declaration of `Tk_SetAppName'

This looks like a Tcl/Tk version problem. Are you using Tcl/Tk 8.4? If so,
the fix is already in CVS HEAD and also 5.0.3.

Paul

Bill Dickinson Jr wrote:

Paul Kelly and Glynn Clements have been helping me out with this, and
suggested I need to send part of the make error log so we can figure
out what's going on. The error log is attaches as build.rtf

Also, the attachment was BinHex encoded. I don't think that any of us
have Macs, so we can't actually extract the .rtf file, and probably
wouldn't be able to read a .rtf file even if we could extract it.

Send the data as plain text, either in the body of the message or as
MIME attachment using a standardard encoding (i.e. either 7bit, 8bit
or base64). If it's large, compressing it with "gzip" is definitely
OK, compressing it with "zip" is probably OK, but anything
Mac-specific isn't.

--
Glynn Clements <glynn.clements@virgin.net>