`plplot_octave' undefined

Bug #504216 reported by Alain Baeckeroot
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
plplot (Ubuntu)
New
Undecided
Unassigned
Nominated for Karmic by Alain Baeckeroot

Bug Description

plplot just do no work: octave says :

error: `plplot_octave' undefined near line 1098 column 14
error: called from `plgcol0'

but plplot_octave is in the path :
ls -l /usr/lib/octave/site/oct/api-v32/i486-pc-linux-gnu/plplot_octave.oct
-rwxr-xr-x 1 root root 325752 2009-06-04 09:32 /usr/lib/octave/site/oct/api-v32/i486-pc-linux-gnu/plplot_octave.oct

Octave's search path contains the following directories:

.
/usr/share/plplot_octave/support
/usr/share/plplot_octave
/Big/WORKSPACES/climelioth/octave/graph
/Big/WORKSPACES/climelioth/octave/bilans
/Big/WORKSPACES/climelioth/octave/calcul/boucle_cc
/Big/WORKSPACES/climelioth/octave/calcul/boucle_m
/Big/WORKSPACES/climelioth/octave/calcul
/Big/WORKSPACES/climelioth/octave/postgres
/Big/WORKSPACES/climelioth/octave/init
/Big/WORKSPACES/climelioth/octave/fcgi/lib
/Big/WORKSPACES/climelioth/octave
/usr/local/share/octave/site-m
/usr/lib/octave/site/oct/api-v32/i486-pc-linux-gnu
/usr/share/octave/site/m
/usr/share/octave/site/m/PLplot
/usr/lib/octave/3.0.5/oct/i486-pc-linux-gnu
/usr/share/octave/3.0.5/m
....

ProblemType: Bug
Architecture: i386
Date: Thu Jan 7 13:03:05 2010
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: fglrx
Package: octave-plplot 5.9.2-3
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-16.53-generic
SourcePackage: plplot
Uname: Linux 2.6.31-16-generic i686

Revision history for this message
Alain Baeckeroot (alain-baeckeroot) wrote :
Revision history for this message
Alain Baeckeroot (alain-baeckeroot) wrote :

It works flawlessly on a debian lenny (octave 3.0.1, plplot 5.9.0.8)

Revision history for this message
Alain Baeckeroot (alain-baeckeroot) wrote :

1/ in my chrooted debian lenny (plplot works to produce files):

octave:1> toggle_plplot_use

octave:2> plplot_octave_path
ans = /usr/share/plplot_octave// <--- notice the //

octave:3> plplot_octave
panic: Segmentation fault -- stopping myself...

OK it finds plplot_octave (and segfault is normal it should no be called like this)

***************************************
2/ in my karmic install :

octave:1> toggle_plplot_use
Use PLplot: on

octave:2> plplot_octave_path
ans = /usr/share/plplot_octave

octave:3> plplot_octave
error: `plplot_octave' undefined near line 3 column 1

It does not find plplot_octave.oct BUT when i quit plplot :
octave:3> toggle_plplot_use
Use PLplot: off

octave:4> plplot_octave
panic: Segmentation fault -- stopping myself...

it finds it again !

It seems that toggle_plplot_use is broken and remove some essential part from the path

Revision history for this message
Alain Baeckeroot (alain-baeckeroot) wrote :

ok i got a workaround :after toggle_plplot_use the path is broken

rmpath /usr/share/plplot_octave/support
rmpath /usr/share/plplot_octave
addpath /usr/share/plplot_octave -end
addpath /usr/share/plplot_octave/support -end

now it works !

Revision history for this message
Alain Baeckeroot (alain-baeckeroot) wrote :

It works ONLY with the package i recompiled from source

http://packages.ubuntu.com/karmic/octave-plplot

it seems the build is totally broken

Revision history for this message
Andrew Ross (andrewross) wrote :

As the Debian maintainer for this package I don't know what has happened with the build on Ubuntu. I can confirm that rebuilding from source solves the problem for me too, so I suspect it was a problem with octave being updated after plplot had been build. plplot_octave is definitely in the path, but just not recognised.

Revision history for this message
Alain Baeckeroot (alain-baeckeroot) wrote :

<very unhappy>
Additional information: after rebuilding from

    dget http://archive.ubuntu.com/ubuntu/pool/universe/p/plplot/plplot_5.9.2-3.dsc
    apt-get build-dep plplot
    cd plplot-5.9.2
    debuild -us -uc
    sudo debi

the installed packages are out-dated, so upgrade manager want to replace them.
I had to change revision numer of the package to keep it working.

Also, it installs ada, java (i don't want gcj), fortran... and everything when i only wanted octave_plplot.
Something is completely wrong with ubuntu packages, whereas debian one is clean !

</very unhappy>

Revision history for this message
Alain Baeckeroot (alain-baeckeroot) wrote :

I tried to try with octave3.2 (also included in karmic repository) : worst failure

1/ plplot reinstall octave 3.0 (which does not work see above)

2/ trying octave 3.2 + plot =
toggle_plplot_use
warning: split is obsolete and will be removed from a future version of Octave; please use strsplit instead
Use PLplot: on
octave3.2:5> plot(x,y)
error: /usr/share/plplot_octave/plplot_octave.oct: undefined symbol: _Z20install_dld_functionPF17octave_value_listRKS_iERKSsRK12octave_shlibS5_bb
error: called from:
error: plsstrm at line 3533, column 1
error: /usr/share/plplot_octave/figure.m at line 88, column 1
error: /usr/share/plplot_octave/support/__pl_init.m at line 20, column 5
error: /usr/share/plplot_octave/support/__plt__.m at line 21, column 8
error: /usr/share/plplot_octave/plot.m at line 56, column 3

Revision history for this message
Alain Baeckeroot (alain-baeckeroot) wrote :

removing octave-plplot also removes octave3.0

Revision history for this message
Alain Baeckeroot (alain-baeckeroot) wrote :

So what happens ? Anybody here to at least confirm this bug ?

I can't believe ubuntu includes unmaintained packages, does it ?

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.