Subject: cross-build netbsd on AIX
To: None <tech-kern@netbsd.org>
From: Kamal R Prasad <kamalrpr@in.ibm.com>
List: tech-kern
Date: 05/22/2003 13:07:15
Hello,
 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 build.sh 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 
-DHAVE_CONFIG_H  -D
_FILE_OFFSET_BITS=64 -D_NETBSD_SOURCE -D__DBINTERFACE_PRIVATE -c -o 
getopt_long.
lo.o 
/home/kamal/netbsd/src/tools/compat/../../lib/libc/stdlib/getopt_long.c
"./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 
attai
ned by recompiling and specifying MAXMEM option with a value greater than 
2048.
mv getopt_long.lo.o getopt_long.lo
cc -O  -I. -I./include -I/home/kamal/netbsd/src/tools/compat 
-DHAVE_CONFIG_H  -D
_FILE_OFFSET_BITS=64 -D_NETBSD_SOURCE -D__DBINTERFACE_PRIVATE -c -o 
gettemp.lo.o
 /home/kamal/netbsd/src/tools/compat/../../lib/libc/stdio/gettemp.c
"/home/kamal/netbsd/src/tools/compat/../../lib/libc/stdio/gettemp.c", line 
62.10
: 1506-296 (S) #include file "reentrant.h" not found.
*** Error code 1

Stop.
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 ftp.netbsd.org 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.
regards
-kamal

------------------------------------------------------------------------------
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.