[rrd-users] perl-piped and perl-shared

Michele Michelotto michele.michelotto at pd.infn.it
Mon Aug 16 15:50:42 MEST 1999


Hello

I'm an happy user of MRTG and now i'm trying with rrdtool
I'm builfing 1.0.6 on hpux 10.20 with gcc and perl5.

I had some troubles because in the PATH I had a perl4
before a perl5 but I fixed it.

Now I got this problem:

When I do the make:

hpuxpd:rrdtool-1.0.6> make
No suffix list.
Making all in cgilib-0.4
Making all in config
No suffix list.
Making all in gd1.3
Making all in zlib-1.1.3
Making all in libpng-1.0.3
Making all in src
Making all in doc
Making all in examples
No suffix list.
Making all in contrib
No suffix list.
Making all in log2rrd
No suffix list.
Making all in rrd-file-icon
No suffix list.
Making all in trytime
No suffix list.
No suffix list.
No suffix list.
        cd perl-piped && make
        cd perl-shared && make
        LD_RUN_PATH="" ld -o blib/arch/auto/RRDs/RRDs.sl  -b
-L/usr/local/lib RRDs.o ../src/.libs/librrd_private.a    
ld: DP relative code in file ../src/.libs/librrd_private.a(getopt.o) -
shared library must be position
    independent.  Use +z or +Z to recompile.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.


If I go in the perl-shared directory I can reproduced the error:

hpuxpd:perl-shared> perl Makefile.PL
Writing Makefile for RRDs
hpuxpd:perl-shared> make test
        gcc -c -I../src -I../gd1.3 -D_HPUX_SOURCE -I/usr/local/include
-g     -DVERSION=\"1.000061\"  -DXS_VERSION=\"1.000061\" -fpic
-I/usr/local/lib/perl5/CORE  RRDs.c
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    
ld: DP relative code in file ../src/.libs/librrd_private.a(getopt.o) -
shared library must be position
    independent.  Use +z or +Z to recompile.
*** Error exit code 1

Stop.



Since the dynamic linking is not working I try with the static:

hpuxpd:perl-shared> perl Makefile.PL LINKTYPE=static
Writing Makefile for RRDs
hpuxpd:perl-shared> make test
        gcc -c -I../src -I../gd1.3 -D_HPUX_SOURCE -I/usr/local/include
-g     -DVERSION=\"1.000061\"  -DXS_VERSION=\"1.000061\" -fpic
-I/usr/local/lib/perl5/CORE  RRDs.c
        rm -rf blib/arch/auto/RRDs/RRDs.a
        ar cr blib/arch/auto/RRDs/RRDs.a RRDs.o && :
blib/arch/auto/RRDs/RRDs.a
        chmod 755 blib/arch/auto/RRDs/RRDs.a
Writing "Makefile.aperl" for this perl
Writing Makefile.aperl for RRDs
        make -f Makefile.aperl perl
Writing ./perlmain.c
        cd . && gcc -c  -I/usr/local/lib/perl5/CORE  -D_HPUX_SOURCE
-I/usr/local/include -g \
           -DVERSION=\"1.000061\" \
        -DXS_VERSION=\"1.000061\" -I/usr/local/lib/perl5/CORE perlmain.c
        cat
/afs/infn.it/asis/pd/hp_ux102/usr.local/lib/perl5/auto/DynaLoader/extralibs.ld
>> blib/arch/auto/RRDs/extralibs.all
        cat blib/arch/auto/RRDs/extralibs.ld >>
blib/arch/auto/RRDs/extralibs.all
        gcc -L/usr/local/lib -Wl,-E -Wl,-B,deferred  -o perl -g
./perlmain.o  blib/arch/auto/RRDs/RRDs.a 
/afs/infn.it/asis/pd/hp_ux102/usr.local/lib/perl5/auto/DynaLoader/DynaLoader.a
/usr/local/lib/perl5/CORE/libperl.a `cat
blib/arch/auto/RRDs/extralibs.all` -lnsl_s -lndbm -lgdbm -ldb -ldld -lm
-lc -lndir -lcrypt 
/usr/ccs/bin/ld: Unsatisfied symbols:
   rrd_create (code)
   rrd_graph (code)
   rrd_update (code)
   rrd_fetch (code)
   rrd_test_error (code)
   rrd_tune (code)
   rrd_last (code)
   rrd_clear_error (code)
   rrd_get_error (code)
collect2: ld returned 1 exit status
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.


So in both cases I have problems...

>From the rrdtool I see that I can live without perl-shared
How can I go on with the making rrdtool?


-- 
						 Michele
    |\      _,,,--,,_
    /,`.-'`'   ._  \-;;,_                     Michele Michelotto
   |,4-  ) )_   .;.(  `'-'                        INFN di Padova
  '---''(_/._)-'(_\_)                        Tel+39 049 827 7188
 I haven't lost my mind, it's backed up on tape somewhere.     ©

--
* To unsubscribe from the rrd-users mailing list, send a message with the
  subject: unsubscribe to rrd-users-request at list.ee.ethz.ch



More information about the rrd-users mailing list