Date: Mon, 25 Jun 2007 17:50:08 +0400 From: Eygene Ryabinkin <rea-fbsd@codelabs.ru> To: freebsd-current@freebsd.org Subject: binutils/gas compilation problems on i386. Message-ID: <20070625135008.GC1055@void.codelabs.ru>
next in thread | raw e-mail | index | archive | help
Good day. Checked out today's -CURRENT and noticed that the gas utility fails to be built. The problem is in config/tc-i386.h:451 (and all files are relative to /usr/src/contrib/binutils/gas): ----- extern const struct relax_type md_relax_table[]; ----- 'struct relax_type' is opaque when only as.h is used (line 608): ----- struct relax_type; ----- And, for example, file app.c uses only "as.h", but not the tc.h. Commenting the line 451 in config/tc-i386.h and adding the line ----- extern const relax_typeS TC_GENERIC_RELAX_TABLE[]; ----- to the write.c:2024 seems to solve the problem, but it looks like a hack. Any comments on this? -- Eygene
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070625135008.GC1055>