[GRASS-dev] Error compiling 6.3
William Kyngesburye
woklist at kyngchaos.com
Fri Aug 18 14:29:07 EDT 2006
A bit of a quirk with Apple's linker (though it might be more
general), if you've never installed 6.3 before. Some of those
libraries needed by simlib also use other grass libraries. Normally
the linker would find those automatically from their install
locations, but since you don't have GRASS installed yet (this version
at least), it fails.
Edit raster/simwe/simlib/makefile, and add $(VECTLIB) to EXTRA_LIBS.
I also have to do this when I build a universal GRASS, since
everything is going thru the Universal SDK which alters paths on the
fly. I've been a bit hesitant (and lazy) to file this as a bug, but
maybe I should.
On Aug 18, 2006, at 1:05 PM, Agustin Diez Castillo wrote:
> I got this error when compiling simlib on a PPC iMac G5 from latest
> cvs:
> cc -dynamiclib -flat_namespace -compatibility_version 6.3 -
> current_version 6.3 -install_name /usr/local/grass-6.3.cvs/lib/
> libgrass_sim.dylib -o /Users/Shared/src/grass6_3/grass6/
> dist.powerpc-apple-darwin8.7.0/lib/libgrass_sim.6.3.cvs.dylib -L/
> Users/Shared/src/grass6_3/grass6/dist.powerpc-apple-darwin8.7.0/lib
> -L/usr/local/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/lib -lfftw -
> lgrass_linkm -lz -lgrass_sites && if [ -z "" ] ; then ln -f -s
> libgrass_sim.6.3.cvs.dylib /Users/Shared/src/grass6_3/grass6/
> dist.powerpc-apple-darwin8.7.0/lib/libgrass_sim.dylib; fi
> ld: warning can't open dynamic library: /usr/local/grass-6.3.cvs/
> lib/libgrass_vect.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.3.cvs/
> lib/libgrass_dig2.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.3.cvs/
> lib/libgrass_dgl.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.3.cvs/
> lib/libgrass_rtree.dylib (checking for undefined symbols may be
> affected) (No such file or directory, errno = 2)
> ld: Undefined symbols:
> _Vect_append_point
> _Vect_build
> _Vect_cat_get
> _Vect_cat_set
> _Vect_close
> _Vect_get_comment
> _Vect_get_field
> _Vect_get_name
> _Vect_is_3d
> _Vect_new_cats_struct
> _Vect_new_line_struct
> _Vect_open_new
> _Vect_open_old
> _Vect_read_next_line
> _Vect_reset_cats
> _Vect_reset_line
> _Vect_set_comment
> _Vect_set_date
> _Vect_set_map_name
> _Vect_set_open_level
> _Vect_write_line
> /usr/bin/libtool: internal link edit command failed
> make[1]: *** [/Users/Shared/src/grass6_3/grass6/dist.powerpc-apple-
> darwin8.7.0/lib/libgrass_sim.6.3.cvs.dylib] Error 1
> r.sim.water
> gcc -L/Users/Shared/src/grass6_3/grass6/dist.powerpc-apple-
> darwin8.7.0/lib -L/usr/local/lib -L/usr/local/pgsql/lib -I/usr/
> local/include -DPACKAGE=\""grassmods"\" -o /Users/Shared/src/
> grass6_3/grass6/dist.powerpc-apple-darwin8.7.0/bin/r.sim.water
> OBJ.powerpc-apple-darwin8.7.0/main.o -lgrass_sim -lgrass_bitmap -
> lgrass_linkm -lgrass_sites -lgrass_vect -lgrass_dig2 -lgrass_dgl -
> lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase -L/
> usr/local/lib -lgdal -lgrass_dbmiclient -lgrass_dbmibase -
> lgrass_gis -lgrass_datetime -lz -lgrass_datetime -lgrass_gmath -
> L/usr/local/lib -lfftw -lz
> /usr/bin/ld: can't locate file for: -lgrass_sim
> collect2: ld returned 1 exit status
> make[1]: *** [/Users/Shared/src/grass6_3/grass6/dist.powerpc-apple-
> darwin8.7.0/bin/r.sim.water] Error 1
> r.sim.sediment
> gcc -L/Users/Shared/src/grass6_3/grass6/dist.powerpc-apple-
> darwin8.7.0/lib -L/usr/local/lib -L/usr/local/pgsql/lib -I/usr/
> local/include -DPACKAGE=\""grassmods"\" -o /Users/Shared/src/
> grass6_3/grass6/dist.powerpc-apple-darwin8.7.0/bin/r.sim.sediment
> OBJ.powerpc-apple-darwin8.7.0/main.o -lgrass_sim -lgrass_bitmap -
> lgrass_linkm -lgrass_sites -lgrass_vect -lgrass_dig2 -lgrass_dgl -
> lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase -L/
> usr/local/lib -lgdal -lgrass_dbmiclient -lgrass_dbmibase -
> lgrass_gis -lgrass_datetime -lz -lgrass_datetime -lgrass_gmath -
> L/usr/local/lib -lfftw -lz
> /usr/bin/ld: can't locate file for: -lgrass_sim
> collect2: ld returned 1 exit status
> make[1]: *** [/Users/Shared/src/grass6_3/grass6/dist.powerpc-apple-
> darwin8.7.0/bin/r.sim.sediment] Error 1
>
> *******************************************************
> Dr. Agustin Diez Castillo
> Departament de Prehistoria i Arqueologia
> Universitat de Valencia Phone: +34 963 86 42 42
> Avda. Blasco Iba–ez, 28 Fax: +34 963 98 38 87
> Valencia 46010
> *******************************************************
>
>
>
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev
-----
William Kyngesburye <kyngchaos at kyngchaos.com>
http://www.kyngchaos.com/
"I ache, therefore I am. Or in my case - I am, therefore I ache."
- Marvin
More information about the grass-dev
mailing list