On Mar 3, 2004, at 3:13 PM, Martin Costabel wrote:

GoochRules! wrote:
[]
gcc3 -c -I. -I/sw/src/freetype-hinting-1.3.1-8/freetype-1.3.1/test/arch/unix/../ .. -I.. -I/sw/src/freetype-hinting-1.3.1-8/freetype-1.3.1/test/arch/unix/../ ../ ./lib -I/sw/src/freetype-hinting-1.3.1-8/freetype-1.3.1/test/arch/unix/../ ../ ./lib/extend -no-cpp-precomp -I/sw/include -I/usr/X11R6/include -no-cpp-precomp -I/sw/include -DX11 -DLOCALEDIR='"/sw/share/locale"' ftdump.c
ftdump.c:172:29: pasting "." and "glyph_object" does not give a valid preprocessing token
[]
Failed: compiling freetype-hinting-1.3.1-8 failed
Firstly, I find it odd that a package in stable/main does not build.

Errm, you are building version 1.3.1-8 from unstable, not 1.3.1-6 from stable. But anyway, there is no real difference between the two, as far as compilation is concerned.

interesting... I can find no trace of 1.3.1-8 on my system. I have 1.3.1-6 in stable as well as 1.3.1-6 and 1.3.1-7 in unstable. Like I said before, I've no experience in patching fink packages, and I'd apperciate any pointers on how to do it correctly.


Probably because of these macro-patching problems, this package actually uses "gcc3" for compiling, which is gcc-3.1 and does *not* produce errors at these lines, only warnings. From the fact that you get errors, I conclude that on your system, "gcc3" is in fact gcc-3.3. What do you get from "gcc3 -v"? Both this and "ls -l /usr/bin/gcc*" should show that gcc3 is gcc-3.1 and not gcc-3.3.

Quite right... in fact I don't even have gcc-3.1 installed. But that dosen't help understand why my patch dosen't work (which I think I forgot to attach, I have this time). I suppose I could install gcc3.1 and be done with all this, but if these macros cause warnings with 3.1 then should not something be done to remove the warnings? I have a feeling gcc3.1 allows the macro pasting for backward compatibility, and gcc3.3 does not. Thus the code still is malformed and should be fixed. I do realize freetype version 1.x does not have a maintainer... I'd be happy to take that role, if only I knew what I was doing.


--MP

Attachment: freetype-hinting-1.3.1-6.patch
Description: Binary data



Reply via email to