[rrd-users] Re: pblm compiling 1.2.8 on HP-UX

Ford, Andy andyford at AGEDWARDS.com
Tue May 17 21:07:51 MEST 2005


OK the patch lets the compile complete.
However, a problem cropped up at runtime.

$ examples/4charts.pl             
/usr/lib/dld.sl: Unresolved symbol: art_vpath_add_point (code)  from /usr/local/rrdtool-1.2.8/lib/librrd.sl.2
ABORT instruction (core dumped)

During compilation I got the following worrisome-looking messages, so
I went back and reconfigured libart & libpng without the --disable-shared
flags, i.e. I created the shared libraries.
Now the examples run.
 
*** Warning: This system can not link to static lib archive /usr/local/lib/libpng.la.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: This system can not link to static lib archive /usr/local/lib/libart_lgpl_2.la.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
 

-----Original Message-----
From: Tobias Oetiker
To: Ford, Andy
Cc: rrd-users at list.ee.ethz.ch
Sent: 5/17/05 11:37 AM
Subject: Re: [rrd-users] Re: pblm compiling 1.2.8 on HP-UX

ok try this patch then

Index: bindings/perl-shared/Makefile.PL
===================================================================
--- bindings/perl-shared/Makefile.PL    (revision 523)
+++ bindings/perl-shared/Makefile.PL    (working copy)
@@ -4,7 +4,13 @@
 # the contents of the Makefile that is written.

 # Specify the location of the archive containing PIC compiled
object files.
-my $R = $^O eq 'linux' ? "-Wl,--rpath -Wl," : "-R" ;
+my $R = "-R" ;
+
+for ($^O){
+       /linux/ && do{ $R = "-Wl,--rpath -Wl,"};
+       /hpux/  && do{ $R = "+b"};
+}
+
 my $librrd = "-L../../src/.libs/ $R\$(RPATH) -lrrd";

 WriteMakefile(

>
Today Ford, Andy wrote:

> $^O is "hpux".
>
> The search path is -L, like everywhere else.
>
> I think the problem is that the runtime path option is different on
hp-ux.
> That's what your "-R" option is for, right?
> According to the ld man page, HP-UX wants to see "+b/run/time/path".
> "-R" is a offset, so it wants a number here.
>
> Andy
>
> -----Original Message-----
> From: Tobias Oetiker [mailto:oetiker at ee.ethz.ch]
> Sent: Tuesday, May 17, 2005 10:13 AM
> To: Ford, Andy
> Cc: rrd-users at list.ee.ethz.ch
> Subject: Re: [rrd-users] pblm compiling 1.2.8 on HP-UX
>
>
> Hi Andy,
>
> how does one specify the default search path for linking under
> HPUX? and what does perl -e 'print $^O' return
>
> gruss
> tobi
> Today Ford, Andy wrote:
>
> > make[4]: Entering directory
`/home/forda/src/rrdtool-1.2.8/bindings/perl-shared'
> > rm -f blib/arch/auto/RRDs/RRDs.sl
> > LD_RUN_PATH="" ld  -b -L/usr/local/lib RRDs.o -L../../src/.libs/
-R/usr/local/rrdtool-1.2.8/lib -lrrd -lm -o blib/arch/auto/RRDs/RRDs.sl
> > ld: Invalid numeric argument for -R/usr/local/rrdtool-1.2.8/lib
> > make[4]: *** [blib/arch/auto/RRDs/RRDs.sl] Error 1
> > make[4]: Leaving directory
`/home/forda/src/rrdtool-1.2.8/bindings/perl-shared'
> > make[3]: *** [perl_shared] Error 2
> > make[3]: Leaving directory `/home/forda/src/rrdtool-1.2.8/bindings'
> > make[2]: *** [all-recursive] Error 1
> > make[2]: Leaving directory `/home/forda/src/rrdtool-1.2.8/bindings'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/home/forda/src/rrdtool-1.2.8'
> > make: *** [all] Error 2
> >
>
>
>
>
------------------------------------------------------------------------
-------------
> A.G. Edwards & Sons' outgoing and incoming e-mails are electronically
> archived and subject to review and/or disclosure to someone other
> than the recipient.
>
>
------------------------------------------------------------------------
-------------
>
> --
> 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://lists.ee.ethz.ch/rrd-users
> WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi
>

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker @ ISG.EE, ETL F24.2, ETH, CH-8092 Zurich
 / // _ \/ _ \/ /  System Manager, Time Lord, Coder, Designer, Coach
/_/ \.__/_.__/_/   http://people.ee.ethz.ch/oetiker +41(0)44-632-5286

--
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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list