[rrd-users] compiling rrdtool 1.3.4 on hp-ux 11.23

Stoyan Angelov s_angelov at filibeto.org
Fri Nov 7 17:48:47 CET 2008


On Nov 7, 2008, at 3:40 PM, Tobias Oetiker wrote:
> long time since I worked on HPUX ... you have to look at the output
> in config.log to figure what goes wrong ...
>
> as for your initial report, you may want to try removing the
> 'inline' keywords from rrd_update.c.
>
> cheers
> tobi

hello Tobias,

thank you for your answer. i removed the 'inline' keywords from  
rrd_update.c as you suggested and was able to successfully compile  
rrdtool-1.3.4 with hp's C/aC++ compiler. some additional libraries  
were needed, these can be obtained from the X11MotifDevKit.

if anyone is interested i can package the binaries as a "depot" and  
provide it.

additionally i tested the latest gcc binaries provided from hp (gcc  
4.3.2) and now configure's IEEE math checks pass:

IEEE Math Checks
checking for fpclassify... no
checking for fpclassify with <math.h>... no
checking for isinf... no
checking for isinf with <math.h>... yes
checking whether isfinite is broken... no
checking if IEEE math works out of the box... yes

however make fails with the error below:

  gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLOCALEDIR=\"/usr/local/rrdtool/ 
share/locale\" "-DRRD_DEFAULT_FONT=\"DejaVu Sans Mono,Bitstream Vera  
Sans Mono,monospace,Courier\"" -DNUMVERS=1.3004 - 
D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DPNG_NO_MMX_CODE -I/usr/local/ 
include/cairo -I/usr/local/include/libpng12 -I/usr/local/include/ 
pixman-1 -I/usr/local/include/freetype2 -I/usr/local/include - 
DPNG_NO_MMX_CODE -I/usr/local/include/pango-1.0 -I/usr/local/include/ 
cairo -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include - 
I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr/ 
local/include -I/usr/local/include/libpng12 -I/usr/include/libxml2 -I/ 
usr/local/include/libxml2 -g -O2 -D_GNU_SOURCE -fno-strict-aliasing - 
Wall -std=c99 -pedantic -Wundef -Wshadow -Wpointer-arith -Wcast-align - 
Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline - 
Wold-style-definition -W -fPIC -DPIC -MT rrd_update.lo -MD -MP - 
MF .deps/rrd_update.Tpo -c rrd_update.c  -fPIC -DPIC -o .libs/ 
rrd_update.o
rrd_update.c:284: warning: 'struct timeval' declared inside parameter  
list
rrd_update.c:284: warning: its scope is only this definition or  
declaration, which is probably not what you want
rrd_update.c: In function 'normalize_time':
rrd_update.c:286: error: dereferencing pointer to incomplete type
rrd_update.c:287: error: dereferencing pointer to incomplete type
rrd_update.c:288: error: dereferencing pointer to incomplete type
rrd_update.c: In function 'initialize_time':
rrd_update.c:301: error: storage size of 'tmp_time' isn't known
rrd_update.c:303: warning: implicit declaration of function  
'gettimeofday'
rrd_update.c:303: warning: nested extern declaration of 'gettimeofday'
rrd_update.c:301: warning: unused variable 'tmp_time'
rrd_update.c: In function 'rrd_update':
rrd_update.c:390: warning: implicit declaration of function 'strdup'
rrd_update.c:390: warning: nested extern declaration of 'strdup'
rrd_update.c:390: warning: assignment makes pointer from integer  
without a cast
rrd_update.c: In function '_rrd_update':
rrd_update.c:489: warning: assignment makes pointer from integer  
without a cast
rrd_update.c:502: warning: assignment makes pointer from integer  
without a cast
rrd_update.c: In function 'parse_template':
rrd_update.c:703: warning: assignment makes pointer from integer  
without a cast
rrd_update.c: In function 'get_time_from_reading':
rrd_update.c:919: error: storage size of 'tmp_time' isn't known
rrd_update.c:919: warning: unused variable 'tmp_time'
rrd_update.c: In function 'update_pdp_prep':
rrd_update.c:1083: warning: implicit declaration of function 'isnan'
gmake[2]: *** [rrd_update.lo] Error 1
gmake[2]: Leaving directory `/root/sources/rrdtool-1.3.4-hp-gcc/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/root/sources/rrdtool-1.3.4-hp-gcc'
gmake: *** [all] Error 2


greetings,

Stoyan Angelov




More information about the rrd-users mailing list