[GRASSLIST:1998] Re: Installing grass57_exp_2003_10_25 on MacX
Markus Neteler
neteler at itc.it
Tue Dec 9 05:36:52 EST 2003
On Mon, Dec 08, 2003 at 09:39:22PM +0000, Paul Kelly wrote:
> 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.
OK, so Giacomo should try to upgrade from CVS (both 5.3 and 5.7, see
the INSTALL file of 5.7 how to do that).
> 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.
Generally agreed - someone with MacOSX system may try and post the
result. I am too far from a Mac to try myself.
Markus
More information about the grass-user
mailing list