Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Peli
Posts: 5 Joined: Thu Jun 21, 2018 8:04 am
Post
by Peli » Thu Jun 21, 2018 8:14 am
Hello
I am not able to upgrade my nagios core installation from 4.3.4 to 4.4.0.
Code: Select all
nagios@nagios-test:/tmp/nagios-4.4.0$ make all
cd ./base && make
make[1]: Entering directory '/tmp/nagios-4.4.0/base'
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o nagios.o nagios.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o broker.o broker.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o nebmods.o nebmods.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o ../common/shared.o ../common/shared.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o query-handler.o query-handler.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o workers.o workers.c
workers.c: In function ‘wproc_run_job’:
workers.c:1173:106: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘ssize_t {aka int}’ [-Wformat=]
logit(NSLOG_RUNTIME_ERROR, TRUE, "wproc: '%s' seems to be choked. ret = %d; bufsize = %lu: written = %lu; errno = %d (%s)\n",
^
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o config.o config.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o commands.o commands.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o events.o events.c
Linux Debian is on latest build 9.4
Any ideas? Thank you for helping.
Christian
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Thu Jun 21, 2018 10:44 am
Did you run ./configure ?
Did you pass any additional flags to ./configure ?
Peli
Posts: 5 Joined: Thu Jun 21, 2018 8:04 am
Post
by Peli » Fri Jun 22, 2018 10:50 am
scottwilkerson wrote: Did you run ./configure ?
Did you pass any additional flags to ./configure ?
Yes, i run
Code: Select all
./configure --with-command-group=nagcmd
This worked for every upgrade yet.
Kind regards
Christian
Peli
Posts: 5 Joined: Thu Jun 21, 2018 8:04 am
Post
by Peli » Mon Jun 25, 2018 8:32 am
I have re-downloaded the source. But when compiling, i had the same error.
bheden
Product Development Manager
Posts: 179 Joined: Thu Feb 13, 2014 9:50 am
Location: Nagios Enterprises
Post
by bheden » Mon Jun 25, 2018 11:58 am
Peli,
Before attempting to install the 4.4.1 branch, can you run the following command (from the directory you run make all from) and try to recompile?
Code: Select all
sed -i 's/written, errno/(long unsigned int)written, errno/' base/workers.c
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new
Privacy Policy .
Nagios Enterprises
Senior Developer
Peli
Posts: 5 Joined: Thu Jun 21, 2018 8:04 am
Post
by Peli » Tue Jun 26, 2018 1:18 am
bheden wrote: Peli,
Before attempting to install the 4.4.1 branch, can you run the following command (from the directory you run make all from) and try to recompile?
Code: Select all
sed -i 's/written, errno/(long unsigned int)written, errno/' base/workers.c
Thank you for helping. This worked. After this command, compiling passed without error.
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Tue Jun 26, 2018 6:22 am
Excellent glad we could provide a fix.
bheden
Product Development Manager
Posts: 179 Joined: Thu Feb 13, 2014 9:50 am
Location: Nagios Enterprises
Post
by bheden » Tue Jun 26, 2018 9:35 am
4.4.1 was released yesterday - I would recommend upgrading to that version.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new
Privacy Policy .
Nagios Enterprises
Senior Developer