libpgplot-perl and pgplot5 fortran compiler mismatch?

Bug #932259 reported by Peter Willendrup
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libpgplot-perl (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Hello there,

I develop the mcstas package (http://www.mcstas.org) that on Ubuntu systems has dependencies for pgplot5 and libpgplot-perl.

When plotting using our mcplot and mcdisplay perl scripts, the following error occurs:

/usr/bin/perl: symbol lookup error: /usr/lib/libpgplot.so.5: undefined symbol: XOpenDisplay

I have found that the bug is also a problem for the Horae package, see:
http://permalink.gmane.org/gmane.science.physics.ifeffit/979

I have found two different workarounds for the problem that could give an indication of the cause of the problem:

A) Install the pgplot5 package from http://debian-xray.iit.edu/ by following these steps:
        - Add this apt-get line to your /etc/apt/sources.list:
                deb http://debian-xray.iit.edu oneiric main contrib non-free
        - Run these commands in a terminal:
                sudo apt-get update
                sudo apt-get install -y --force-yes debian-xray-keyring
                sudo apt-get update
(The author of the 3rd party packages indicate that the problem could relate to different versions of gfortran used for the builds)

B) Rebuild the perl-pgplot package from CPAN sources:
        - Add a few build-dependencies to your system:
                sudo apt-get install gfortran libextutils-f77-perl libx11-dev
        - Get and install perl PGPLOT from CPAN by running these commands:
                wget http://search.cpan.org/CPAN/authors/id/K/KG/KGB/PGPLOT-2.21.tar.gz
                tar xzvf PGPLOT-2.21.tar.gz
                cd PGPLOT-2.21/ && perl Makefile.PL && make && sudo make install

Other info:

lsb_release -rd output:
Description: Ubuntu 11.10
Release: 11.10

apt-cache policy libpgplot-perl gives
libpgplot-perl:
  Installed: 1:2.21-2build1
  Candidate: 1:2.21-2build1
  Version table:
 *** 1:2.21-2build1 0
        500 http://dk.archive.ubuntu.com/ubuntu/ oneiric/universe i386 Packages
        100 /var/lib/dpkg/status

apt-cache policy pgplot5 gives
pgplot5:
  Installed: 5.2.2-17build1
  Candidate: 5.2.2-17build1
  Version table:
 *** 5.2.2-17build1 0
        500 http://dk.archive.ubuntu.com/ubuntu/ oneiric/multiverse i386 Packages
        100 /var/lib/dpkg/status

Best regards,

Peter Willendrup

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: libpgplot-perl 1:2.21-2build1
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic i686
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Tue Feb 14 19:47:47 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: libpgplot-perl
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Peter Willendrup (pkwi) wrote :
Revision history for this message
mzenzes (mzenzes) wrote :

still?

Revision history for this message
Peter Willendrup (pkwi) wrote : Re: [Bug 932259] libpgplot-perl and pgplot5 fortran compiler mismatch?
Download full text (3.7 KiB)

Hi again,

Just tested with a fresh 12.04 64bit - all looks OK on our behalf. Will mark the bug as resolved.

Best,

Peter Willendrup

On Oct 17, 2012, at 16:20 , mzenzes <<email address hidden><http://bugs.launchpad.net>> wrote:

still?

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/932259

Title:
 libpgplot-perl and pgplot5 fortran compiler mismatch?

Status in “libpgplot-perl” package in Ubuntu:
 New

Bug description:
 Hello there,

 I develop the mcstas package (http://www.mcstas.org) that on Ubuntu
 systems has dependencies for pgplot5 and libpgplot-perl.

 When plotting using our mcplot and mcdisplay perl scripts, the
 following error occurs:

 /usr/bin/perl: symbol lookup error: /usr/lib/libpgplot.so.5:
 undefined symbol: XOpenDisplay

 I have found that the bug is also a problem for the Horae package, see:
 http://permalink.gmane.org/gmane.science.physics.ifeffit/979

 I have found two different workarounds for the problem that could give
 an indication of the cause of the problem:

 A) Install the pgplot5 package from http://debian-xray.iit.edu/ by following these steps:
         - Add this apt-get line to your /etc/apt/sources.list:
                 deb http://debian-xray.iit.edu oneiric main contrib non-free
         - Run these commands in a terminal:
                 sudo apt-get update
                 sudo apt-get install -y --force-yes debian-xray-keyring
                 sudo apt-get update
 (The author of the 3rd party packages indicate that the problem could relate to different versions of gfortran used for the builds)

 B) Rebuild the perl-pgplot package from CPAN sources:
         - Add a few build-dependencies to your system:
                 sudo apt-get install gfortran libextutils-f77-perl libx11-dev
         - Get and install perl PGPLOT from CPAN by running these commands:
                 wget http://search.cpan.org/CPAN/authors/id/K/KG/KGB/PGPLOT-2.21.tar.gz
                 tar xzvf PGPLOT-2.21.tar.gz
                 cd PGPLOT-2.21/ && perl Makefile.PL && make && sudo make install

 Other info:

 lsb_release -rd output:
 Description: Ubuntu 11.10
 Release: 11.10

 apt-cache policy libpgplot-perl gives
 libpgplot-perl:
   Installed: 1:2.21-2build1
   Candidate: 1:2.21-2build1
   Version table:
  *** 1:2.21-2build1 0
         500 http://dk.archive.ubuntu.com/ubuntu/ oneiric/universe i386 Packages
         100 /var/lib/dpkg/status

 apt-cache policy pgplot5 gives
 pgplot5:
   Installed: 5.2.2-17build1
   Candidate: 5.2.2-17build1
   Version table:
  *** 5.2.2-17build1 0
         500 http://dk.archive.ubuntu.com/ubuntu/ oneiric/multiverse i386 Packages
         100 /var/lib/dpkg/status

 Best regards,

 Peter Willendrup

 ProblemType: Bug
 DistroRelease: Ubuntu 11.10
 Package: libpgplot-perl 1:2.21-2build1
 ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
 Uname: Linux 3.0.0-12-generic i686
 ApportVersion: 1.23-0ubuntu4
 Architecture: i386
 Date: Tue Feb 14 19:47:47 2012
 InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
 ProcEnviron:
  LANGUAGE=en_US:en
  PATH=(custom, no user)
  LANG=en_US.UTF-8
  SHELL=/bin/b...

Read more...

Changed in libpgplot-perl (Ubuntu):
status: New → Fix Released
Revision history for this message
Peter Willendrup (pkwi) wrote :

Just tested on a fresh 12.04 64bit - all is OK.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.