This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] libiberty build failure after upgrade to autoconf 2.57


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]