monit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linux build fails with monit 4.4


From: Jani Mikkonen
Subject: Linux build fails with monit 4.4
Date: Tue, 08 Feb 2005 16:18:26 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]