Hi devs,
I tried again recent grass7 on AIX 7.1 with gcc.
I had error in lib/gis:
gcc -lstdc++
-I/gpfs/home/senko/dev/grass/grass7/dist.powerpc-ibm-aix7.1.0.0/include
-I/gpfs/home/senko/dev/grass/grass7/dist.powerpc-ibm-aix7.1.0.0/include
-D_FILE_OFFSET_BITS=64 -DGRASS_VERSION_DATE=\"'2013'\"
-DPACKAGE=\""grasslibs"\"
-I/gpfs/home/senko/dev/grass/grass7/dist.powerpc-ibm-aix7.1.0.0/include
-I/gpfs/home/senko/dev/grass/grass7/dist.powerpc-ibm-aix7.1.0.0/include -o
OBJ.powerpc-ibm-aix7.1.0.0/plot.o -c plot.c
plot.c:34:15: error: conflicting types for 'nearest'
/usr/opt/freeware/bin/../lib/gcc/powerpc-ibm-aix7.1.0.0/4.6.1/include-fixed/math.h:1397:21:
note: previous declaration of 'nearest' was here
gmake: *** [OBJ.powerpc-ibm-aix7.1.0.0/plot.o] Error 1
After renaming the variable "nearest" to "nearesta" in lib/gis/plot.c it
worked.
But next strange error was in lib/vector/diglib:
if [ "" != "" -a -f "".html ] ; then gmake html ; fi
==============TEST=============
gmake test
gmake[1]: Entering directory
`/gpfs/home/senko/dev/grass/grass7/lib/vector/diglib'
diff OBJ.powerpc-ibm-aix7.1.0.0/test.tmp test64.ok
diff: Missing newline at the end of file
OBJ.powerpc-ibm-aix7.1.0.0/test.tmp.
diff: Missing newline at the end of file test64.ok.
.......
gmake[1]: *** [test] Error 1
gmake[1]: Leaving directory
`/gpfs/home/senko/dev/grass/grass7/lib/vector/diglib'
gmake: *** [default] Error 2
Full output is in file diglib_gmake.txt
Thanks for any advice.
Ivan
2013/3/23 Markus Neteler <[email protected]>
>
> However, I think that this exercise is done since we cannot gain more
> on AIX 5.3. I hope that the code is AIX 7 ready at this point.
>
> I have documented the compilation steps here:
>
> http://grasswiki.osgeo.org/wiki/Talk:Compile_and_Install
> -> AIX compilation hints
> (configuration scripts for wget, PROJ4, GDAL, GRASS 6, and GRASS 7)
>
> http://grasswiki.osgeo.org/wiki/Compile_and_Install#AIX
> -> GRASS 7: Using the IBM xlc compiler
> -> GRASS 7: Using the GNU gcc compiler
>
> Ivan, could you please update from GRASS 7 SVN and try again?
>
> Markus
>
if [ "" != "" -a -f "".html ] ; then gmake html ; fi
==============TEST=============
gmake test
gmake[1]: Entering directory
`/gpfs/home/senko/dev/grass/grass7/lib/vector/diglib'
diff OBJ.powerpc-ibm-aix7.1.0.0/test.tmp test64.ok
diff: Missing newline at the end of file OBJ.powerpc-ibm-aix7.1.0.0/test.tmp.
diff: Missing newline at the end of file test64.ok.
1c1
< double ÿÿÿÿÿÿïÿdouble Ú|a2Uõ¿double double double
double Ú|a2Uõ?double ÿÿÿÿÿÿïfloat ÿÿÿfloat ©ª¿float
float float float ©ª?float ÿÿoff_t
off_t ë2¤øoff_t off_t Í[off_t
ÿÿÿlong long ë2¤ølong long Í[long
ÿÿÿint int ë2¤øint int Í[int
ÿÿÿshort short ÇÏshort short 90short
ÿchar char
char char {char
double ÿïÿÿÿÿÿÿdouble ¿õU2a|Údouble double double
double ?õU2a|Údouble ïÿÿÿÿÿÿfloat ÿÿÿfloat ¿ª©float
float float float ?ª©float ÿÿoff_t
off_t ø¤2ëoff_t off_t [Íoff_t
ÿÿÿlong long ø¤2ëlong long [Ílong
ÿÿÿint int ø¤2ëint int [Íint
ÿÿÿshort short ÏÇshort short 09short
ÿchar char
char char {char
---
> double ÿÿÿÿÿÿïÿdouble Ú|a2Uõ¿double double double
> double Ú|a2Uõ?double ÿÿÿÿÿÿïfloat ÿÿÿfloat ©ª¿float
> float float float ©ª?float
> ÿÿoff_t ÿÿÿÿoff_t ë2¤øÿÿÿÿoff_t off_t
> Í[ off_t ÿÿÿ long long ë2¤ølong
> long Í[long ÿÿÿint int ë2¤øint
> int Í[int ÿÿÿshort short ÇÏshort
> short 90short ÿchar char
char
> char {char double ÿïÿÿÿÿÿÿdouble
> ¿õU2a|Údouble double double double
> ?õU2a|Údouble ïÿÿÿÿÿÿfloat ÿÿÿfloat ¿ª©float float
> float float ?ª©float ÿÿoff_t
> ÿÿÿÿ off_t ÿÿÿÿø¤2ëoff_t off_t [Íoff_t
> ÿÿÿlong long ø¤2ëlong long
> [Ílong ÿÿÿint int ø¤2ëint int
> [Íint ÿÿÿshort short ÏÇshort short
> 09short ÿchar char
char char
> {char
gmake[1]: *** [test] Error 1
gmake[1]: Leaving directory
`/gpfs/home/senko/dev/grass/grass7/lib/vector/diglib'
gmake: *** [default] Error 2
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev