bugGNU Octave - Bugs: bug #36255, building without gnuplot hangs

 
 

bug #36255: building without gnuplot hangs

Submitted by:  Muhali <muhali>
Submitted on:  Fri 20 Apr 2012 01:05:41 AM UTC  
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  dev Operating System:  GNU/Linux

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

( Jump to the original submission)

Wed 25 Apr 2012 01:22:15 PM UTC, comment #6: 

I did a quick build on the stable branch, without gnuplot, and using Mike's patch. Everything worked as intended.

Ben Abbott <bpabbott>
Project Member
Wed 25 Apr 2012 12:25:59 PM UTC, comment #5: 

I've attached Mike Miller's changeset, which he posted to the maillist.

Muhali, can you test this for us?

(file #25729)

Ben Abbott <bpabbott>
Project Member
Tue 24 Apr 2012 07:48:47 PM UTC, comment #4: 

Oops, as Jordi pointed out FLTK cannot be
used until off-screen plotting is fixed.

So, for now, just setting --enable-docs=no
if gnuplot is not present, or equivalent
is the right fix.

Michael Godfrey <godfrey>
Project Member
Tue 24 Apr 2012 03:46:13 PM UTC, comment #3: 

Since the default backend will eventually be an OpenGL implementation, I think it makes sense to make the change to the build process first. Has it been decided that 3.8.x will use a native backend by default ?

Ben Abbott <bpabbott>
Project Member
Tue 24 Apr 2012 03:39:15 PM UTC, comment #2: 

Looking at octave.ps indicates that gnuplot
is used for most if not all plots in the Manual.

Is it time to switch this to FLTK?  We
are encouraging users to move to FLTK, so
why not join them?

And, should both be supported?  It seems
to me that requiring FLTK for documentation
build would be OK.  But, build of documentation
should be turned off if FLTK is not present
rather than crashing  (same for gnuplot).

Michael Godfrey <godfrey>
Project Member
Tue 24 Apr 2012 03:26:10 PM UTC, comment #1: 

The pipe to gnuplot is opened when a figure is created.

I think the proper fix is for configure to determine if gnuplot is present and turn of making the docs if it is not.

However, I don't know how to do that.

Ben Abbott <bpabbott>
Project Member
Fri 20 Apr 2012 01:05:41 AM UTC, original submission:  

During installation, the command

../../run-octave -q -H -p . --eval "geometryimages ('voronoi', 'eps');"

is executed, with geometryimages.m containing the line

graphics_toolkit ("gnuplot");

At that point I had no gnuplot installed, so the installation stalled at this point:

make[3]: Entering directory `/usr/src/octave/doc/interpreter'
../../run-octave -f -q -H -p . --eval "geometryimages ('voronoi', 'eps');"
sh: gnuplot: not found
warning: print.m: epstool binary is not available.
Some output formats are not available.
warning: print.m: fig2dev binary is not available.
Some output formats are not available.
warning: print.m: pstoedit binary is not available.
Some output formats are not available.
error: popen2: popen2 (child): unable to start process -- No such file or directory
error: called from:
error:   /usr/src/octave/scripts/plot/private/__gnuplot_open_stream__.m at line 30, column 44
error:   /usr/src/octave/scripts/plot/__gnuplot_drawnow__.m at line 39, column 19
error:   /usr/src/octave/scripts/plot/private/__gnuplot_print__.m at line 192, column 5
error:   /usr/src/octave/scripts/plot/private/__gnuplot_print__.m at line 176, column 5
error:   /usr/src/octave/scripts/plot/private/__gnuplot_print__.m at line 68, column 7
error:   /usr/src/octave/scripts/plot/print.m at line 405, column 12
error:   /usr/src/octave/doc/interpreter/geometryimages.m at line 158, column 7
error:   /usr/src/octave/doc/interpreter/geometryimages.m at line 36, column 5
error: stdin is not a tty!

To me it seems that

graphics_toolkit ("gnuplot");

should have exited with error already.

Muhali <muhali>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #25729:  octave-4dc85c4f151b.patch added by bpabbott (1KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by godfrey (Posted a comment)
  • -email is unavailable- added by bpabbott (Posted a comment)
  • -email is unavailable- added by muhali (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-04-27 bpabbott StatusReady For Test => Fixed
        Open/ClosedOpen => Closed
    2012-04-25 bpabbott Attached File- => Added octave-4dc85c4f151b.patch, #25729
        StatusNone => Ready For Test
    2012-04-24 bpabbott Summaryinstallation without gnuplot hangs => building without gnuplot hangs

    Back to the top


    Powered by Savane 3.5