Your message dated Sat, 20 Jan 2007 14:35:24 -0600 (CST)
with message-id <[EMAIL PROTECTED]>
and subject line Bug#407462: pgplot5: Perl module compilation against cpgplot 
fails
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: pgplot5
Version: 5.2.2-8
Severity: normal


I'm attempting to install the Perl PGPLOT module, version 2.19.  It is
unable to link against cpgplot, with the following error message:


=======================================================================


% make
cp PGPLOT.pm blib/lib/PGPLOT.pm
/usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp  -typemap 
/usr/share/perl/5.8/ExtUtils/typemap -typemap typemap  PGPLOT.xs > PGPLOT.xsc 
&& mv PGPLOT.xsc PGPLOT.c
Please specify prototyping behavior for PGPLOT.xs (see perlxs manual)
cc -c  -I/usr/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN 
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"2.19\" -DXS_VERSION=\"2.19\" -fPIC 
"-I/usr/lib/perl/5.8/CORE"   PGPLOT.c
Running Mkbootstrap for PGPLOT ()
chmod 644 PGPLOT.bs
rm -f blib/arch/auto/PGPLOT/PGPLOT.so
cc  -shared -L/usr/local/lib PGPLOT.o  -o blib/arch/auto/PGPLOT/PGPLOT.so      \
           -L/usr/X11R6/lib -L/usr/lib -lpgplot -lcpgplot -lX11 
-L/usr/lib/gcc/x86_64-linux-gnu/3.4.6/../../../../lib -L/usr/lib -lg2c -lm 
-L/usr/lib/gcc/x86_64-linux-gnu/4.1.2 -lgcc          \
          
/usr/bin/ld: /usr/lib/libcpgplot.a(cpgarro.o): relocation R_X86_64_PC32 against 
`pgarro_' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status


=======================================================================

If I'm reading the error correctly, it looks like cpgplot needs to be
recompiled with -fPIC, even though it's a static library.




-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages pgplot5 depends on:
ii  libc6                     2.3.6.ds1-8    GNU C Library: Shared libraries
ii  libg2c0                   1:3.4.6-5      Runtime library for GNU Fortran 77
ii  libgcc1                   1:4.1.1-21     GCC support library
ii  libpng12-0                1.2.15~beta5-1 PNG library - runtime
ii  libx11-6                  2:1.0.3-4      X11 client-side library
ii  zlib1g                    1:1.2.3-13     compression library - runtime

pgplot5 recommends no packages.

-- no debconf information


--- End Message ---
--- Begin Message ---

Hi Diab:

On Thu, 18 Jan 2007, Diab Jerius wrote:

Package: pgplot5
Version: 5.2.2-8
Severity: normal


I'm attempting to install the Perl PGPLOT module, version 2.19.  It is
unable to link against cpgplot, with the following error message:


It turns out that PGPERL 2.18 is in Debian sarge as the "pgperl" package. It was removed for lack of a maintainer in 2005. I took a look and saw that in order to get it to compile on a Debian system, it is necessary to change the Makefile.PL in the PGPERL tarball in the way listed below. The problem is not in the Debian installation but in the way libcpgplot.a is searched for in the compilation.

That being said, I am closing this bug as the pgplot5 debian package seems to be OK and meets policy.

If you would like to see PGPERL back in Debian, it might be possible to get the Debian Perl Group to maintain it. I found it fairly straightforward to update the 2.18 sarge package to version 2.19 and to make it build on sid. Please let me know.

Carlo

--- libpgplot-perl-2.19.orig/Makefile.PL
+++ libpgplot-perl-2.19/Makefile.PL
@@ -75,19 +75,9 @@
     'NAME'     => 'PGPLOT',
     'PREREQ_PM' => { 'ExtUtils::F77' => 1.13 },
     'VERSION_FROM'     => 'PGPLOT.pm',
-     ($^O eq 'VMS' ? ('LIBS' => 'pgplot_dir:cpgplot.olb') :
-     (-d 'pgplot_tmp' ?
-        ('OBJECT' => '$(BASEEXT)$(OBJ_EXT) pgplot_tmp/libcpgplot.a '.
-                    'pgplot_tmp/libpgplot.a',
- 'LIBS' => [ join( ' ', $LIBDIRS, $LIBS, ExtUtils::F77->runtime ) ]
-       )
-      :
-      ('LIBS' => [ join( ' ', $LIBDIRS, $LIBS, ExtUtils::F77->runtime )])
-     )),
+    'LIBS' => [' -lcpgplot -lpgplot -lpng -L/usr/X11R6/lib -lX11 ' .
+              ExtUtils::F77->runtime],
     'DEFINE'   =>  ExtUtils::F77->trail_ ? "" : "-DNO_TRAILING_USCORE",
-    ($^O eq 'VMS' ? ('INC' => 'pgplot_dir:') : (
-    'INC'      => $IDIRS
-    )),
     'dist'      => { COMPRESS=>"gzip", SUFFIX=>"gz" },
     'DLEXT'     => $dlext,
     'depend'    => { '$(OBJECT)' => q[pgfun.c arrays.c PGPLOT.c]}



--
Carlo U. Segre -- Professor of Physics
Associate Dean for Special Projects, Graduate College
Illinois Institute of Technology
Voice: 312.567.3498            Fax: 312.567.3494
[EMAIL PROTECTED]    http://www.iit.edu/~segre    [EMAIL PROTECTED]

--- End Message ---

Reply via email to