[Spread-users] Compiling issue on AIX

Christopher Browne cbbrowne at ca.afilias.info
Fri Aug 31 16:28:53 EDT 2007


Here's a minor issue in building version 4.0.0; I was doing a build on
AIX 5.3, using GCC, and was running into the following issue:

ydb1.int.libertyrms.com(cbbrowne): /opt/rg/data_dba/build-farm/cbbrowne-stuff/spread-src-4.0.0/examples # gmake
gcc -g -O2 -Wall -I. -I. -I../include   -DHAVE_CONFIG_H -c user.c
In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/include/sys/types.h:66,
                 from user.c:39:
/usr/include/sys/inttypes.h:619: error: duplicate 'short'
/usr/include/sys/inttypes.h:620: error: two or more data types in declaration specifiers
gmake: *** [user.o] Error 1

Ran into much the same with simple_user.c:

ydb1.int.libertyrms.com(cbbrowne): /opt/rg/data_dba/build-farm/cbbrowne-stuff/spread-src-4.0.0/examples # gmake simple_user.o
gcc -g -O2 -Wall -I. -I. -I../include   -DHAVE_CONFIG_H -c simple_user.c
In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/include/sys/types.h:66,
                 from /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/include/stdio.h:422,
                 from simple_user.c:46:
/usr/include/sys/inttypes.h:619: error: duplicate 'short'
/usr/include/sys/inttypes.h:620: error: two or more data types in declaration specifiers
gmake: *** [simple_user.o] Error 1

If I shift the #include for sp.h to *below* the #includes of system
includes, the various user-related tools then run and execute fine.

That sounds like a small change to make...
-- 
(reverse (concatenate 'string "ofni.secnanifxunil" "@" "enworbbc"))
http://www3.sympatico.ca/cbbrowne/x.html
"What we need is either less corruption, or more chance to participate
in it."  -- Unknown




More information about the Spread-users mailing list