Package: rrdtool
Severity: normal
Tags: patch

When building 'rrdtool' on amd64 with gcc-4.0,
I get the following error:

cc -c  -I.. -I../src -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN 
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -O2   -DVERSION=\"1.000491\" 
-DXS_VERSION=\"1.000491\" -fPIC "-I/usr/lib/perl/5.8/CORE"  -DPERLPATCHLEVEL=8 
RRDs.c
In file included from ../src/rrd_tool.h:25,
                 from RRDs.xs:13:
../src/config_aux.h:8:1: warning: "strchr" redefined
In file included from /usr/include/string.h:375,
                 from /usr/lib/perl/5.8/CORE/perl.h:488,
                 from RRDs.xs:6:
/usr/include/bits/string2.h:390:1: warning: this is the location of the 
previous definition
In file included from ../src/rrd_tool.h:25,
                 from RRDs.xs:13:
../src/config_aux.h:80:2: error: #error "Can't compile without finite function"
../src/config_aux.h:84:2: error: #error "Can't compile without isinf function"
make[1]: *** [RRDs.o] Error 1
make[1]: Leaving directory `/rrdtool-1.0.49/perl-shared'
make: *** [build-stamp] Error 2

With the attached patch 'rrdtool' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/rrdtool-1.0.49/src/config_aux.h ./src/config_aux.h
--- ../tmp-orig/rrdtool-1.0.49/src/config_aux.h 2004-08-08 12:58:06.000000000 
+0200
+++ ./src/config_aux.h  2005-02-10 20:45:24.135001034 +0100
@@ -77,11 +77,11 @@
 #endif
 
 #ifndef HAVE_FINITE
-#error "Can't compile without finite function"
+//#error "Can't compile without finite function"
 #endif
 
 #ifndef HAVE_ISINF
-#error "Can't compile without isinf function"
+//#error "Can't compile without isinf function"
 #endif
 
 #endif /* CONFIG_AUX_H */


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to