python-qwt3d-qt4 cannot be used

Bug #1009753 reported by zzarko
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pyqwt3d (Ubuntu)
Fix Released
Undecided
Unassigned
Precise
Fix Released
Undecided
Unassigned

Bug Description

Impact:
python-qwt3d is unusable in precise as it can't be imported due to a undefined reference

Fix: link with GLU to satisfy the symbol

TEST CASE:
python -c "import PyQt4.Qwt3D"

expected: successful import
current:
ImportError: /usr/lib/pyshared/python2.7/PyQt4/Qwt3D/_Qwt3D.so: undefined symbol: gluCylinder

Regression potential:
just a link added, package broken before, very low chance of regressions

original report:

I'm running Ubuntu 12.04 64-bit with all the latest patches. For one of my projects, I'm using python-qwt3d-qt4. It wokked fine in 11.04, but it didn't in 11.10 (that's the reason I never installed 11.10 on my computer at work). Anyway, this package still isn't usable in 12.04. If I try to use it, I get this when starting my program:

ImportError: /usr/lib/pyshared/python2.7/PyQt4/Qwt3D/_Qwt3D.so: undefined symbol: gluCylinder

The error is the same I got a while back in Ubuntu Karmic (https://bugs.launchpad.net/ubuntu/+source/pyqwt3d/+bug/478230), and the solution is the same as it were then: -lGLU is missing when calling configure.py.

To fix this error, you need to change line 36 in debian/rules (pyqwt3d_0.1.7~cvs20090625-8.debian.tar.gz file) from:

python$$pyvers configure.py -$$qtvers -I /usr/include/qwtplot3d-qt$$qtvers --extra-libs=qwtplot3d-qt$$qtvers -l z -D GL2PS_HAVE_ZLIB);\

to (-lGLU added at the end of options):

python$$pyvers configure.py -$$qtvers -I /usr/include/qwtplot3d-qt$$qtvers --extra-libs=qwtplot3d-qt$$qtvers -l z -D GL2PS_HAVE_ZLIB -lGLU);\

I made a package for myself, so I can use this library, but please, change this line and make the package usable from main repository. I also included a patch for this.

Revision history for this message
zzarko (zzarko-gmail) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "GLU library fix" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pyqwt3d (Ubuntu):
status: New → Confirmed
Revision history for this message
Julian Taylor (jtaylor) wrote :

fixed in quantal:
pyqwt3d (0.1.7~cvs20090625-9) unstable; urgency=low
   [ Jakub Wilk ]
   * Add epoch to python-numpy version in Build-Depends.

   [ Gudjon I. Gudjonsson ]
   * Bump standards version to 3.9.3
   * Add -lGLU to configure.py command line

Changed in pyqwt3d (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Julian Taylor (jtaylor) wrote :

I have uploaded the fix to precise-proposed, please test it when it has be approved

description: updated
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello zzarko, or anyone else affected,

Accepted pyqwt3d into precise-proposed. The package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in pyqwt3d (Ubuntu Precise):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
zzarko (zzarko-gmail) wrote :

I can confirm that python-qwt3d-qt4, and also libqwt-dev, are working as expected when installed from proposed repository. Thanks for fixing them.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pyqwt3d - 0.1.7~cvs20090625-8ubuntu0.1

---------------
pyqwt3d (0.1.7~cvs20090625-8ubuntu0.1) precise-proposed; urgency=low

  * Add -lGLU to configure.py command line (LP: #1009753)
    Fixes undefined symbol error on import
 -- Julian Taylor <email address hidden> Thu, 07 Jun 2012 13:46:25 +0200

Changed in pyqwt3d (Ubuntu Precise):
status: Fix Committed → Fix Released
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.