[GRASS5] Pre4 on Mac OS X

Glynn Clements glynn.clements at virgin.net
Mon May 27 23:10:54 EDT 2002


Jeshua Lacock wrote:

> I have successfully built most of Grass Pre 4 here in Mac OS X land.
> 
> I had to edit "configure" for it to configure for postgres: I changed 
> "-lcrypt" to "-lssl -lcrypto" in the "configure" file.

OK, I'll add that.

> To successfully build "src/libes/proj", I had to edit geod.c: It was 
> pciky about the order of including "ctype.h".

What exactly was the problem? Error messages?

If a header fails to compile after ctype.h has been included, we may
need to change the header.

> I have run into some linking trouble with geo.point:
> 
> gcc -L/usr/src/grass5.0.0pre4/src/libes/LIB.powerpc-apple-darwin5.4   -o 
> /usr/src/grass5.0.0pre4/dist.powerpc-apple-darwin5.4/etc/geo.point  
> OBJ.powerpc-apple-darwin5.4/bin_point.o  LIB.powerpc-apple-
> darwin5.4/libgeo.a -lgis -llock  -I/usr   -lz
> /usr/bin/ld: Undefined symbols:
> _ax
> _ay
> _bx
> _by
> _use

These are defined in src/libes/vect32/georef/vars.c, which should be
part of libgeo. Were there any errors in building libgeo?

> I thoght it was a link order error, so I tried:
> 
> cc -L/usr/src/grass5.0.0pre4/src/libes/LIB.powerpc-apple-darwin5.4   -o 
> /usr/src/grass5.0.0pre4/dist.powerpc-apple-darwin5.4/etc/geo.point  
> LIB.powerpc-apple-darwin5.4/libgeo.a OBJ.powerpc-apple-
> darwin5.4/bin_point.o -lgis -llock  -I/usr   -lz
> /usr/bin/ld: Undefined symbols:
> _geo_read_control

This is defined in src/libes/vect32/georef/geo_file.c, also part of
libgeo. However, I would expect this to generate an error; libraries
must come *after* any files which make use of them.

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



More information about the grass-dev mailing list