[Nagiosplug-devel] Nagiosplug-devel Digest, Vol 21, Issue 7
Matthias.Broenner at systemagmbh.de
Matthias.Broenner at systemagmbh.de
Mon Feb 11 17:36:37 CET 2008
Hello Holger,
i removed the line from 108-111 in utils_base.c. Now "make" goes on :) ...
until next error....
cc -g -o check_nagios check_nagios.o utils.o runcmd.o
-L/root/nagios-plugins-1.4.11/plugins -L/opt/openssl/lib
../lib/libnagiosplug.a ../gl/libgnu.a
source='check_dns.c' object='check_dns.o' libtool=no \
DEPDIR=.deps depmode=hp /bin/sh ../build-aux/depcomp \
cc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H
-I. -I. -I.. -I.. -I../lib -I../gl -I../intl -I/opt/openssl/include
-I/opt/openssl/include -g -c check_dns.c
cpp: "common.h", line 224: warning 2002: Redefinition of param names for
macro __attribute__.
/bin/sh ../libtool --tag=CC --mode=link cc -g -L.
-L/opt/openssl/lib -o check_dns check_dns.o netutils.o utils.o
../lib/libnagiosplug.a ../gl/libgnu.a -ldce -lnsl runcmd.o
cc -g -o check_dns check_dns.o netutils.o utils.o runcmd.o
-L/root/nagios-plugins-1.4.11/plugins -L/opt/openssl/lib
../lib/libnagiosplug.a ../gl/libgnu.a -ldce -lnsl
source='check_by_ssh.c' object='check_by_ssh.o' libtool=no \
DEPDIR=.deps depmode=hp /bin/sh ../build-aux/depcomp \
cc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H
-I. -I. -I.. -I.. -I../lib -I../gl -I../intl -I/opt/openssl/include
-I/opt/openssl/include -g -c check_by_ssh.c
cpp: "common.h", line 224: warning 2002: Redefinition of param names for
macro __attribute__.
/bin/sh ../libtool --tag=CC --mode=link cc -g -L.
-L/opt/openssl/lib -o check_by_ssh check_by_ssh.o netutils.o utils.o
../lib/libnagiosplug.a ../gl/libgnu.a -ldce -lnsl runcmd.o
cc -g -o check_by_ssh check_by_ssh.o netutils.o utils.o runcmd.o
-L/root/nagios-plugins-1.4.11/plugins -L/opt/openssl/lib
../lib/libnagiosplug.a ../gl/libgnu.a -ldce -lnsl
source='check_swap.c' object='check_swap.o' libtool=no \
DEPDIR=.deps depmode=hp /bin/sh ../build-aux/depcomp \
cc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H
-I. -I. -I.. -I.. -I../lib -I../gl -I../intl -I/opt/openssl/include
-I/opt/openssl/include -g -c check_swap.c
cpp: "common.h", line 224: warning 2002: Redefinition of param names for
macro __attribute__.
/bin/sh ../libtool --tag=CC --mode=link cc -g -L.
-L/opt/openssl/lib -o check_swap check_swap.o -lm utils.o
../lib/libnagiosplug.a ../gl/libgnu.a popen.o
cc -g -o check_swap check_swap.o utils.o popen.o
-L/root/nagios-plugins-1.4.11/plugins -L/opt/openssl/lib -lm
../lib/libnagiosplug.a ../gl/libgnu.a
/usr/ccs/bin/ld: Unsatisfied symbols:
floorf (first referenced in check_swap.o) (code)
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
Kybelle:/root/nagios-plugins-1.4.11 #
>Message: 2
>Date: Mon, 11 Feb 2008 16:47:39 +0100
>From: Holger Weiss <holger at CIS.FU-Berlin.DE>
>Subject: Re: [Nagiosplug-devel] Nagiosplugins 1.4.11 on HP UX
>To: Nagios Plugins Development
> <nagiosplug-devel at lists.sourceforge.net>
>Message-ID: <20080211154739.GC40233203 at CIS.FU-Berlin.DE>
>Content-Type: text/plain; charset=us-ascii
>* Matthias.Broenner at systemagmbh.de [2008-02-11 15:28]:
>> cc: "utils_base.c", line 108: error 1649: Illegal integer-pointer
combination for >.
>> cc: "utils_base.c", line 108: error 1563: Expression in if must be
scalar.
>
>Ugh, that's indeed broken. A quick and dirty workaround for you would be
to
>delete the lines 108-111 in utils_base.c:
>
> if (*my_thresholds > 0) { /* Not sure why, but sometimes could
be -1 */
> /* printf("Freeing here: %d\n", *my_thresholds); */
> free(*my_thresholds);
> }
>
>Removing these lines creates a minor memory leak, but that won't be a
>problem in practice. A proper fix will require a little more work.
>
>Holger
>
Viele Grüße / Best Regards
Matthias Brönner
----------------------------------------------------------------------
--- [ Mitarbeiter / employee ] ---
Matthias Brönner
Tel.: +49 941 / 78392 - 11
Fax: +49 941 / 78392 - 72
Mailto: matthias.broenner at SYSTEMAGmbH.de
--- [ Standort / location ] ---
Schikanederstr. 2 B - Posthof, 93053 Regensburg, GERMANY
--- [ Firma / company ] ---
SYSTEMA Systementwicklung Dipl.-Inf. Manfred Austen GmbH
Manfred-von-Ardenne-Ring 6, 01099 Dresden, GERMANY
Handelsregister: HRB 5422 Amtsgericht Dresden
USt.-ID-Nr.: DE 159 607 786
Geschäftsführer: Herr Manfred Austen
http://www.SYSTEMAGmbH.de
----------------------------------------------------------------------
More information about the Devel
mailing list