[GRASS-user] Spectral Unmixing

Mohammed Rashad mohammedrashadkm at gmail.com
Fri Dec 7 22:09:41 PST 2012


what is your gcc version?

post output of gcc -v

gcc 4.x doesnt need g2c.h and HAVEG2C_H remains undefined.

if you are using gcc4.x i can provide you a patch for la.h which will solve
the issue for now.

Developers of gmath lib will have more comment on G2C issues



On Sat, Dec 8, 2012 at 9:34 AM, 王德辉 <dehuiw at gig.ac.cn> wrote:

> Hi all!
> compilation error in ubuntu12.10 x64
> GRASS 7.0.svn
> (nc_spm_08):/usr/local/grass-addons/grass7/imagery/i.spec.unmix > sudo make
> MODULE_TOPDIR=/usr/local/grass-7.0.svn
> gcc  -g -O2   -I/usr/local/grass-7.0.svn/include
> -I/usr/local/grass-7.0.svn/include  -D_FILE_OFFSET_BITS=64
> -DPACKAGE=\""grassmods"\"   -I/usr/local/grass-7.0.svn/include
> -I/usr/local/grass-7.0.svn/include -o
> OBJ.x86_64-unknown-linux-gnu/la_extra.o -c la_extra.c
> In file included from /usr/local/grass-7.0.svn/include/grass/la.h:34:0,
>                  from la_extra.c:12:
> /usr/include/g2c.h:21:1: error: unknown type name ‘__g77_integer’
> /usr/include/g2c.h:22:1: error: unknown type name ‘__g77_uinteger’
> /usr/include/g2c.h:29:1: error: unknown type name ‘__g77_integer’
> /usr/include/g2c.h:33:1: error: unknown type name ‘__g77_longint’
> /usr/include/g2c.h:34:1: error: unknown type name ‘__g77_ulongint’
> /usr/include/g2c.h:55:1: error: unknown type name ‘__g77_integer’
> /usr/include/g2c.h:56:1: error: unknown type name ‘__g77_integer’
> /usr/include/g2c.h:57:1: error: unknown type name ‘__g77_integer’
> la_extra.c: In function ‘G_matvect_get_column2’:
> la_extra.c:22:2: warning: format not a string literal and no format
> arguments [-Wformat-security]
> la_extra.c:27:2: warning: format not a string literal and no format
> arguments [-Wformat-security]
> la_extra.c:32:2: warning: format not a string literal and no format
> arguments [-Wformat-security]
> la_extra.c: In function ‘mv_mlt’:
> la_extra.c:257:9: warning: assignment from incompatible pointer type
> [enabled by default]
> la_extra.c: In function ‘G_vector_product’:
> la_extra.c:396:2: warning: format not a string literal and no format
> arguments [-Wformat-security]
> la_extra.c:401:2: warning: format not a string literal and no format
> arguments [-Wformat-security]
> la_extra.c:406:2: warning: format not a string literal and no format
> arguments [-Wformat-security]
> la_extra.c:411:2: warning: format not a string literal and no format
> arguments [-Wformat-security]
> la_extra.c:417:2: warning: format not a string literal and no format
> arguments [-Wformat-security]
> la_extra.c:423:2: warning: format not a string literal and no format
> arguments [-Wformat-security]
> la_extra.c: In function ‘G_matrix_read2’:
> la_extra.c:470:2: warning: format not a string literal and no format
> arguments [-Wformat-security]
> la_extra.c:480:6: warning: format not a string literal and no format
> arguments [-Wformat-security]
> la_extra.c:486:3: warning: format not a string literal and no format
> arguments [-Wformat-security]
> make: *** [OBJ.x86_64-unknown-linux-gnu/la_extra.o] Error 1
>
> Thanks!
> dehui
>
>
>
>
>
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
>


-- 
Regards,
   Rashad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20121208/4e1f67c1/attachment.html>


More information about the grass-user mailing list