This got me past the configure script, but then I get errors during compilation:
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
ftdump.c:182:31: pasting "." and "first_instance" does not give a valid preprocessing token
ftdump.c:191:32: pasting "." and "second_instance" does not give a valid preprocessing token
ftdump.c:201:62: pasting "." and "face_object" does not give a valid preprocessing token
ftdump.c:202:62: pasting "." and "glyph_object" does not give a valid preprocessing token
ftdump.c:203:62: pasting "." and "second_instance" does not give a valid preprocessing token
ftdump.c:863:33: pasting "." and "initial_overhead" does not give a valid preprocessing token
ftdump.c:882:28: pasting "." and "face_object" does not give a valid preprocessing token
make[1]: *** [ftdump.o] Error 1
make: *** [tttest] Error 2
After looking at this more thoroughly, these errors appear to be cause by two macros defined in test/ftdump.c:
143: #define FOOTPRINT( field ) Save_Memory( &memory_footprint.##field )
155: #define PRINT_MEM( field, string ) \ 156: Print_Mem( memory_footprint.##field, string )
It appears that they are simply calling a function with a specific member of a global struct by way of macro-string pasting (i.e., ##). It also appears that the '##' operators are totally unnecessary (I ever wonder why the macro pasting is necessary in gcc3 -- my best guess is that at one time 'memory_footprint' was not a struct, but a prefix to a set of global data values. To my knowlege, in this case macro pasting would work and make sense). Removing them allows 'make' from the parent directory to complete.
Here's a unified diff, for anyone interested:
I've tried adding this to freetype-hinting-1.3.1-6.info without any success. (I added the line `Patch: %n.patch` between `PatchScript:...` and `InstallScript:...`
--- ftdump.c Fri Feb 6 13:07:29 2004 +++ ftdump-patch.c Fri Feb 6 13:08:35 2004 @@ -140,7 +140,7 @@ old_memory += *var; }
-#define FOOTPRINT( field ) Save_Memory( &memory_footprint.##field ) +#define FOOTPRINT( field ) Save_Memory( &memory_footprint.field )
static void @@ -153,7 +153,7 @@ }
#define PRINT_MEM( field, string ) \ - Print_Mem( memory_footprint.##field, string ) + Print_Mem( memory_footprint.field, string )
/* Print the memory footprint */
--Matthew
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users