[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Linux build fails with monit 4.4
From: |
Rory Toma |
Subject: |
Re: Linux build fails with monit 4.4 |
Date: |
Tue, 8 Feb 2005 08:37:08 -0800 (PST) |
User-agent: |
SquirrelMail/1.4.4 |
Add this to the process/sysdep_LINUX.c file
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
<quote who="Jani Mikkonen">
> Hiya, Long time no write ;)
>
> New job, new needs and back to monit and annoying people here ;)
>
> I just fetched 4.4 file and tried to build it in few different machines
> (vanilla fc2 with all updates and one older sot linux), and i noticed
> that there's a small bug that makes compilation not work.
>
> Problem seems be in process/sysdep_LINUX.c in line 131. Compile log below:
>
> gcc -c -static -O2 -Wall -D _REENTRANT -D HAVE_CPU_WAIT -DLINUX -I.
> -I./device -I./http -I./process -I./protocols process/sysdep_LINUX.c -o
> process/sysdep_LINUX.o
> process/sysdep_LINUX.c: In function `init_process_info_sysdep':
> process/sysdep_LINUX.c:131: error: `errno' undeclared (first use in this
> function)
> process/sysdep_LINUX.c:131: error: (Each undeclared identifier is
> reported only once
> process/sysdep_LINUX.c:131: error: for each function it appears in.)
> make: *** [process/sysdep_LINUX.o] Error 1
>
> Here's the changes i made
>
> 46a47,51
> >
> > #ifdef HAVE_ERRNO_H
> > #include <errno.h>
> > #endif
> >
>
> Propably other sysdep_PLATFORM.c files have this same problem since only
> one that had errno.h included is one for HPUX ..
>
> --
> Jani Mikkonen - +358-40-5360953
> Emic Networks OY - http://www.emicnetworks.com
> Public PGP Key Available at www.keyserver.net
>
>
>
>
>
> _______________________________________________
> monit-dev mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/monit-dev
>
--
Rory Toma
Senior VP of Run Level 9
TRS-80 Networks, INC.