[GRASS5] New MacOS X compilation errors
Jeshua Lacock
jeshua at SierraMaps.com
Sat Nov 18 21:39:51 EST 2000
> > I am not sure if it is required on MAC. You could
> > cd /usr/include/sys/
> > touch msg.h
> >
> > to generate an empty file to trick GRASS. Due to library dependencies
> > the other stuff wasn't compiled.
After touching msg.h it compiled. (using CVS now)
> > > readsites_xyz.c:164: illegal expression, found `}'
> > > make[1]: *** [OBJ.powerpc-apple-darwin1.2/readsites_xyz.o] Error 1
> > > GISGEN failure at STEP: src/libes/gis
> > This one is very strange (hi Eric!).
>
> Hmm, the compiler doesn't deal with empty "default:" statements in a
> switch properly??? Try removing the line above that has the empty default
> statement and see if it works then. If it does, I'll remove it from the
> CVS version (but it's really a compiler bug).
>
> file: grass/src/libes/gis/readsites_xyz.c line 163
> default: /* No cat */
So I deleted the line and it compiled just fine.
The XDRIVER24 module fails to compile because the module is dependent on the switcher.c that also fails to compile. Here's the log:
SWITCHER.c: In function `xalloc':
SWITCHER.c:1369: conflicting types for `malloc'
/System/Library/Frameworks/System.framework/Headers/bsd/stdlib.h:121: previous declaration of `malloc'
SWITCHER.c:1369: warning: extern declaration of `malloc' doesn't match global one
SWITCHER.c:1369: conflicting types for `realloc'
/System/Library/Frameworks/System.framework/Headers/bsd/stdlib.h:125: previous declaration of `realloc'
SWITCHER.c:1369: warning: extern declaration of `realloc' doesn't match global one
make[2]: *** [OBJ.powerpc-apple-darwin1.2/SWITCHER.o] Error 1
make[1]: *** [all] Error 2
Any ideas?
Cheers,
Jeshua Lacock
Cartographer/Owner
http://SierraMaps.com
http://3dTopoMaps.com
Telephone: (760) 935-4481
----------------------------------------
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