On 5/08/12 10:01, Peter Dyballa wrote:
>
> Am 05.08.2012 um 02:24 schrieb Kevin Horton:
>
>> In file included from ./Plugins/Ghostscript/ghostscript.cpp:12:
>> Plugins/Ghostscript/ghostscript.hpp:18:10: fatal error: 'X11/Xlib.h' file 
>> not found
>> #include <X11/Xlib.h>
>>         ^
>> 1 error generated.
>> make[1]: *** [Objects/ghostscript.o] Error 1
>
> It seems you need to install X11.

No. he has X11 installed on 10.8. Otherwise the build wouldn't even 
begin, because texmacs Builddepends on x11-dev.

I know about the problem and hope to have a working texmacs package 
soon. Let me explain:

The situation is that on 10.8, Apple install a couple of useful symlinks 
for X11, namely /usr/X11R6->/usr/X11 and /usr/X11->/opt/X11, but not the 
symlink /usr/include/X11->/usr/X11/include/X11 that used to be there in 
previous OS versions. Asked about this, they claim that this is by 
purpose and that this symlink should have been dropped a long time ago.

I don't think it would be a good idea to reintroduce this symlink 
ourselves, because any software update would have a chance to remove it.

Unfortunately, a lot of auto-tools based build systems, among them 
texmacs', break when this symlink is absent, because they "forget" to 
place -I/usr/X11/include on the compiler command line when there are 
source files that use "#include <X11/Xlib.h>". This is really a 
programming bug, because configure detects correctly (or is told about) 
--x-includes=/usr/X11/include, the code just does not use it afterwards.

In some packages, this is easy to fix, in others like texmacs which is 
only partly auto-tools based and has an ingenious handcrafted 
makefile.in, it is harder. Texmacs also offers an alternative cmake 
based build system, but I would prefer to avoid using it, because if 
this does not work correctly, it is even harder to fix.

-- 
Martin




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to