Hi hack...@freebsd.org
with amd64, but not with i386,
/sys/amd64/conf/GENERIC COMPAT_FREEBSD7 is an undocemneted
pre-requisite for COMPAT_IA32
(so those who enable COMPAT_IA32 for ports/emulators, but disable
COMPAT_FREEBSD7 as they compile all binaries on upgrade, will trip
up on it as I did).  Currently I see:

cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g -Wall 
-Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 
-Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign 
-fformat-extensions -nostdinc  -I. -I../../.. -I../../../contrib/altq -D_KERNEL 
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common 
-finline-limit=8000 --param inline-unit-growth=100 --param 
large-function-growth=1000  -fno-omit-frame-pointer -mcmodel=kernel 
-mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow  
-msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector 
-Werror  ../../../compat/freebsd32/freebsd32_misc.c
cc1: warnings being treated as errors
../../../compat/freebsd32/freebsd32_misc.c: In function 'freebsd32_semsys':
../../../compat/freebsd32/freebsd32_misc.c:1420: warning: implicit declaration 
of function 'freebsd7_freebsd32_semctl'
../../../compat/freebsd32/freebsd32_misc.c:1420: warning: nested extern 
declaration of 'freebsd7_freebsd32_semctl'
...
../../../compat/freebsd32/freebsd32_misc.c:1845: error: dereferencing pointer 
to incomplete type
*** Error code 1

It could be documented in GENERIC, but better to fix it.  I could
dig through sources, but I think there's people closer to config
who would prefer to commit their own fix, rather than me write a patch ?
(Does that translate as "I'm lazy" ? ;-)

Cheers,
Julian
--
Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com
Mail plain text,  Not HTML quoted-printable Base64 http://www.asciiribbon.org
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to