[GRASSLIST:1991] Re: Installing grass57_exp_2003_10_25 on MacX

Paul Kelly paul-grass at stjohnspoint.co.uk
Mon Dec 8 16:39:22 EST 2003


Hello Markus

Markus Neteler wrote:
> 
> On Fri, Oct 31, 2003 at 01:20:45AM -0800, Giacomo wrote:
> > I've tried to install grass 5.7 on MacX:
> > the make command gives the following error:
> > 
> > gcc -L/sw/lib -L/sources/grass57_exp_2003_10_25/dist./lib
> > -dynamiclib -Wl,-flat_namespace,-U,_cuserid -L/sw/lib
> > -L/sources/grass57_exp_2003_10_25/dist./lib      \
> >          OBJ./get_proj.o OBJ./do_proj.o OBJ./convert.o OBJ./datum.o
> > OBJ./ellipse.o -lgrass_gis -lgrass_datetime  -lintl -lproj  -o
> > /sources/grass57_exp_2003_10_25/dist./lib/libgrass_gproj.dylib
> > ld: Undefined symbols:
> > _OSRDestroySpatialReference
> > _OSRExportToPrettyWkt
> > _OSRExportToWkt
> > _OSRGetAttrValue
> > _OSRImportFromProj4
> > _OSRMorphToESRI
> > _OSRNewSpatialReference
> > /usr/bin/libtool: internal link edit command failed
> > make[2]: ***
> > [/sources/grass57_exp_2003_10_25/dist./lib/libgrass_gproj.dylib] Error 1
> > make[1]: *** [subdirs] Error 1
> > make: *** [default] Error 1
>
> An alternative is to download precompiled binaries:
> http://mpa.itc.it/markus/grass57/macosx/index.html
> 
> If you installed GDAL from FINK, it is missing OGR.
> That's why it won't compile. 

I don't think that was the problem. I have #ifdef HAVE_OGR statements
bounding the parts of the gproj library that depend on OGR, and the
configure script specifically checks 'gdal-config --ogr-enabled' before
defining HAVE_OGR so this shouldn't happen. The gproj library would just
compile but would simply be missing the functions that depend on OGR.

I think the problem will have been solved since we added the '-undefined
suppress' switch to the OSX linking line in aclocal.m4.

I also think this means all the EXTRA_LIBS lines can be removed from the
library Makefiles again now but since I haven't got an OSX system to
test it I don't want to risk doing this. It's nice to see the Makefiles
tidy and as short as possible though.

Paul




More information about the grass-user mailing list