[GRASS-dev] compilation of grass on AIX 7.1

Ivan Barka ivan.barka at gmail.com
Wed Mar 27 06:50:32 PDT 2013


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 <neteler at osgeo.org>

>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20130327/1ad5039d/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diglib_gmake.txt
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20130327/1ad5039d/attachment.txt>


More information about the grass-dev mailing list