scilab can run on hoary

Shixin Zeng shixinzeng at gmail.com
Mon Mar 14 09:06:00 UTC 2005


I've tried scilab on hoary(3.0-12), but it can't run. It just prompt a
term, which disappeared immediatly.
I tried to figure out where the problem was:
$bash -x scilab
 test '' = ''
+ PRINTERS=lp
+ test '' = ''
+ SCI=/usr/lib/scilab
+ export SCI
+ test :0.0 = ''
+ export DISPLAY
+ export PRINTERS
+ VERSION=Scilab-3.0
+ export VERSION
+ test '' = ''
+ PVM_ROOT=/usr/lib/pvm3/
+ test '' = ''
++ /usr/lib/pvm3//lib/pvmgetarch
+ PVM_ARCH=LINUX
+ export PVM_ROOT PVM_ARCH
+ PATH=/home/zsx/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games:/usr/lib/scilab:/usr/lib/scilab/util
+ export PATH
+ rest=no
+ case $# in
+ sci_args=
+ test no = yes
+ /usr/lib/scilab/bin/zterm -e /usr/lib/scilab/bin/scilex

Just as described above, just a term prompt to me.

$/usr/lib/scilab/bin/scilex
/usr/lib/scilab/bin/scilex
        -------------------------------------------
                         Scilab-3.0

                  Copyright (c) 1989-2004
              Consortium Scilab (INRIA, ENPC)
        -------------------------------------------


Startup execution:
  loading initial environment

(scilex:26278): Gtk-CRITICAL **: gtk_item_factory_delete_item:
assertion `GTK_IS_ITEM_FACTORY (ifactory)' failed

(scilex:26278): Gtk-CRITICAL **: gtk_item_factory_delete_item:
assertion `GTK_IS_ITEM_FACTORY (ifactory)' failed

Then I tried to debug it:

        -------------------------------------------
                         Scilab-3.0

                  Copyright (c) 1989-2004
              Consortium Scilab (INRIA, ENPC)
        -------------------------------------------


Startup execution:
  loading initial environment

(scilex:26290): Gtk-CRITICAL **: gtk_item_factory_delete_item:
assertion `GTK_IS_ITEM_FACTORY (ifactory)' failed

(scilex:26290): Gtk-CRITICAL **: gtk_item_factory_delete_item:
assertion `GTK_IS_ITEM_FACTORY (ifactory)' failed
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1252809952 (LWP 26290)]
0xb705f029 in shade () from /usr/lib/scilab/libs/libgraphics.so
(gdb) bt
#0  0xb705f029 in shade () from /usr/lib/scilab/libs/libgraphics.so
#1  0xb4996e71 in clearlooks_rc_style_register_type ()
   from /usr/lib/gtk-2.0/2.4.0/engines/libclearlooks.so
#2  0xb5dd76c3 in gtk_rc_scanner_new () from /usr/lib/libgtk-x11-2.0.so.0
#3  0xb5dd784b in gtk_rc_scanner_new () from /usr/lib/libgtk-x11-2.0.so.0
#4  0xb5dd6d67 in gtk_rc_get_style () from /usr/lib/libgtk-x11-2.0.so.0
#5  0xb5e85ede in gtk_widget_ensure_style () from /usr/lib/libgtk-x11-2.0.so.0
#6  0xb5de8b12 in gtk_size_group_remove_widget () from
/usr/lib/libgtk-x11-2.0.so.0
#7  0xb5de8e6e in _gtk_size_group_compute_requisition () from
/usr/lib/libgtk-x11-2.0.so.0
#8  0xb5e833f2 in gtk_widget_size_request () from /usr/lib/libgtk-x11-2.0.so.0
#9  0xb5e91321 in _gtk_window_unset_focus_and_default () from
/usr/lib/libgtk-x11-2.0.so.0
#10 0xb5e8fd50 in gtk_window_reshow_with_initial_size () from
/usr/lib/libgtk-x11-2.0.so.0
#11 0xb5a1dc9a in g_cclosure_marshal_VOID__VOID () from
/usr/lib/libgobject-2.0.so.0
#12 0xb5a0d5bf in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#13 0xb5a0d351 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#14 0xb5a1d080 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#15 0xb5a1c8f1 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#16 0xb5a1cb75 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#17 0xb5e8269e in gtk_widget_show () from /usr/lib/libgtk-x11-2.0.so.0
#18 0xb5d2ebb0 in gtk_dialog_run () from /usr/lib/libgtk-x11-2.0.so.0
#19 0xb6f29cc8 in ?? ()
#20 0xbffff4a0 in ?? ()
#21 0xb7ff650f in _dl_map_object_deps () from /lib/ld-linux.so.2
Previous frame inner to this frame (corrupt stack?)

Finally I tried to compile it from source, Failed again:
-make[3]: Entering directory `/mnt/download/scilab-3.0/routines/gzvt2'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/mnt/download/scilab-3.0/routines/gzvt2'
make[2]: Leaving directory `/mnt/download/scilab-3.0/routines'
linking
/usr/lib//libpvm3.a(lpvm.o)(.text+0xaca): In function `pvm_tc_conreq':
: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/lib//libpvm3.a(lpvmgen.o)(.text+0x2fb): In function `pvmlogperror':
: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
/usr/lib//libpvm3.a(lpvmgen.o)(.text+0x2f2): In function `pvmlogperror':
: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
/mnt/download/scilab-3.0/libs//libconsole.so: undefined reference to
`groundtable'
/mnt/download/scilab-3.0/libs//libconsole.so: undefined reference to
`XClearScreenConsole'
/mnt/download/scilab-3.0/libs//libconsole.so: undefined reference to
`XHomeFunction'
collect2: ld returned 1 exit status
make[1]: *** [bin/scilex] Error 1

Any help?

BTW:I just update to hoary from warty these days. And I didn't try
scilab on warty
- 
Best regards

Shixin Zeng




More information about the ubuntu-users mailing list