[GRASS-dev] compilation of grass on AIX 7.1

Markus Neteler neteler at osgeo.org
Thu Jul 18 09:59:31 PDT 2013


Hi again on this topic,

I scanned the logs for (potential) errors and found a few:

cd lib/gis/
gmake
gcc -I/opt/freeware/include  -I/opt/freeware/include -g -O2  -fPIC
-I/opt/freeware/include
-I/gpfs/home/neteler/software/grass-7.0.svn/dist.powerpc-ibm-aix7.1.0.0/include
-I/gpfs/home/neteler/software/grass-7.0.svn/dist.powerpc-ibm-aix7.1.0.0/include
 -D_LARGE_FILES=1 -DGRASS_VERSION_DATE=\"'2013'\"
-DPACKAGE=\""grasslibs"\"
-I/gpfs/home/neteler/software/grass-7.0.svn/dist.powerpc-ibm-aix7.1.0.0/include
-I/gpfs/home/neteler/software/grass-7.0.svn/dist.powerpc-ibm-aix7.1.0.0/include
-o OBJ.powerpc-ibm-aix7.1.0.0/parser_interface.o -c parser_interface.c
parser_interface.c: In function 'print_escaped_for_xml':
parser_interface.c:67:2: warning: passing argument 2 of 'libiconv'
from incompatible pointer type [enabled by default]
/usr/opt/freeware/bin/../lib/gcc/../../include/iconv.h:83:15: note:
expected 'const char **' but argument is of type 'char **'

bash-3.2$ rpm -qa | grep icon
libiconv-1.14-2


gmake[4]: Entering directory
`/gpfs/home/neteler/software/grass-7.0.svn/lib/db/dbmi_driver'
...
lex  -t sqlp.l > sqlp.yy.c
5: (Warning) No translation given - null string assumed
209: (Warning) Executable statements should occur right after %%
210: (Warning) Executable statements should occur right after %%
211: (Warning) Executable statements should occur right after %%
512/1200 nodes(%e), 1160/5000 positions(%p), 159/2500 (%n), 36582 transitions
506/1000 packed char classes(%k)
1769/5000 packed transitions(%a)
2336/9096 output slots(%o)


gmake[4]: Entering directory
`/gpfs/home/neteler/software/grass-7.0.svn/lib/db/dbmi_base'
...
dirent.c:20:0: warning: "R_OK" redefined [enabled by default]
/usr/include/sys/access.h:52:0: note: this is the location of the
previous definition
dirent.c:21:0: warning: "W_OK" redefined [enabled by default]
/usr/include/sys/access.h:51:0: note: this is the location of the
previous definition
dirent.c:22:0: warning: "X_OK" redefined [enabled by default]
/usr/include/sys/access.h:50:0: note: this is the location of the
previous definition

The related definition in /usr/include/sys/access.h is:
#ifdef _POSIX_SOURCE
/*
 *  BSD defines
 */
#define F_OK    00              /* E_ACC does file exist */
#define X_OK    01              /* X_ACC is it executable by caller */
#define W_OK    02              /* W_ACC writable by caller */
#define R_OK    04              /* R_ACC readable by caller */
#endif /* _POSIX_SOURCE */


gmake[3]: Entering directory
`/gpfs/home/neteler/software/grass-7.0.svn/lib/imagery'
...
iclass_statistics.c: In function 'I_iclass_free_statistics':
iclass_statistics.c:114:5: warning: passing argument 1 of 'G_free'
discards 'const' qualifier from pointer target type [enabled by
default]
/gpfs/home/neteler/software/grass-7.0.svn/dist.powerpc-ibm-aix7.1.0.0/include/grass/defs/gis.h:77:6:
note: expected 'void *' but argument is of type 'const char *'
iclass_statistics.c:115:5: warning: passing argument 1 of 'G_free'
discards 'const' qualifier from pointer target type [enabled by
default]
/gpfs/home/neteler/software/grass-7.0.svn/dist.powerpc-ibm-aix7.1.0.0/include/grass/defs/gis.h:77:6:
note: expected 'void *' but argument is of type 'const char *'


gmake[4]: Entering directory
`/gpfs/home/neteler/software/grass-7.0.svn/raster/r.clump'
...
clump.c: In function 'clump':
clump.c:68:5: warning: passing argument 1 of 'time' from incompatible
pointer type [enabled by default]
/usr/include/time.h:142:20: note: expected 'time_t *' but argument is
of type 'long int *'
clump.c: In function 'print_time':
clump.c:258:5: warning: passing argument 1 of 'time' from incompatible
pointer type [enabled by default]
/usr/include/time.h:142:20: note: expected 'time_t *' but argument is
of type 'long int *'

The related definition in /usr/include/time.h is:
#ifndef _KERNEL
    extern time_t       time(time_t *);
#endif /* _KERNEL */

Suggestions/fixes welcome,

Markus


More information about the grass-dev mailing list