[rrd-users] Re: pblm compiling 1.2.8 on HP-UX
Tobias Oetiker
oetiker at ee.ethz.ch
Tue May 17 18:37:05 MEST 2005
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