Subject: cross-compiling netbsd on AIX
To: None <>
From: Kamal R Prasad <>
List: current-users
Date: 05/22/2003 14:02:32
 in doing a cross-build of netbsd-current on AIX,  the following error 
needs me to tweak the compile to do an "-I $TOP/lib/libc/include". pl. 
tell me how that can be done. ie there is a that uses 
share/mk/bsd.*.mk and configure to arrive at the eventual stuff to be 
passed to cc <...>. so I don't know what exactly needs to be tweaked.
cc -O  -I. -I./include -I/home/kamal/netbsd/src/tools/compat 
"./include/err.h", line 1: 1506-229 (W) File is empty.
"./include/sys/featuretest.h", line 1: 1506-229 (W) File is empty.
    1500-030: (I) INFORMATION: getopt_long: Additional optimization may be 

ned by recompiling and specifying MAXMEM option with a value greater than 
mv getopt_long.lo.o getopt_long.lo
cc -O  -I. -I./include -I/home/kamal/netbsd/src/tools/compat 
"/home/kamal/netbsd/src/tools/compat/../../lib/libc/stdio/gettemp.c", line 

: 1506-296 (S) #include file "reentrant.h" not found.
*** Error code 1

nbmake: stopped in /home/kamal/netbsd/src/tools/compat
also, on AIX, /usr/include/sys/mtio.h is named as mdio.h (and I had to put 

a symlink) to get past the checks.
gnu.tar.gz obtained from gives the following error:-
$ gzip -d gnu.tar.gz

gzip: gnu.tar.gz: unexpected end of file
 pl provide cksum gzip.tar.gz if possible so I can verify that I have 
right image.
thanks for any input.
Kamal R. Prasad
AIX Support & Test, IBM India Software Labs
Golden Enclave, Airport Road, Bangalore-560017, India
Phone : +91-80-5094963,  Internal Ext   : 2963
Jurassic Park III = data center made up of IBM raptors and T-Rex.