[GRASS5] SG3d and g.parser

John Gillette JGillette at rfmd.com
Wed Feb 19 17:38:38 EST 2003


 Glynn,

g.parser appears to be one of those programs not on the CMD/list
so it wasn't compiled on my system.  When I compile, I get an 
undefined symbol reference (setenv) in main.o

I have enclosed to error message.

Let me ask a few more questions.

As an example:

my_script map=f00

my_script will define all the required parameters for the parser
in the top portion (as in test.sh) similar to a C program.
my_script will have on the command line none, some, or all of 
the required parameters.  The parser will get the command line
parameters and ask for any missing parameters.  Is this
correct?

The rest looks straight forward.

John
 
-------------- next part --------------
  SRC     = /scratch/grass500/grass-5.0.0/src
  CMD     = /scratch/grass500/grass-5.0.0/src/CMD
  UNUSED  = /scratch/grass500/grass-5.0.0/unused
  HEADER  = head.sparc-sun-solaris2.7
  ARCH    = sparc-sun-solaris2.7
  GISBASE = /scratch/grass500/grass-5.0.0/dist.sparc-sun-solaris2.7
  VERSION = 5.0.0 August 2002 
#################################################################
/scratch/grass500/grass-5.0.0/src/general/g.parser
  mkdir OBJ.sparc-sun-solaris2.7
  make -f OBJ.sparc-sun-solaris2.7/make.rules 

gcc -I/scratch/grass500/grass-5.0.0/src/include -g -O2   -c main.c -o OBJ.sparc-sun-solaris2.7/main.o
gcc -L/scratch/grass500/grass-5.0.0/src/libes/LIB.sparc-sun-solaris2.7  -o /scratch/grass500/grass-5.0.0/dist.sparc-sun-solaris2.7/etc/bin/cmd/g.parser OBJ.sparc-sun-solaris2.7/main.o -lgis -lm -lnsl    -lz  -lsocket  -lnsl
Undefined                       first referenced
 symbol                             in file
setenv                              OBJ.sparc-sun-solaris2.7/main.o
ld: fatal: Symbol referencing errors. No output written to /scratch/grass500/grass-5.0.0/dist.sparc-sun-solaris2.7/etc/bin/cmd/g.parser
*** Error code 1
make: Fatal error: Command failed for target `/scratch/grass500/grass-5.0.0/dist.sparc-sun-solaris2.7/etc/bin/cmd/g.parser'


More information about the grass-dev mailing list