From: Orion P. <or...@co...> - 2014-02-13 21:53:27
|
So, looks like 5.10.0 executes "wish" during cmake to determine version info. This fails on the Fedora builders because there is no DISPLAY. So, what to do? -- Looking for wish - found -- TK_WISH = /bin/wish Application initialization failed: no display name and no $DISPLAY environment variable Error in startup script: no display name and no $DISPLAY environment variable while executing "load /usr/lib64/libtk8.5.so Tk" ("package ifneeded Tk 8.5.15" script) invoked from within "package require Tk" invoked from within "puts -nonewline [package require Tk]" (file "/builddir/build/BUILD/plplot-5.10.0/fedora/CheckTK_VERSION.tcl" line 1) -- Looking for Tk version with wish - not found -- WARNING: setting ENABLE_tk to OFF -- WARNING: Because Tk is disabled must disable Itk as well -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane or...@nw... Boulder, CO 80301 http://www.nwra.com |
From: Orion P. <or...@co...> - 2014-02-13 22:22:33
|
On 02/13/2014 02:53 PM, Orion Poplawski wrote: > So, looks like 5.10.0 executes "wish" during cmake to determine version info. > This fails on the Fedora builders because there is no DISPLAY. So, what to do? > > -- Looking for wish - found > -- TK_WISH = /bin/wish > Application initialization failed: no display name and no $DISPLAY environment > variable > Error in startup script: no display name and no $DISPLAY environment variable > while executing > "load /usr/lib64/libtk8.5.so Tk" > ("package ifneeded Tk 8.5.15" script) > invoked from within > "package require Tk" > invoked from within > "puts -nonewline [package require Tk]" > (file "/builddir/build/BUILD/plplot-5.10.0/fedora/CheckTK_VERSION.tcl" line 1) > -- Looking for Tk version with wish - not found > -- WARNING: setting ENABLE_tk to OFF > -- WARNING: Because Tk is disabled must disable Itk as well > > Workaround seems to be: -DPLPLOT_TK_VERSION=8.5.15 -DPLPLOT_ITCL_VERSION=3.4 -DPLPLOT_ITK_VERSION=3.4 though still working on iWidgets but I have to go now. -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane or...@nw... Boulder, CO 80301 http://www.nwra.com |
From: Orion P. <or...@co...> - 2014-02-14 01:12:23
|
On 02/13/2014 03:22 PM, Orion Poplawski wrote: > On 02/13/2014 02:53 PM, Orion Poplawski wrote: >> So, looks like 5.10.0 executes "wish" during cmake to determine version info. >> This fails on the Fedora builders because there is no DISPLAY. So, what to do? >> >> -- Looking for wish - found >> -- TK_WISH = /bin/wish >> Application initialization failed: no display name and no $DISPLAY environment >> variable >> Error in startup script: no display name and no $DISPLAY environment variable >> while executing >> "load /usr/lib64/libtk8.5.so Tk" >> ("package ifneeded Tk 8.5.15" script) >> invoked from within >> "package require Tk" >> invoked from within >> "puts -nonewline [package require Tk]" >> (file "/builddir/build/BUILD/plplot-5.10.0/fedora/CheckTK_VERSION.tcl" line 1) >> -- Looking for Tk version with wish - not found >> -- WARNING: setting ENABLE_tk to OFF >> -- WARNING: Because Tk is disabled must disable Itk as well >> >> > > Workaround seems to be: > > -DPLPLOT_TK_VERSION=8.5.15 > -DPLPLOT_ITCL_VERSION=3.4 > -DPLPLOT_ITK_VERSION=3.4 > > though still working on iWidgets but I have to go now. > iwidgets appears to need: -DIWIDGETS_VERSIONS_LIST:STRING="4.0.2;3.4;3.4" -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA Division FAX: 303-415-9702 3380 Mitchell Lane or...@co... Boulder, CO 80301 http://www.cora.nwra.com |
From: Alan W. I. <ir...@be...> - 2014-02-14 07:46:03
|
On 2014-02-13 18:11-0700 Orion Poplawski wrote: > On 02/13/2014 03:22 PM, Orion Poplawski wrote: >> On 02/13/2014 02:53 PM, Orion Poplawski wrote: >>> So, looks like 5.10.0 executes "wish" during cmake to determine version info. >>> This fails on the Fedora builders because there is no DISPLAY. So, what to do? >>> >>> -- Looking for wish - found >>> -- TK_WISH = /bin/wish >>> Application initialization failed: no display name and no $DISPLAY environment >>> variable >>> Error in startup script: no display name and no $DISPLAY environment variable >>> while executing >>> "load /usr/lib64/libtk8.5.so Tk" >>> ("package ifneeded Tk 8.5.15" script) >>> invoked from within >>> "package require Tk" >>> invoked from within >>> "puts -nonewline [package require Tk]" >>> (file "/builddir/build/BUILD/plplot-5.10.0/fedora/CheckTK_VERSION.tcl" line 1) >>> -- Looking for Tk version with wish - not found >>> -- WARNING: setting ENABLE_tk to OFF >>> -- WARNING: Because Tk is disabled must disable Itk as well >>> >>> >> >> Workaround seems to be: >> >> -DPLPLOT_TK_VERSION=8.5.15 >> -DPLPLOT_ITCL_VERSION=3.4 >> -DPLPLOT_ITK_VERSION=3.4 >> >> though still working on iWidgets but I have to go now. >> > > iwidgets appears to need: > > -DIWIDGETS_VERSIONS_LIST:STRING="4.0.2;3.4;3.4" Yes. You are on the right track for hand-specifying all versions, and I assume that works for your rather specialized case where you are attempting to build PLplot on a computer with no valid display. If you do not specify the versions by hand, the cmake command follows the normal CMake find rules (as affected by the set of environment variables you give it) to find Tcl, Tk, Itcl, Itk, and Iwidgets, and it is necessary/desirable to do sanity checks for version consistency. Those sanity checks test whether wish and tclsh give the same "package require" version results for Tcl and also there is a similar "package require" check for a consistent Tk version. Of course, such simple "package require" command results should not need a display so I am wondering if there is a way to obtain such results under wish when there is no display? Could you check with Fedora experts if that is possible? If so, then you would not have to specify versions by hand like you do above. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |
From: Orion P. <or...@co...> - 2014-02-14 23:46:31
|
On 02/14/2014 12:45 AM, Alan W. Irwin wrote: > On 2014-02-13 18:11-0700 Orion Poplawski wrote: > >> On 02/13/2014 03:22 PM, Orion Poplawski wrote: >>> On 02/13/2014 02:53 PM, Orion Poplawski wrote: >>>> So, looks like 5.10.0 executes "wish" during cmake to determine version info. >>>> This fails on the Fedora builders because there is no DISPLAY. So, what >>>> to do? >>>> >>>> -- Looking for wish - found >>>> -- TK_WISH = /bin/wish >>>> Application initialization failed: no display name and no $DISPLAY >>>> environment >>>> variable >>>> Error in startup script: no display name and no $DISPLAY environment variable >>>> while executing >>>> "load /usr/lib64/libtk8.5.so Tk" >>>> ("package ifneeded Tk 8.5.15" script) >>>> invoked from within >>>> "package require Tk" >>>> invoked from within >>>> "puts -nonewline [package require Tk]" >>>> (file "/builddir/build/BUILD/plplot-5.10.0/fedora/CheckTK_VERSION.tcl" >>>> line 1) >>>> -- Looking for Tk version with wish - not found >>>> -- WARNING: setting ENABLE_tk to OFF >>>> -- WARNING: Because Tk is disabled must disable Itk as well >>>> >>>> >>> >>> Workaround seems to be: >>> >>> -DPLPLOT_TK_VERSION=8.5.15 >>> -DPLPLOT_ITCL_VERSION=3.4 >>> -DPLPLOT_ITK_VERSION=3.4 >>> >>> though still working on iWidgets but I have to go now. >>> >> >> iwidgets appears to need: >> >> -DIWIDGETS_VERSIONS_LIST:STRING="4.0.2;3.4;3.4" > > Yes. You are on the right track for hand-specifying all versions, and > I assume that works for your rather specialized case where you are > attempting to build PLplot on a computer with no valid display. > > If you do not specify the versions by hand, the cmake command follows > the normal CMake find rules (as affected by the set of environment > variables you give it) to find Tcl, Tk, Itcl, Itk, and Iwidgets, and > it is necessary/desirable to do sanity checks for version consistency. > Those sanity checks test whether wish and tclsh give the same "package > require" version results for Tcl and also there is a similar "package > require" check for a consistent Tk version. > > Of course, such simple "package require" command results should not > need a display so I am wondering if there is a way to obtain such > results under wish when there is no display? Could you check with > Fedora experts if that is possible? > > If so, then you would not have to specify versions by hand like you > do above. > > Alan So, as you confirmed later, that is indeed what I have to do. I've worked up some hacks to determine version in the Fedora spec file so hopefully I'm good to go. -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane or...@nw... Boulder, CO 80301 http://www.nwra.com |
From: Arjen M. <Arj...@de...> - 2014-02-14 07:53:01
|
Hi Alan, Orion, > -----Original Message----- > From: Alan W. Irwin [mailto:ir...@be...] > > Of course, such simple "package require" command results should not need a > display so I am wondering if there is a way to obtain such results under wish when > there is no display? Could you check with Fedora experts if that is possible? > > If so, then you would not have to specify versions by hand like you do above. > I doubt this is possible: wish initialises the Tk package early in the start-up procedure and that requires a connection to X Window. You might get by with a screenless X Window, but you do need a connection to X Window. Regards, Arjen DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. |
From: Alan W. I. <ir...@be...> - 2014-02-14 19:22:41
|
On 2014-02-14 07:52-0000 Arjen Markus wrote: > Hi Alan, Orion, > >> -----Original Message----- >> From: Alan W. Irwin [mailto:ir...@be...] >> >> Of course, such simple "package require" command results should not need a >> display so I am wondering if there is a way to obtain such results under wish when >> there is no display? Could you check with Fedora experts if that is possible? >> >> If so, then you would not have to specify versions by hand like you do above. >> > > I doubt this is possible: wish initialises the Tk package early in the start-up procedure and that requires a connection to X Window. You might get by with a screenless X Window, but you do need a connection to X Window. @Orion: It turns out that Arjen is correct. To confirm that try the following experiment: irwin@raven> tclsh % package require Tk 8.5.11 % exit A blank GUI shows up on the screen as the result of the "package require Tk" command even for a tclsh context (which normally is not used for anything to do with GUI's). Therefore, I am sure the above combination (which is also in our CMake sanity checking for Tcl/Tk versions) like the equivalent wish combination won't work for a Linux environment that does not have a working X display. Thus, the conclusion seems to be that your idea of specifying exact version numbers to skip all this consistency checking is your only PLplot configuration alternative when there is no working display. On the other hand, I think that inconvenience is acceptable since no working display is a pretty specialized case. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |