[GRASS-dev] Compilation errors in GRASS for Mac
William Kyngesburye
woklist at kyngchaos.com
Fri Jul 28 00:47:02 EDT 2006
Odd. I have one big suggestion that *might* help, but should be
taken seriously nonetheless.
Don't use the ROOT account to do this. Or anything, really. I
presume you are using sudo su to change to root to build stuff.
You can simply use your normal login account to do the building. And
in your home folder, or /Users/Shared (I use /Users/Shared/src).
Then use 'sudo make install' for the final installation after make -
you only temporarily switch to root to do the install, and your
current environment sticks.
That said, I've had problems with simlib myself. This looks very
similar. The problem is that libgrass_sites, which is used by
simlib, itself uses libgrass_vect, not directly used by simlib. So
it looks for libgrass_vect where libgrass_sites says it is, in the
install location where it probably does not exist yet. My case is a
little different, but the effect is the same - "No such file or
directory".
Edit the makefile in raster/simwe/simlib and add $(VECTLIB) to the
EXTRA_LIBS line and $(VECTDEP) to the DEPENDENCIES line.
I'm not sure this is really a bug, so I haven't reported it yet. In
a fresh build it looks like it may well be a bug.
On Jul 27, 2006, at 11:23 PM, Agustin Diez Castillo wrote:
> Thanks Glynn,
> in a Dual Power Mac7.2 (Power Mac G5)
> things went bettet but ...
> Started compilation: Fri Jul 28 02:28:39 CEST 2006
> --
> Errors in:
> /private/var/root/cvs_grass/grass6/raster/simwe/simlib
> /private/var/root/cvs_grass/grass6/raster/simwe/r.sim.water
> /private/var/root/cvs_grass/grass6/raster/simwe/r.sim.sediment
> --
> Finished compilation: Fri Jul 28 02:41:22 CEST 2006
> (In case of errors please change into the directory with error and
> run 'make')
> smigol:~/cvs_grass/grass6 root# cd /private/var/root/cvs_grass/
> grass6/raster/simwe/simlib
> smigol:/private/var/root/cvs_grass/grass6/raster/simwe/simlib root#
> make
> cc -dynamiclib -flat_namespace -compatibility_version 6.1 -
> current_version 6.1 -install_name /usr/local/grass-6.1.cvs/lib/
> libgrass_sim.dylib -o /private/var/root/cvs_grass/grass6/
> dist.powerpc-apple-darwin8.7.0/lib/libgrass_sim.6.1.cvs.dylib -L/
> private/var/root/cvs_grass/grass6/dist.powerpc-apple-darwin8.7.0/
> lib -L/usr/local/grasslib/lib -L/usr/local/pgsql/lib OBJ.powerpc-
> apple-darwin8.7.0/input.o OBJ.powerpc-apple-darwin8.7.0/random.o
> OBJ.powerpc-apple-darwin8.7.0/hydro.o OBJ.powerpc-apple-darwin8.7.0/
> output.o OBJ.powerpc-apple-darwin8.7.0/erod.o -lgrass_gis -
> lgrass_datetime -lz -lgrass_bitmap -lgrass_dbmiclient -
> lgrass_dbmibase -lgrass_gmath -L/usr/local/grasslib/lib -lfftw3
> -lgrass_linkm -lz -lgrass_sites && if [ -z "" ] ; then ln -f -s
> libgrass_sim.6.1.cvs.dylib /private/var/root/cvs_grass/grass6/
> dist.powerpc-apple-darwin8.7.0/lib/libgrass_sim.dylib; fi
> ld: warning can't open dynamic library: /usr/local/grass-6.1.cvs/
> lib/libgrass_vect.dylib referenced from: /private/var/root/
> cvs_grass/grass6/dist.powerpc-apple-darwin8.7.0/lib/
> libgrass_sites.dylib (checking for undefined symbols may be
> affected) (No such file or directory, errno = 2)
> ld: warning can't open dynamic library: /usr/local/grass-6.1.cvs/
> lib/libgrass_dig2.dylib referenced from: /private/var/root/
> cvs_grass/grass6/dist.powerpc-apple-darwin8.7.0/lib/
> libgrass_sites.dylib (checking for undefined symbols may be
> affected) (No such file or directory, errno = 2)
> ld: warning can't open dynamic library: /usr/local/grass-6.1.cvs/
> lib/libgrass_dgl.dylib referenced from: /private/var/root/cvs_grass/
> grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass_sites.dylib
> (checking for undefined symbols may be affected) (No such file or
> directory, errno = 2)
> ld: warning can't open dynamic library: /usr/local/grass-6.1.cvs/
> lib/libgrass_rtree.dylib referenced from: /private/var/root/
> cvs_grass/grass6/dist.powerpc-apple-darwin8.7.0/lib/
> libgrass_sites.dylib (checking for undefined symbols may be
> affected) (No such file or directory, errno = 2)
> ld: Undefined symbols:
-----
William Kyngesburye <kyngchaos at kyngchaos.com>
http://www.kyngchaos.com/
[Trillian] What are you supposed to do WITH a maniacally depressed
robot?
[Marvin] You think you have problems? What are you supposed to do
if you ARE a maniacally depressed robot? No, don't try and answer,
I'm 50,000 times more intelligent than you and even I don't know the
answer...
- HitchHiker's Guide to the Galaxy
More information about the grass-dev
mailing list