compiling grass-jni-0.7.0 on Linux

Herve Dreau hdreau at worldnet.fr
Tue Jul 21 15:19:31 EDT 1998


<Subject>  Trouble to compile  grass-jni-0.7.0 on  Linux

>gcc -g -O2 -I/usr/local/jdk1.1.6/include
...  -------
>/usr/local/grass42/src421/src/libes/LIB.linux/libgis.a(gets.o): In
>function `G_gets': gets.o(.text+0x5f): the `gets' function is
>dangerous and should not be used. 
> /usr/lib/crt1.o(.text+0x36):
>undefined reference to `main' make: *** [libgis.so] Error 1
>------------------------------

Thank to Alexandre Sorokine <sorokin at vtt.co.jp>, I can now  compile 
grass-jni-0.7.0, the major problem was due to my bad knowledge of gcc
: i missed to use the -shared flag to build the shared library (in the 
place of the -G flag for sun, i remove it but don't replace it :( ).

Excuse me for the noise.

-- 
Hervé Dréau Interne en Médecine
hdreau at worldnet.fr dreau at hbroussais.fr
Médecine Linux Java



More information about the grass-user mailing list