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

This is a discussion on [rrd-users] Re: pblm compiling 1.2.8 on HP-UX within the RRD Users forums, part of the Networking and Network Related category; ok try this patch then Index: bindings/perl-shared/Makefile.PL ================================================== ================= --- bindings/perl-shared/Makefile.PL (revision 523) +++ bindings/perl-...


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-17-2005
Tobias Oetiker
 
Posts: n/a
Default [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@ee.ethz.ch]
> Sent: Tuesday, May 17, 2005 10:13 AM
> To: Ford, Andy
> Cc: rrd-users@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@list.ee.ethz.ch?subject=unsubscribe
> Help mailto:rrd-users-request@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@list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request@list.ee.ethz.ch?subject=help
Archive http://lists.ee.ethz.ch/rrd-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi

Reply With Quote
  #2 (permalink)  
Old 06-06-2005
madhu
 
Posts: n/a
Default Re: pblm compiling 1.2.8 on HP-UX

Could you please type the unix command to apply this patch

I believe it might be patch < this_patch_file

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:35 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0