This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] libiberty build failure after upgrade to autoconf 2.57
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Joel Brobecker <brobecker at gnat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 3 Sep 2003 18:16:58 -0400
- Subject: Re: [RFC] libiberty build failure after upgrade to autoconf 2.57
- References: <20030903220907.GC925@gnat.com>
On Wed, Sep 03, 2003 at 03:09:07PM -0700, Joel Brobecker wrote:
> Hello,
>
> I noticed that GDB failed trying to build clock.c in libiberty because
> the declaration of function "clock" in clock.c was conflicting with
> the declaration of "clock" in /usr/include/sys/time.h. Since libiberty
> is shared between GDB and GCC, presumably the same failure applies on
> GCC as well.
Dave Anglin checked in a patch for this this morning, I believe.
> I'm not really sure how this should be fixed. Should it be fixed in
> autoconf for instance? Or should we use a custom test for "clock"
> in libiberty/configure.in? Or should we simply use the standard
> function check except on HP/UX were we know that "clock" is provided.
Should really be fixed in autoconf, IMO.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer