Re: Use of xmkmf
Re: Use of xmkmf
- Subject: Re: Use of xmkmf
- From: Martin Costabel <email@hidden>
- Date: Fri, 28 Nov 2003 23:40:53 +0100
Lukas Fried wrote:
On Nov 28, 2003, at 1:07 PM, Alvaro Alvarez Parrilla wrote:
Since I installed Panther (together with apple's new version of X11
and DevTools) I have been unable to use the above command. I get the
following message:
alvaro% xmkmf
tcsh: usage=usage: /usr/X11R6/bin/xmkmf [-a] [top_of_sources_pathname
[current_directory]]: Command not found.
tcsh: configdirspec=-I/usr/X11R6/lib/X11/config: Command not found.
tcsh: topdir=: Command not found.
tcsh: curdir=.: Command not found.
tcsh: do_all=: Command not found.
tcsh: imake_defines=: Command not found.
tcsh: while: Expression Syntax.
alvaro%
I have the same problem, but using bash instead of tcsh seemed to work
for me.
The problem here is that Apple used their own broken binutils for
compiling X11 :-) The preprocessor /usr/bin/cpp that comes with Panther
is a piece of crap.
The result is that more than 800 files in /usr/X11R6, scripts like
startx and xmkmf and all man pages, have an extra first line starting
with "#pragma GCC set_debug_pwd". In the case of the man pages this is
just ugly, but in the case of the scripts it is fatal, because the line
starting with "#!/bin/sh" works only when it is the first line, not when
it is the second line. Therefore these scripts are run not in /bin/sh as
they should, but in whatever shell is used to call them.
The remedy is simple - just remove these first lines - so Apple (who
have known about this bug since before Panther hit the shelves) could
repair this for everybody easily with any software update. But since
this bug hits only geeks who run such scripts by hand from a non-default
shell, my guess is that they will not fix it anytime soon.
--
Martin
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.