[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GWorkspace on OpenBSD
From: |
Sebastian Reitenbach |
Subject: |
GWorkspace on OpenBSD |
Date: |
Sun, 10 Jun 2007 07:50:05 +0200 |
Hi,
I had some trouble to get GWorkspace to run on OpenBSD 4.1. I took the
OpenBSD ports from http://mail.rochester.edu/~asveikau/gnustep-openbsd/,
updated them to use gnustep-make-2.0.1, gnustep-base-1.15.0,
gnustep-gui-0.12.0, gnustep-back-0.12, and GWorkspace-0.8.6.
After installing, trying to start it, GWorkspace aborted with the following
message:
Critical Error in GWorkspace
NSInvalidArgumentException: NSTask - launch path (mount) not valid
It took me a while to find out what this message wants me to know. After
running GWorkspace it in the debugger, I saw it stopping here:
(gdb) bt
#0 0x0561f52d in kill () from /usr/lib/libc.so.40.3
#1 0x05657c37 in abort () at /usr/src/lib/libc/stdlib/abort.c:65
#2 0x04205164 in _terminate () at NSException.m:686
#3 0x042059b7 in -[NSException raise] (self=0x86381f28, _cmd=0x2f7984a8) at
NSException.m:826
#4 0x0f7a5db2 in _NSAppKitUncaughtExceptionHandler (exception=0x86381f28)
at NSApplication.m:139
#5 0x042059d2 in -[NSException raise] (self=0x86381f28, _cmd=0x24225578) at
NSException.m:834
#6 0x042054ca in +[NSException raise:format:arguments:] (self=0x24225380,
_cmd=0x24225560, name=0x242256bc, format=0x2423bc60,
argList=0xcfbe1750
"�z4*��#$x\027��+B)\004H��\201")
at NSException.m:753
#7 0x0420541b in +[NSException raise:format:] (self=0x24225380,
_cmd=0x2423b8f0, name=0x242256bc, format=0x2423bc60) at NSException.m:739
#8 0x0429430b in -[NSTask(Private) _fullLaunchPath] (self=0x86465c08,
_cmd=0x2423ba60) at NSTask.m:876
#9 0x0429484c in -[NSConcreteUnixTask launch] (self=0x86465c08,
_cmd=0x2a3477d0) at NSTask.m:1336
#10 0x0a34f3c5 in -[NSWorkspace(mounting) mountedVolumes] (self=0x87b4e928,
_cmd=0x2a347848) at FSNodeRep.m:756
#11 0x0a350366 in -[NSWorkspace(mounting) mountedRemovableMedia]
(self=0x87b4e928, _cmd=0x3c044b70) at FSNodeRep.m:987
#12 0x1c024890 in -[GWDesktopView showMountedVolumes] (self=0x7eb0dc08,
_cmd=0x3c043250) at Desktop/GWDesktopView.m:149
#13 0x1c01f0d4 in -[GWDesktopManager activateDesktop] (self=0x8ae4d188,
_cmd=0x3c040660) at Desktop/GWDesktopManager.m:152
#14 0x1c00991e in -[GWorkspace applicationWillFinishLaunching:]
(self=0x86988108, _cmd=0x2f798d20, aNotification=0x7c31f068) at GWorkspace
.m:430
#15 0x042308a6 in -[NSNotificationCenter _postAndRelease:] (self=0x7c5f30d8,
_cmd=0x2422d108, notification=0x7c31f068) at NSNotificationCe
nter.m:1068
#16 0x04230b50 in -[NSNotificationCenter
postNotificationName:object:userInfo:] (self=0x7c5f30d8, _cmd=0x2422d110,
name=0x2f7dc360, object
=0x8698a388,
info=0x0) at NSNotificationCenter.m:1136
#17 0x04230a00 in -[NSNotificationCenter postNotificationName:object:]
(self=0x7c5f30d8, _cmd=0x2f798828, name=0x2f7dc360, object=0x8698a3
88)
at NSNotificationCenter.m:1116
#18 0x0f7a88ac in -[NSApplication finishLaunching] (self=0x8698a388,
_cmd=0x2f798988) at NSApplication.m:949
#19 0x0f7aa2ea in -[NSApplication run] (self=0x8698a388, _cmd=0x3c03c4b8) at
NSApplication.m:1349
---Type <return> to continue, or q <return> to quit---
#20 0x1c0053b8 in gnustep_base_user_main (argc=1, argv=0xcfbe1e1c,
env=0xcfbe1e24) at main.m:37
#21 0x0425af97 in main (argc=1, argv=0xcfbe1e1c, env=0xcfbe1e24) at
NSProcessInfo.m:897
#22 0x1c005160 in ___start ()
#23 0x1c0050cf in _start ()
#24 0x00000000 in ?? ()
The problem is easily explained: on OpenBSD mount is in /sbin, not
in /bin. /sbin is not in $PATH environment variable of the user, therefore
GWorkspace does not find the mount command automagically. The fix is to
add /sbin to the PATH environment variable. With this done, I see another
error message on the console regarding mount. Mount is called with
parameter -p (on Linux to specify a file descriptor to read passwords from).
This parameter does not exist on OpenBSD, therefore at least one call to
mount fails, but does not seem to be fatal.
kind regards
Sebastian
- GWorkspace on OpenBSD,
Sebastian Reitenbach <=