[GRASS-dev] compilation of grass on AIX 7.1
glynn at gclements.plus.com
Wed Mar 27 20:49:30 PDT 2013
Markus Metz wrote:
> >>> After renaming the variable "nearest" to "nearesta" in lib/gis/plot.c it
> >>> worked.
> > I did the same on AIX 5.3 but we need a solution in SVN...
> Fixed in r55563.
It wasn't broken in the first place.
A "fix" would be for someone to care about AIX enough to figure out
which compiler switches are required to disable the non-standard
Or, conversely, assuming that "gcc -ansi" does that, to figure out
which switches are required to re-enable the relevant Unix-specific
declarations. E.g. for gcc on Linux:
-std=c99 -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=500
-std=c89 -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=500 -Dinline=
will work --without-ffmpeg (the FFMPEG headers use C99/C++ comments).
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev