Hi Daven, I'm not following the AIX portability issues, but in case you're interested in making Harmony buildable on AIX, welcome aboard! :) We will appreciate your help.
On the technical side: can you hack around the native/luni/unix/helpers.c to compile successfully on AIX? Is it the only build problem? If we will have the information what should be changed in linux native code to port it to AIX, we can then make another AIX-specific overlay in native/luni. Thanks, Aleksey. On Wed, Jan 7, 2009 at 11:36 AM, Deven You <[email protected]> wrote: > Hi, > I am trying to build java 6 branch on ppc aix 6.1, the svn url is > https://svn.apache.org/repos/asf/harmony/enhanced/classlib/branches/java6. > after a while I entered "ant -Dhy.no.thr=true" command, I got a error > message as below: > > build-native: > > -build-native-secondary: > [echo] Making "" in /deven/java6/modules/luni/src/main/native/luni/unix > [exec] cc -DAIX -DAIX_PPC32 -DHYPPC32 -D_Xconst="" > -DIPv6_FUNCTION_SUPPORT -D_REENTRANT -DHY_NO_THR > -I/deven/java6/deploy/include -I/deven/java6/deploy/jdk/include -I. > -I../shared/ -fpic -qcpluscmt -O3 -s -q mbcs -qlanglvl=extended -qarch=ppc > -qinfo=pro -qalias=noansi -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE > -D_LARGE_FILES -qsuppress=1500-010 -g -c -o ../shared/luni_copyright.o > ../shared/luni_copyright.c > [exec] cc -DAIX -DAIX_PPC32 -DHYPPC32 -D_Xconst="" > -DIPv6_FUNCTION_SUPPORT -D_REENTRANT -DHY_NO_THR > -I/deven/java6/deploy/include -I/deven/java6/deploy/jdk/include -I. > -I../shared/ -fpic -qcpluscmt -O3 -s -q mbcs -qlanglvl=extended -qarch=ppc > -qinfo=pro -qalias=noansi -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE > -D_LARGE_FILES -qsuppress=1500-010 -g -c -o ../shared/file.o > ../shared/file.c > [exec] cc -DAIX -DAIX_PPC32 -DHYPPC32 -D_Xconst="" > -DIPv6_FUNCTION_SUPPORT -D_REENTRANT -DHY_NO_THR > -I/deven/java6/deploy/include -I/deven/java6/deploy/jdk/include -I. > -I../shared/ -fpic -qcpluscmt -O3 -s -q mbcs -qlanglvl=extended -qarch=ppc > -qinfo=pro -qalias=noansi -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE > -D_LARGE_FILES -qsuppress=1500-010 -g -c -o procimpl.o procimpl.c > [exec] cc -DAIX -DAIX_PPC32 -DHYPPC32 -D_Xconst="" > -DIPv6_FUNCTION_SUPPORT -D_REENTRANT -DHY_NO_THR > -I/deven/java6/deploy/include -I/deven/java6/deploy/jdk/include -I. > -I../shared/ -fpic -qcpluscmt -O3 -s -q mbcs -qlanglvl=extended -qarch=ppc > -qinfo=pro -qalias=noansi -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE > -D_LARGE_FILES -qsuppress=1500-010 -g -c -o ../shared/nethelp.o > ../shared/nethelp.c > [exec] cc -DAIX -DAIX_PPC32 -DHYPPC32 -D_Xconst="" > -DIPv6_FUNCTION_SUPPORT -D_REENTRANT -DHY_NO_THR > -I/deven/java6/deploy/include -I/deven/java6/deploy/jdk/include -I. > -I../shared/ -fpic -qcpluscmt -O3 -s -q mbcs -qlanglvl=extended -qarch=ppc > -qinfo=pro -qalias=noansi -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE > -D_LARGE_FILES -qsuppress=1500-010 -g -c -o ../shared/floatbits.o > ../shared/floatbits.c > [exec] cc -DAIX -DAIX_PPC32 -DHYPPC32 -D_Xconst="" > -DIPv6_FUNCTION_SUPPORT -D_REENTRANT -DHY_NO_THR > -I/deven/java6/deploy/include -I/deven/java6/deploy/jdk/include -I. > -I../shared/ -fpic -qcpluscmt -O3 -s -q mbcs -qlanglvl=extended -qarch=ppc > -qinfo=pro -qalias=noansi -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE > -D_LARGE_FILES -qsuppress=1500-010 -g -c -o helpers.o helpers.c > [exec] "helpers.c", line 45.10: 1506-296 (S) #include file * > <asm/types.h>* not found. > [exec] "helpers.c", line 46.10: 1506-296 (S) #include file * > <linux/netlink.h>* not found. > [exec] "helpers.c", line 47.10: 1506-296 (S) #include file * > <linux/rtnetlink.h>* not found. > > Obviously, our luni native code use some linux header files, but the build > on aix environment. I wonder if anyone ever build on aix and had the same > issue. If you have the solution, please help me to solve this issue. > > Best Regards, > > Deven >
