ttyp3:makoto@ibook 11:10:30/020603(...compile/GENERIC-sosend_loan-inseucre-gcc3)# time make gcc3 -msoft-float -ffreestanding -O2 -Wreturn-type -Werror -Wall \ -Wno-main -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes \ -Wno-uninitialized -Dmacppc -I. -I../../../../arch \ -I../../../.. -nostdinc -DLKM -DDIAGNOSTIC -DTRAP_PANICWAIT \ -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c swapnetbsd.c In file included from machine/endian.h:3, from ../../../../sys/types.h:100, from ../../../../sys/param.h:90, from swapnetbsd.c:1: ../../../../sys/endian.h:46:1: warning: "_BIG_ENDIAN" redefined <command line>:18:1: warning: this is the location of the previous definition *** Error code 1 Stop. make: stopped in /export/netbsd-1-6/sys/arch/macppc/compile/GENERIC-sosend_loan-inseucre-gcc3 1.181u 0.837s 0:02.93 68.6% 0+0k 1+34io 128pf+0w ttyp3:makoto@ibook 11:10:35/020603(...compile/GENERIC-sosend_loan-inseucre-gcc3)#with gcc-3.0.4, we don't have the problem.
/usr/local/lib/gcc-lib/powerpc-unknown-netbsd1.5ZC/3.2/include/arpa/nameser.h
(3.0.4 == 3.2 for this file)
267 #ifndef BYTE_ORDER 268 #if (BSD >= 199103) 269 # include <machine/endian.h> 270 #else 271 #ifdef __linux__ 272 # include <endian.h> 273 #else 274 #define LITTLE_ENDIAN 1234 /* least-significant byte first (vax, pc) */ 275 #define BIG_ENDIAN 4321 /* most-significant byte first (IBM, net) */ 276 #define PDP_ENDIAN 3412 /* LSB first in word, MSW first in long (pdp)*/ 277 278 #if defined(vax) || defined(ns32000) || defined(sun386) || defined(i386) || \ 279 defined(MIPSEL) || defined(_MIPSEL) || defined(BIT_ZERO_ON_RIGHT) || \ 280 defined(__alpha__) || defined(__alpha) || defined(__vax__) 281 #define BYTE_ORDER LITTLE_ENDIAN 282 #endif
Last Update
19:52:54 03/12/08 Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected]) Apache/2.4.62 (Unix) OpenSSL/3.0.12 (since 2002/06/04)