|
From: <tim...@en...> - 2006-07-28 06:00:33
Attachments:
tutdirs.diff
|
Hi, Ethan in particular, as you were not there to give your point of view, Dmitri A. Sergatskov reported a problem to compile from CVS a few days=20 ago on the list. 'make' on a fresh installation fails in tutorial=20 because gnuplot_x11 is not found. This issue comes from the change for=20 the bug #1509033, trying to adress the problem with GNUTERM and drivers=20 expecting term->options() to be run before term->init() for some=20 initializations. This has caused a collateral damage : gnuplot compiled=20 with the X11 terminal now launches gnuplot_x11 on startup, even if it is=20 not used. I send a patch to Dmitri to define GNUPLOT_DRIVER_DIR so that his=20 compilation will succeed. But this leaves the question open : should the change for bug #1509033=20 be reverted (at the price of GNUTERM possibly causing some drivers to=20 segfault unless we check all of them), or can we live with gnuplot_x11=20 always starting and just apply the quick fix ? Best regards, Timoth=C3=A9e |
|
From: Ethan A M. <merritt@u.washington.edu> - 2006-07-28 06:27:45
|
On Friday 28 July 2006 12:59 am, Timoth=C3=A9e Lecomte wrote: >=20 > Ethan in particular, as you were not there to give your point of view, >=20 > Dmitri A. Sergatskov reported a problem to compile from CVS a few days=20 > ago on the list. 'make' on a fresh installation fails in tutorial=20 > because gnuplot_x11 is not found.=20 I replied separately just a moment ago, but to recap: I can reproduce the error messages easily enough, and I understand why your patch makes them go away. =20 But I cannot reproduce the build failure. =20 =46or me it emits these messages but completes normally, as you would expect since the x11 driver is not actually used by the scripts in this directory. =20 > But this leaves the question open : should the change for bug #1509033=20 > be reverted (at the price of GNUTERM possibly causing some drivers to=20 > segfault unless we check all of them), or can we live with gnuplot_x11=20 > always starting and just apply the quick fix ? plot.c used to check explicitly for png/jpeg/tgif, and only call term->init= () for these cases. This was wrong, if only because 'gif' should have been on that list also. The fix for #1509033 was to call term->init() in all cases. However, this triggers overhead for x11 that turns out to be unnecessary if the user switches to another terminal for plotting. I suggest a middle course. Let's have a list of "don't call me" drivers rather than a list of "call me" drivers. Right now the only candidate for the "don't call me" list is x11. As to the patch you sent Dmitri, isn't it more logical to fix things by having the Makefile set GNUTERM to "pslatex" prior to calling gnuplot? =2D-=20 Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle 98195-7742 |
|
From: <tim...@en...> - 2006-07-28 07:01:12
|
Ethan A Merritt wrote: > On Friday 28 July 2006 12:59 am, Timoth=C3=A9e Lecomte wrote: > =20 >> Ethan in particular, as you were not there to give your point of view, >> >> Dmitri A. Sergatskov reported a problem to compile from CVS a few days= =20 >> ago on the list. 'make' on a fresh installation fails in tutorial=20 >> because gnuplot_x11 is not found.=20 >> =20 > > I replied separately just a moment ago, but to recap: > I can reproduce the error messages easily enough, and I understand why > your patch makes them go away. =20 > > But I cannot reproduce the build failure. =20 > For me it emits these messages but completes normally, as you would exp= ect > since the x11 driver is not actually used by the scripts in this direct= ory. > =20 Did you start from a clean tree with the tutorial/eg?.tex absent ? I do get the same error as Dmitri, but I agree that there seems to be=20 some hidden bug here. As I was playing with ./src/gnuplot before 'make install', I was able to=20 hang gnuplot: $ ./src/gnuplot ... Terminal type set to 'wxt' gnuplot> set term x11 Terminal type set to 'x11' Options are '0' gnuplot> Expected X11 driver: /home/tipote/libexec/gnuplot/4.1/gnuplot_x1= 1 Exec failed: No such file or directory See 'help x11' for more details plot x Expected X11 driver: /home/tipote/libexec/gnuplot/4.1/gnuplot_x11 Exec failed: No such file or directory See 'help x11' for more details =3D> here gnuplot doesn't come back to command line, a ctrl-c does the=20 trick though. > As to the patch you sent Dmitri, isn't it more logical to fix things > by having the Makefile set GNUTERM to "pslatex" prior to calling > gnuplot? > =20 Yes, indeed. Timoth=C3=A9e |