This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Bootstrap failure: fixtests.c fails to compile on solaris2
- To: bkorb at gnu dot org
- Subject: Bootstrap failure: fixtests.c fails to compile on solaris2
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Sun, 27 May 2001 11:23:07 -0400 (EDT)
- Cc: bkorb at pacbell dot net, gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
> 2001-05-26 Bruce Korb <bkorb@gnu.org>
>
> * fixinc/fixtests.c(stdc_0_in_system_headers_test): in
> testing mode, always apply the fix
The above patch broke solaris2 when it tried to compile fixtests.c:
> "fixtests.c", line 123: undefined symbol: pz_machine
> cc: acomp failed for fixtests.c
> make.solaris2[3]: *** [fixtests.o] Error 2
The following patch was sufficient to allow bootstrap to proceed.
Ok to apply to trunk and branch?
--Kaveh
2001-05-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* fixinc/fixtests.c: Declare entries in ENV_TABLE.
diff -rup /tmp/foo/egcs-3.0-CVS20010527/gcc/fixinc/fixtests.c egcs-3.0-CVS20010527/gcc/fixinc/fixtests.c
--- /tmp/foo/egcs-3.0-CVS20010527/gcc/fixinc/fixtests.c Sat May 26 16:31:43 2001
+++ egcs-3.0-CVS20010527/gcc/fixinc/fixtests.c Sun May 27 10:54:30 2001
@@ -47,6 +47,10 @@ Boston, MA 02111-1307, USA. */
#include "fixlib.h"
+#define _ENV_(v,m,n,t) extern tCC* v;
+ENV_TABLE
+#undef _ENV_
+
typedef apply_fix_p_t t_test_proc PARAMS(( tCC* file, tCC* text ));
typedef struct {