[GRASS5] Mac OS X errors

Markus Neteler neteler at geog.uni-hannover.de
Fri Jan 26 09:59:59 EST 2001


On Fri, Jan 26, 2001 at 01:52:50PM +0000, David D Gray wrote:
> Jeshua Lacock wrote:
> > 
> > Greetings,
> > 
> > I just compiled beta 11 on Mac OS X and here are the errors from modules tat I could not figure out (most of these errors have been posted before with previous builds):
> > 
> > [...]
> > src/mapdev/v.in.shape:
> >    shp2dig.c:25: header file 'malloc.h' not found
> > 
> > I got this module compiled before (beta 10)  by using:
> > Copying /System/Library/Frameworks/System.framework/Versions/B/Headers/bsd/sys/malloc.h to src/include.
> > 
> > Now I get the errors:
> > malloc.h:257: undefined type, found `u_short'
> > malloc.h:258: undefined type, found `u_short'
> > 
> > The same thing goes for these modules:
> > v.mkgrid, v.out.shape, src.contrib/SDTS
> > 
> 
> Jeshua
> 
> I have changed the #includes to stdlib.h which is probably OK on Mac OS
> X in v.in.shape, v.out.shape and v.mkgrid, and should #include malloc.h
> on other systems. Hopefully they will compile OK now.

If this fix is o.k., here is a list of other modules which might have
the same problem (sorry, no time to fix it):

find . -name '*.[hc]' -exec grep -l malloc.h {} \;
./src/include/std_incs.h
./src/libes/vect32_64/shapelib-1.2.8/shapefil.h
./src/mapdev/v.in.shape/cleanup.c
./src/mapdev/v.in.shape/shapefil.h
./src/mapdev/v.out.shape/shapefil.h
./src/sites/s.in.shape/cmd/shapefil.h
./src/sites/s.in.dbf/shapefil.h
./src.contrib/CERL/raster/r.hydro.CASC2D/all.h
./src.contrib/CERL/sites/s.surf.krig/nrutil.c
./src.contrib/SDTS/mapdev/v.in.sdts/att_ff_info.c
./src.garden/grass.postgresql/pg.in.dbf/shapefil.h
./src.garden/grass.postgresql/v.in.arc.pg/shapefil.h
./src.garden/grass.postgresql/v.in.shape.pg/cleanup.c
./src.garden/grass.postgresql/v.in.shape.pg/shapefil.h
./src.garden/grass.postgresql/v.in.shape.pg/shp2dig.c


Markus

---------------------------------------- 
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