Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40225 - Root needs X11 display access to install scilab correctly.
Summary: Root needs X11 display access to install scilab correctly.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-02 14:53 UTC by Matt Caesar
Modified: 2004-03-27 04:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Caesar 2004-02-02 14:53:14 UTC
During the compiling of scilab, the compile process attempts to invoke scilab several times and errors with "Gtk-WARNING **: cannot open display:" I initially tried to install scilab while logged into X as a non-root user where root didn't have access to the display. I ended up with a borked program that still ran but was unusable. 

I'm running gentoo-dev-sources-2.6.1 which has caused problems with some other ebuilds, but not sure if that is the case here.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.6.1-gentoo)
=================================================================
System uname: 2.6.1-gentoo i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.4.3.10
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://128.213.5.34/gentoo/ http://gentoo.mirrors.pair.com/
http://adelie.polymtl.ca/ http://gentoo.chem.wisc.edu/gentoo/
http://oss.redundant.com/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/data/development/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X acpi4linux apache2 apm avi berkdb bonobo cdr crypt cups dga doc dvd
encode esd ethereal ffmpeg fftw foomaticdb gdbm gif gphoto2 gpm gtk gtk2 gtkhtml
guile hbci imap imlib java jpeg kde libg++ libwww mad mikmod mmx motif mozilla
mpeg mysql nas ncurses nls odbc offensive oggvorbis opengl oss pam pdflib perl
png python qt quicktime readline ruby ruby18 scanner sdl slang spell sse ssl
svga tcltk tcpd tetex tiff truetype usb x86 xml2 xmms xv zlib"
Comment 1 SpanKY gentoo-dev 2004-02-02 16:18:05 UTC
apps that try to access the X display should be patched to not attempt that
Comment 2 Nathaniel Taylor 2004-02-03 16:23:34 UTC
Correct!   I have wondered for months why I usually get a botched scilab that 
won't open help or demos, but occaisionally get a working one.  As I normally compile such things from a script while remotely logged in / su'd, there is no X available -- recompilation with a display available cured the problem.

The following is the result of opening a badly compiled scilab, then pressing the help and the demo buttons. Nothing more happens...  
Interestingly, the same problem exists even when installing binary or source versions from Inria; presumably it is some library that is messed up?

_________________________________________________________
                    ==========
                    scilab-2.7
        Copyright (C) 1989-2003 INRIA/ENPC
                    ==========
 
Startup execution:
  loading initial environment
load('SCI/macros/mtlb/lib')
                            !--error   241 
File SCI/macros/mtlb/lib does not exist or read access denied 
at line      50 of exec file called by :    
exec('SCI/scilab.star',-1);;quit
 
-->help();
       !--error     4 
undefined variable : help                    
 
-->exec('SCI/demos/alldems.dem');
  num=x_choose(demolist(:,1),['Click to choose a demo';
                             !--error     4 
undefined variable : demolist                
at line      16 of exec file called by :    
exec('SCI/demos/alldems.dem');
 
-->
___________________________________________________
Comment 3 Patrick Kursawe (RETIRED) gentoo-dev 2004-03-22 05:25:53 UTC
-r3 will provide a virtual X server during build - this should fix the problem. Please test when available, re-open this bug if there are problems.
Comment 4 Matt Caesar 2004-03-27 04:00:14 UTC
Scilab compiles flawless. Thanks!