[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Linux build fails with monit 4.4
From: |
Jan-Henrik Haukeland |
Subject: |
Re: Linux build fails with monit 4.4 |
Date: |
Wed, 9 Feb 2005 15:43:57 +0100 |
On Feb 8, 2005, at 15:18, Jani Mikkonen wrote:
Hiya, Long time no write ;)
Long time, indeed :-)
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)
I just built monit4.4 on FC2 and did not get this problem and if it was
a general problem I think we should have seen this before. It's true
that errno.h is not included. The reason is probably that errno.h
already is included via other include files such as stdio.h. Maybe your
fc2 install is not so vanilla as you think and that some header files
are missing? Anyway, I don't care to investigate this further since we
simply should include errno.h as you suggested.
--
Jan-Henrik Haukeland
mobile +47 97141255