From owner-freebsd-questions Tue Dec 17 11:30:29 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA13289 for questions-outgoing; Tue, 17 Dec 1996 11:30:29 -0800 (PST) Received: from onyx.interactive.net (root@onyx.interactive.net [208.192.224.6]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id LAA13148 for ; Tue, 17 Dec 1996 11:29:34 -0800 (PST) Received: from luddite.org (host030.madison.interactive.net [208.192.224.130]) by onyx.interactive.net (8.8.3/8.8.2) with ESMTP id OAA19155; Tue, 17 Dec 1996 14:29:01 -0500 (EST) Received: (from sachs@localhost) by luddite.org (8.7.5/8.7.3) id OAA00394; Tue, 17 Dec 1996 14:28:59 -0500 (EST) To: questions@FreeBSD.org CC: tjb@fnbc.com Subject: Re: Anyone built gcc 2.7.2.1 on FreeBSD? References: <20786.9612170952@lihuge.fnbc.co.uk> X-Face: +i14.(3OL6caXxAJslm\+OS:-ckkfx6J6UzO>df-4b#2+d{+TH;5DC9Nc1Z7'1>s^AZ"HG7 Av0@MtZ81SyDECC9S"PEo%s"dY4&Hud:w!PjnmT,FL2Sv(5oI7Y"l;|1rf:^'n$Ghg~?x3hanxCg"N ))JT[Ja%$#"Ou)FSb(2#e3*\xq{R;b]Ur8$!%w~t4|q@<_xKd??D~Zf(r! p#GC$,Cdm:$OdYL&B!;V%Ei^{N)96)[{pWI{@{ZsEn%oMxJ><(7-!YJ\`fx Mime-Version: 1.0 (generated by tm-edit 7.89) Content-Type: text/plain; charset=US-ASCII From: Jay Sachs Date: 17 Dec 1996 14:28:58 -0500 In-Reply-To: Tim Bissell's message of Tue, 17 Dec 96 09:52:10 GMT Message-ID: <8720cp9dhh.fsf@luddite.org> Lines: 55 X-Mailer: Gnus v5.2.40/XEmacs 19.14 Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Tim Bissell writes: >Has anyone there built gcc 2.7.2.1 (or any gcc > 2.6.3) on FreeBSD 2.x? I can >build it and use it, but get occasional compiler warnings because it uses its >own stddef.h in preference to /usr/include/stddef.h, which results in warnings >about empty definitions in sys/types.h. > >The problem appears to be that the GNU stddef.h includes but >then redefines defines _BSD_SIZE_T_ and _BSD_SSIZE_T_ to empty strings, rather >than "int" and "unsigned int", or undefining them completely. [...] >Anyone else been through this? I guess we should make the GNU maintainers of >gcc aware of the problem, because their code tries to cater for FreeBSD. Been there, done that. It turns out gcc isn't quite configured correctly for FreeBSD. I sent this patch a month ago to g++-bugs. -jay *** stddef.h.orig Wed Nov 13 09:51:36 1996 --- stddef.h Wed Nov 13 09:50:54 1996 *************** *** 257,263 **** /* In 4.3bsd-net2, leave these undefined to indicate that size_t, etc. are already defined. */ ! #if defined(_ANSI_H_) /* The references to _GCC_PTRDIFF_T_, _GCC_SIZE_T_, and _GCC_WCHAR_T_ are probably typos and should be removed before 2.8 is released. */ #ifdef _GCC_PTRDIFF_T_ --- 257,263 ---- /* In 4.3bsd-net2, leave these undefined to indicate that size_t, etc. are already defined. */ ! #if defined(_ANSI_H_) || defined (_MACHINE_ANSI_H_) /* The references to _GCC_PTRDIFF_T_, _GCC_SIZE_T_, and _GCC_WCHAR_T_ are probably typos and should be removed before 2.8 is released. */ #ifdef _GCC_PTRDIFF_T_ *************** *** 285,291 **** #undef _WCHAR_T_ #undef _BSD_WCHAR_T_ #endif ! #endif /* _ANSI_H_ */ #endif /* __sys_stdtypes_h */ --- 285,291 ---- #undef _WCHAR_T_ #undef _BSD_WCHAR_T_ #endif ! #endif /* _ANSI_H_ || _MACHINE_ANSI_H_ */ #endif /* __sys_stdtypes_h */