[rrd-users] Re: hp rrd compile question

Stefan Mueller s.mueller at computer.org
Wed Jan 26 08:31:12 MET 2000


jason,
i downloaded rrdtool 1.0.10 (we're currently using an older version at
our site), to see how compilation works this time.

architecture:	hp v-class server (v2500), 22-way, 24 gigs memory
os:		hp-ux 11.00
compiler:	hp softbench (ansi c bundle b.11.01.01)

different to earlier releases, configure runs without any error. when i
started compiling, i run into the following problems:

- configure says 'checking for finite... (cached) no'. our system has a
isfinite function, so configure should add to config.h:
	#define HAVE_FINITE 1
	#define finite(a) isfinite(a)

- configure says 'checking for isinf... (cached) no'. our system has a
isinf function, so configure should add to config.h:
	#define HAVE_ISINF 1

- configure says 'checking for strftime... (cached) no'. but also
strftime exists, so:
	#define HAVE_STRFTIME 1

i've added those things to config/config.h manually. then compiling runs
just fine.

the next errors occur with the linker:
the hp-ux linker does not understand '-pedantic' (although the compiler
does).
so i've just linked manually. this generates the rrdtool binary.

i was still unable to create the perl rrd modules, i get the following
errors:

...
cp RRDs.pm blib/lib/RRDs.pm
        /usr/contrib/bin/perl -I/opt/perl5/lib/5.00503/PA-RISC2.0
-I/opt/perl5/lib/5.00503 /opt/perl5/lib/5.00503/ExtUtils/xsubpp 
-typemap /opt/perl5/lib/5.00503/ExtUtils/typemap RRDs.xs >xstmp.c && mv
xstmp.c RRDs.c
        cc -c -I../src -I../gd1.3 -D_HPUX_SOURCE -Aa -g -Wall
-pedantic     -DVERSION=\"1.000101\"  -DXS_VERSION=\"1.000101\" +z
-I/opt/perl5/lib/5.00503/PA-RISC2.0/CORE  RRDs.c
cc: warning 478: "-p" and "+z" are mutually exclusive. "-p" ignored.
Running Mkbootstrap for RRDs ()
        chmod 644 RRDs.bs
        LD_RUN_PATH="" ld -o blib/arch/auto/RRDs/RRDs.sl  -b
-L/usr/local/lib RRDs.o ../src/.libs/librrd_private.a -lm    
ld: Invalid loader fixup in text space needed in output file for symbol
"$000000D7" in input file "../src/.libs/librrd_private.a(rrd_graph.o)"
*** Error exit code 1

Stop.



i've got no solution for this at the moment. fortunately i just need
rrdtool, and not the perl modules.

the whole thing is quite hacky -- but after all, i'm lucky it's working.
i guess the main problems are based on built in autoconf tests (perhaps
except the '-pedantic' error).

so far...
/stefan




Jason Smith wrote:
> 
> I am trying to compile RRD on an HPUX 11 machine, and I noticed your emails
> regarding the HAVE_FINITE and HAVE_ISINF function problems . . .
> 
> Just was wondering if there has been a resolution to this problem, or should
> I just put off trying to get this to work for now . . . I am not much of a
> programmer, but the temporary fix that Stefan mentioned seemed to work while
> I was building 1.0.10 . . . there were several other errors which I figured
> a way around . . . that is the 'make install' was trying to chmod/chown
> files that were not in the proper dirs . . .
> 
> After that install finished . . . now when using rrdtool I get the following
> errors while trying to create graphs from my rrd data . . .
> 
> libpng error: Read Error
> 
> Anything you can think of would be useful . . .
> Thanks

--
stefan mueller
address: steinstrasse 38, 8003 zuerich, switzerland
phone:   +41 1 4625458 (home), +41 1 8123895 (office)
email:   s.mueller at computer.org

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users



More information about the rrd-users mailing list