Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100390 - GNUstep apps fail to launch
Summary: GNUstep apps fail to launch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Gentoo Gnustep project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-26 12:05 UTC by Dmitrij D. Czarkoff
Modified: 2005-10-27 11:32 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 Dmitrij D. Czarkoff 2005-07-26 12:05:00 UTC
The GNUstep Apps fail to launch. I tried GNUmail, GMines and some more, but all
of thm fail with the same output

Reproducible: Always
Steps to Reproduce:
1. echo
'LDPATH="/usr/GNUstep/Local/Library/Libraries:/usr/GNUstep/System/Library/Libraries"
GNUSTEP_SYSTEM_ROOT="/usr/GNUstep"'>>/etc/env.d/99gnustep
2. /usr/GNUstep/Local/Applications/GNUMail.app/GNUMail
Actual Results:  
ddc@localhost ~ $ /usr/GNUstep/Local/Applications/GNUMail.app/GNUMail 
2005-07-26 22:52:15.000 GNUMail[17565] Unknown time zone name `Europe/Moscow'.
2005-07-26 22:52:15.000 GNUMail[17565] Using time zone with absolute offset 0.
2005-07-26 22:52:15.000 GNUMail[17565] No path specified for bundle
2005-07-26 22:52:15.000 GNUMail[17565] Improper installation: No language locale
found
2005-07-26 22:52:15.000 GNUMail[17565] NSApplication.m:203  Assertion failed in
initialize_gnustep_backend.  Unable to find backend libgnustep-back.bundle
/usr/GNUstep/Local/Applications/GNUMail.app/GNUMail: Uncaught exception
NSInternalInconsistencyException, reason: NSApplication.m:203  Assertion failed
in initialize_gnustep_backend.  Unable to find backend libgnustep-back.bundle

Expected Results:  
It should simply run.

localhost ddc # emerge info
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.12-gentoo-r6 i686)
=================================================================
System uname: 2.6.12-gentoo-r6 i686 Transmeta(tm) Crusoe(tm) Processor TM5800
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.4-r1, 2.4.1-r1
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=i686 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-Os -march=i686 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="ru_RU.koi8r"
LC_ALL=""
LINGUAS="ru en de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d a52 aac aalib acl acpi alsa apm arts avi bash-completion
bitmap-fonts bmp bzip2 cdr crypt cups dvd dvdread encode esd exif fam fbcon
ffmpeg flac flash foomaticdb gdbm gif gnustep gpm gtk gtk2 gtkhtml guile iconv
imagemagick ipv6 javascript jpeg lcms libg++ libwww mad mikmod mime mmx mng mp3
mpeg ncurses nls nptl nptlonly objc offensive ogg oggvorbis opengl pam pdflib
perl png python qt quicktime readline samba scanner sdl slang spell ssl svg tcpd
tetex theora threads tidy tiff truetype truetype-fonts type1-fonts unicode usb
userlocales vorbis wifi wmf xine xml2 xv xvid zlib linguas_ru linguas_en
linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Armando Di Cianno (RETIRED) gentoo-dev 2005-07-27 13:24:06 UTC
--quote:open--
1. echo
'LDPATH="/usr/GNUstep/Local/Library/Libraries:/usr/GNUstep/System/Library/Libraries"
GNUSTEP_SYSTEM_ROOT="/usr/GNUstep"'>>/etc/env.d/99gnustep
--quote:close--
... why are you doing this?  Revert the file back to its original form.

When you source GNUstep.sh, the paths are set up for you, e.g.
--bash example:open--
# . /usr/GNUstep/System/Library/Makefiles/GNUstep.sh
--bash example:close--

What is the output of:
# defaults read NSGlobalDomain 'Local Time Zone'
and
# defaults read NSGlobalDomain NSLanguages
and (if you have gentoolkit installed)
# qpkg -I gnustep -v

Thanks.
Comment 2 Dmitrij D. Czarkoff 2005-07-27 21:07:46 UTC
ddc@localhost ~ $ su
localhost ddc # defaults read NSGlobalDomain 'Local Time Zone'
defaults read: couldn't read default
localhost ddc # defaults read NSGlobalDomain NSLanguages
defaults read: couldn't read default
localhost ddc # /usr/share/doc/gentoolkit-0.2.1_pre4/deprecated/qpkg/qpkg -I
gnustep -v
gnustep-base/gnustep-back-art-0.9.6-r1 *
gnustep-base/gnustep-make-1.10.0-r2 *
gnustep-base/gnustep-base-1.10.3-r1 *
gnustep-base/gnustep-gui-0.9.5 *
gnustep-base/mknfonts-0.5 *
gnustep-base/gnustep-env-0.1.6-r1 *
gnustep-base/gnustep-back-xlib-0.9.6 *
gnustep-libs/prefsmodule-1.1.1_pre20050315 *
gnustep-libs/pantomime-1.2.0.20050606 *
gnustep-libs/artresources-0.1.2 *
gnustep-libs/pdfkit-0.8-r4 *
gnustep-libs/popplerkit-0.0.0.20050720 *
gnustep-libs/smbkit-0.0.1.20050521 *
gnustep-apps/easydiff-0.3.1_pre20050312 *
gnustep-apps/gnumail-1.2.0.20050606 *
gnustep-apps/aclock-0.2.3 *
gnustep-apps/addresses-0.4.6-r1 *
gnustep-apps/terminal-0.9.5_pre20050315 *
gnustep-apps/mylibrary-0.4.5g-r1 *
gnustep-apps/viewpdf-0.9 *
gnustep-apps/gworkspace-0.7.1 *
gnustep-apps/clipbook-0.6.0.7.1 *
gnustep-apps/gmines-0.1-r1 *
gnustep-apps/gridlock-1.9-r1 *
gnustep-apps/vindaloo-0.2 *
gnustep-apps/affiche-0.6.0-r2 *
gnustep-apps/preferences-1.3.0_pre20050315 *
gnustep-apps/textedit-0.95_pre20050315 *
gnustep-apps/stepulator-1.0-r1 *
gnustep-apps/gwnet-0.1.0.7.1 *
gnustep-apps/preview-0.7.5 *
Comment 3 Armando Di Cianno (RETIRED) gentoo-dev 2005-07-28 07:56:25 UTC
"ddc@localhost ~ $ su"
... you don't need to do that, defaults is set up per user...so unless you're
running all your apps as root, I suggest not doing the su.

Since the 'defaults' command was found, you did source GNUstep.sh, right?

You may want to check /usr/GNUstep/System/Tools/Gentoo/ for "convenience"
scripts that I wrote -- since you like want to setup your GNUstep for Russian
language, I suggest looking over the contents of those files and changing things
accordingly.  You wany want to set up the NSLanguages array to contain Russian,
then English, 'cause I don't know how many apps have been ported to Russian, atm.

So, as a test do this:
# su -
# /etc/init.d/gnustep start
# exit
# . /usr/GNUstep/System/Libraries/Makefiles/GNUstep.sh
# /usr/GNUstep/System/Tools/Gentoo/config-gnustep-base.sh
# /usr/GNUstep/System/Tools/Gentoo/config-gnustep-back-art.sh
# gpbs
# openapp AClock

After all this, AClock should be running happily.  If it all works, then go back
and change your settings (look over that config-gnustep-base.sh) to work with
Russian.  Please let me know if the above works.
Comment 4 Dmitrij D. Czarkoff 2005-07-28 13:41:04 UTC
Test was completed successfuly, but I still have troubles with some libraries:
localhost ddc # ldd /usr/GNUstep/System/Tools/mknfonts 
        linux-gate.so.1 =>  (0xffffe000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7f09000)
        libz.so.1 => /lib/libz.so.1 (0xb7ef9000)
        libgnustep-base.so.1.10 => not found
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7ee6000)
        libobjc.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libobjc.so.1
(0xb7ed0000)
        libm.so.6 => /lib/libm.so.6 (0xb7eaa000)
        libc.so.6 => /lib/libc.so.6 (0xb7d76000)
        /lib/ld-linux.so.2 (0xb7f76000)

Still:
localhost ddc # find /usr/GNUstep/ -iname 'libgnustep-base.so*'
/usr/GNUstep/System/Library/Libraries/libgnustep-base.so.1.10.3
/usr/GNUstep/System/Library/Libraries/libgnustep-base.so.1.10
/usr/GNUstep/System/Library/Libraries/libgnustep-base.so
Comment 5 Armando Di Cianno (RETIRED) gentoo-dev 2005-07-28 13:58:26 UTC
It definitely sounds like you're not sourcing GNUstep.sh.  You need to source
this file *everytime*  you log in.

For, e.g, my .xinitrc looks like this:
######################################################
# GNUstep w/ WindowMaker
######################################################
. /usr/GNUstep/System/Library/Makefiles/GNUstep.sh
gpbs
make_services

exec wmaker
######################################################
... since I really don't use GNUstep from the commnand line, I don't add it to
my .bashrc, but i could add it there too, if I wanted.  Also, note that sourcing
a script is different from running it -- that's what the "." does: it allows
current environment to be modified -- if you execute it, then only the
environment of that process will have the environment variables.

After, sourcing GNUstep.sh, using your test, I see:
--------
$ ldd /usr/GNUstep/System/Tools/mknfonts
        linux-gate.so.1 =>  (0xffffe000)
...
        libgnustep-base.so.1.10 =>
/usr/GNUstep/System/Library/Libraries/libgnustep-base.so.1.10 (0xb7bdd000)
...
        /lib/ld-linux.so.2 (0xb7ef3000)
--------
... and this is why I tend to think you're still not sourcing that file.

If this is the case, please let me know, if not also let me know.  Since the
tests I asked you to try suceeded, this is hopefully it.
Comment 6 Dmitrij D. Czarkoff 2005-07-28 20:31:14 UTC
It worked, but I didn't log out since my first message here, so it really seems
strnge to me...
Comment 7 Armando Di Cianno (RETIRED) gentoo-dev 2005-10-27 11:32:02 UTC
Forgot to mark this as closed; closed.