There are some specific aspects on compiling Grass7 on FreeBSD 9.1.


1. Must use "gmake" instead of "make". 'Make' is different under BSD
Environnement.

2. The 'gis.h' header try to include the 'alloca.h' header. On FreeBSD,
alloca() is declared in 'stdlib.h'
(http://forums.freebsd.org/showthread.php?t=30354).

This issue was temporarily fixed with : ' #touch
/usr/local/include/alloca.h '


3. Current error appears in ' grass7/dist.i386-freebsd/lib/manage ' :

        ld: unrecognized option '-Wl, -rpath, /grass7/dist.i386-freebsd/lib

Possible solution could be found in LD_SEARCH_FLAGS like in this post (https://trac.osgeo.org/grass/ticket/1757#comment:4).

I try to modify line 562 in ' aclocal.m4 ' and replace

SHLIB_LD="ld -Bshareable -x"
by SHLIB_LD="${CC} -shared"


But it didn't work.

Maybe one of us have already a solution ?
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to