The error:
   TERM_PROGRAM: Undefined variable
may be due to a bug in the file
   /usr/share/tcsh/examples/rc

I didn't keep a copy of the original on this computer, but I believe 
that the file has a line similar to this:

   if ($TERM_PROGRAM && $?SHLVL) then

Change it to $?TERM_PROGRAM

Evidently, Apple's Terminal application sets TERM_PROGRAM, so the 
'rc' script works with Terminal, but other applications do not.

This assumes you've configured your startup scripts, .cshrc, .tcshrc 
or whatever to somehow use the Apple-supplied version in 
/usr/share/tcsh/examples.
Note also that the location of this file was different in 10.1, where 
it was used by default. But it is not used by default in 10.2 (see 
/etc/csh.cshrc).

hope this helps
-Don

At 5:50 PM +0100 10/4/02, Henry Todd wrote:
>Hiya -
>
>I'm trying to get a working X windows system on my PowerBook, but 
>I'm having problems getting it started.
>
>My setup: 10.2.1, Package manager version: 0.10.0.cvs, Distribution 
>version: 0.4.0.cvs, XDarwin 1.1.
>
>I installed the xfree86-base and xfree86-rootless packages, then the 
>windowmaker package. I ran the wmaker.inst script to set up my 
>GNUstep directory and .xinitrc, and fired up XDarwin.app.
>
>But XDarwin quits immediately after asking me if I want rootless or 
>not. This is a dump from Console.app:
>
>>2002-10-04 17:31:56.932 XDarwin[16556]
>>XDarwin 1.1
>>
>>XFree86 Version 4.2.0 / X Window System
>>(protocol Version 11, revision 0, vendor release 6600)
>>Release Date: 11 March 2002
>>      If the server is older than 6-12 months, or if your hardware is
>>      newer than the above date, look for a newer version before
>>      reporting problems.  (See http://www.XFree86.Org/FAQ)
>>Operating System: Darwin
>>Using keymapping provided in /System/Library/Keyboards/USA.keymapping.
>>_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
>>Warning: no access to tty (Inappropriate ioctl for device).
>>Thus no job control in this shell.
>>TERM_PROGRAM: Undefined variable.
>>/Applications/XDarwin.app/Contents/Resources/startXClients: 
>>/usr/X11R6/bin/xinit: Permission denied
>>/Applications/XDarwin.app/Contents/Resources/startXClients: exec: 
>>/usr/X11R6/bin/xinit: cannot execute: Undefined error: 0
>>2002-10-04 17:31:57.339 XDarwin[16556] X client process terminated 
>>with status 126.
>>Display mode: Rootless Quartz
>>Screen 0 added: 1152x747 @ (0,21)
>>Screen 0 placed at X11 coordinate (0,0).
>>Quitting XDarwin...
>
>Reading through the FAQ and X11 docs on the fink site I saw that the 
>'no access to tty' error is harmless, but I'm unsure about the 
>'TERM_PROGRAM: Undefined variable' and the two 
>'/usr/X11R6/bin/xinit' messages.
>
>I checked the permissions on xinit:
>
>>% ls -l /usr/X11R6/bin/xinit
>>-rw-r--r--  1 root  unknown  19808 Sep 13 23:44 /usr/X11R6/bin/xinit
>
>It seems I don't have execute permission - but I'm reticent to go 
>changing permissions on root owned files put there by fink.
>
>Could this be the cause of the errors? I couldn't find any mention 
>of this error in the fink docs, or on the XDarwin forums. Has anyone 
>else had the same troubles?
>
>Any help is most welcome - I'd like to get this working before the 
>deadlines roll around!
>
>Many thanks,
>
>Henry.
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>Fink-users mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/fink-users


-- 
--------------------------------------
Don MacQueen
Environmental Protection Department
Lawrence Livermore National Laboratory
Livermore, CA, USA
--------------------------------------


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to