Your monkinesses, please help me with a PGPLOT.pm install issue.

Below is the output from 'perl Makefile.PL' command, followed by the output from the make, and make test commands. I have the latest pgplot libraries installed, including the corrections for 64-bit architecture and the c-wrapper. All the demos run fine so this seems to be working.

My LD_LIBRARY_PATH env variable is set and includes the standard paths and the path for the pgplot libraries. MY PGPLOT_DIR env variable is also set... I am confused... :-s

---------------------------------- [njs@localhost ~/PGPLOT-2.20]$ perl Makefile.PL XDIR=/usr/lib64 ExtUtils::F77: Version 1.16 Loaded ExtUtils::F77 version 1.16 Found compiler g77 Found compiler gfortran ExtUtils::F77: Using system=Linux compiler=GFortran Runtime: -L/usr/lib/gcc/x86_64-redhat-linux/4.1.1 -L/usr/lib -lgfortra +n -lm -L/usr/lib/gcc/x86_64-redhat-linux/4.1.1 -lgcc ExtUtils::F77: Validating -L/usr/lib/gcc/x86_64-redhat-linux/4.1.1 -L/ +usr/lib -lgfortran -lm -L/usr/lib/gcc/x86_64-redhat-linux/4.1.1 -lgcc + [ok] ExtUtils::F77: Compiler: gfortran ExtUtils::F77: Cflags: -O Checking if your kit is complete... Looks good Writing Makefile for PGPLOT --------------------------------- [njs@localhost ~/PGPLOT-2.20]$ make cp PGPLOT.pm blib/lib/PGPLOT.pm /usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/lib/ +perl5/5.8.8/ExtUtils/typemap -typemap typemap PGPLOT.xs > PGPLOT.xsc + && mv PGPLOT.xsc PGPLOT.c Please specify prototyping behavior for PGPLOT.xs (see perlxs manual) gcc -c -I/usr/local/pgplot -D_REENTRANT -D_GNU_SOURCE -fno-strict-ali +asing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LAR +GEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe + -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param +=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"2.20\" -DXS_VERS +ION=\"2.20\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-mult +i/CORE" PGPLOT.c In file included from PGPLOT.xs:16: pgfun.c:47: warning: return type defaults to ‘int’ pgfun.c:53: warning: return type defaults to ‘int’ pgfun.c:60: warning: return type defaults to ‘int’ pgfun.c:67: warning: return type defaults to ‘int’ pgfun.c: In function ‘pgfunplot’: pgfun.c:168: warning: unused variable ‘retval’ In file included from PGPLOT.xs:18: arrays.c: In function ‘pack_element’: arrays.c:487: warning: label ‘errexit’ defined but not used arrays.c: In function ‘unpack1D’: arrays.c:517: warning: unused variable ‘work’ PGPLOT.c: In function ‘cpgconx’: pgfun.c:70: warning: control reaches end of non-void function PGPLOT.c: In function ‘cpgfunt’: pgfun.c:63: warning: control reaches end of non-void function PGPLOT.c: In function ‘cpgfuny’: pgfun.c:56: warning: control reaches end of non-void function PGPLOT.c: In function ‘cpgfunx’: pgfun.c:50: warning: control reaches end of non-void function PGPLOT.c: At top level: /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/patchlevel.h:122 +: warning: ‘local_patches’ defined but not used arrays.c: In function ‘unpack1D’: arrays.c:512: warning: ‘ivar’ may be used uninitialized in this functi +on arrays.c:516: warning: ‘uvar’ may be used uninitialized in this functi +on arrays.c:514: warning: ‘dvar’ may be used uninitialized in this functi +on arrays.c:513: warning: ‘fvar’ may be used uninitialized in this functi +on arrays.c:515: warning: ‘svar’ may be used uninitialized in this functi +on arrays.c: In function ‘pack2D’: arrays.c:249: warning: ‘nval’ may be used uninitialized in this functi +on arrays.c:245: warning: ‘array2’ may be used uninitialized in this func +tion Running Mkbootstrap for PGPLOT () chmod 644 PGPLOT.bs rm -f blib/arch/auto/PGPLOT/PGPLOT.so gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions - +fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic PGPLOT +.o -o blib/arch/auto/PGPLOT/PGPLOT.so \ -L/usr/lib64 -L/usr/local/pgplot -L/usr/local/lib -lpgplot +-lcpgplot -lX11 -lpng -L/usr/lib/gcc/x86_64-redhat-linux/4.1.1 -L/usr +/lib -lgfortran -lm -L/usr/lib/gcc/x86_64-redhat-linux/4.1.1 -lgcc +\ chmod 755 blib/arch/auto/PGPLOT/PGPLOT.so cp PGPLOT.bs blib/arch/auto/PGPLOT/PGPLOT.bs chmod 644 blib/arch/auto/PGPLOT/PGPLOT.bs Manifying blib/man3/PGPLOT.3pm --------------------------------------- [njs@localhost ~/PGPLOT-2.20]$ make test PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl Default Device for plot tests [recommend /XSERVE] ? /xs ============== Running test1.p ============== Can't load 'blib/arch/auto/PGPLOT/PGPLOT.so' for module PGPLOT: /usr/l +ocal/pgplot/libpgplot.so: undefined symbol: e_rsfe at /usr/lib64/perl +5/5.8.8/x86_64-linux-thread-multi/DynaLoader.pm line 230, <STDIN> lin +e 1. at test1.p line 3 Compilation failed in require at test1.p line 3, <STDIN> line 1. BEGIN failed--compilation aborted at test1.p line 3, <STDIN> line 1. ============== Running test2.p ============== Testing advanced point and line plot routines... PGPLOT module version 2.20 Can't locate auto/PGPLOT/pgqinf.al in @INC (@INC contains: blib/lib bl +ib/arch /Models/XSCORT/libraries /usr/lib64/perl5/site_perl/5.8.8/x86 +_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.7/x86_64-linux- +thread-multi /usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-mul +ti /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/li +b/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5 +/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_p +erl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr +/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/p +erl5/vendor_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/ven +dor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5 +.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8. +6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/li +b64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at +test2.p line 9 make: *** [test_dynamic] Interrupt
*** truncated to save space. All the test fail with this same error....
===============

Interestingly, if I install the module dispite the failed tests it doesn't complain even when I use the module... its only when I actually come to open a PGPLOT window that it fails....

/usr/bin/perl: symbol lookup error: /usr/local/pgplot/libpgplot.so: un +defined symbol: s_cat



In reply to Problems installing PGPLOT.pm by nickschurch

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.