Message-Id: <email address hidden>
Date: Wed, 16 Mar 2005 21:13:48 +0000
From: Scott James Remnant <email address hidden>
To: <email address hidden>, Adam Heath <email address hidden>
Cc: Andreas Jochens <email address hidden>
Subject: Re: Bug#299699: dpkg: FTBFS (amd64/gcc-4.0): array type has
incomplete element type
On Tue, 2005-03-15 at 17:48 -0600, Adam Heath wrote:
> On Tue, 15 Mar 2005, Andreas Jochens wrote:
>=20
> > the latest version of gcc-4.0 is even more restrictive than the previou=
s
> > ones. There is a new error message 'array type has incomplete element t=
ype'
> > for constructs like 'extern struct st x[];' when 'struct st' has not
> > been defined.
> >
> > The attached patch includes the patch from BTS bug #282669. This part h=
as
> > already been applied to 'experimental' (thanks!).
> I don't agree with the patch; move the struct definition.
>=20
The fieldinfo struct definition includes members of a function typedef
which have struct fieldinfo pointers as arguments.
Moving the definition of the extern arrays to the bottom of the file
(while retaining the fieldinfo struct prototype at the top) is the right
solution.
Scott
--=20
Have you ever, ever felt like this?
Had strange things happen? Are you going round the twist?
--=-5lZDfOS506+d3eIl4dqP
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
Message-Id: <email address hidden>
Date: Wed, 16 Mar 2005 21:13:48 +0000
From: Scott James Remnant <email address hidden>
To: <email address hidden>, Adam Heath <email address hidden>
Cc: Andreas Jochens <email address hidden>
Subject: Re: Bug#299699: dpkg: FTBFS (amd64/gcc-4.0): array type has
incomplete element type
--=-5lZDfOS506+ d3eIl4dqP Transfer- Encoding: quoted-printable
Content-Type: text/plain
Content-
On Tue, 2005-03-15 at 17:48 -0600, Adam Heath wrote:
> On Tue, 15 Mar 2005, Andreas Jochens wrote:
>=20
> > the latest version of gcc-4.0 is even more restrictive than the previou=
s
> > ones. There is a new error message 'array type has incomplete element t=
ype'
> > for constructs like 'extern struct st x[];' when 'struct st' has not
> > been defined.
> >
> > The attached patch includes the patch from BTS bug #282669. This part h=
as
> > already been applied to 'experimental' (thanks!).
> I don't agree with the patch; move the struct definition.
>=20
The fieldinfo struct definition includes members of a function typedef
which have struct fieldinfo pointers as arguments.
Moving the definition of the extern arrays to the bottom of the file
(while retaining the fieldinfo struct prototype at the top) is the right
solution.
Scott
--=20
Have you ever, ever felt like this?
Had strange things happen? Are you going round the twist?
--=-5lZDfOS506+ d3eIl4dqP pgp-signature; name=signature.asc Description: This is a digitally signed message part
Content-Type: application/
Content-
-----BEGIN PGP SIGNATURE-----
P3IStZ2wRAvuyAK CTemwCadekvfsqh tng3jQzYGdEYwCe Jk/u g7yxS0bI=
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQBCOKGMIex
wJkOxf4bTl6hJcj
=8cdF
-----END PGP SIGNATURE-----
--=-5lZDfOS506+ d3eIl4dqP- -