movEAX_444
09-16-2006, 04:28 PM
I have been getting the error below while trying to compile freetype 1.3. (I'm on Slackware 10.2)
arch/unix/../../../lib -I/home/user/freetype-pre1.4/test/arch/unix/../../../lib/extend -g -O2 -I/usr/X11R6/include -Wall -pedantic -ansi -DX11 -DLOCALEDIR='"/usr/local/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:1074:33: pasting "." and "initial_overhead" does not give a valid preprocessing token
ftdump.c:1093:28: pasting "." and "face_object" does not give a valid preprocessing token
make[1]: *** [ftdump.o] Error 1
make[1]: Leaving directory `/home/user/freetype-pre1.4/test'
make: *** [tttest] Error 2
I was looking for a solution and found a few answers. One said to downgrade gcc (I was using 3.3.6) because the new one is more restrictive. I did not do this because I later found another thread said this issue was fixed in the CVS pre1.4, but I tried that and the problem persisted. I had gcc 3.3.6 and gcc 3.4.6 installed and neither worked. I did not want to install another gcc just to fix this, so I kept looking.
I came across http://gcc.gnu.org/ml/gcc-help/2003-04/msg00213.html
so what I did was check test/ftdump.c, which was the file giving me the problem, and then omiting the ## from lines 172 and 201. Just search ftdump.c for PRINT_MEM and FOOTPRINT and remove the ##s from each. I saved the file and hit 'make' and it compiled and works just fine.
I have posted this because I found it frustrating to find an answer and figured people will find this via Google if they get stuck where I was.
arch/unix/../../../lib -I/home/user/freetype-pre1.4/test/arch/unix/../../../lib/extend -g -O2 -I/usr/X11R6/include -Wall -pedantic -ansi -DX11 -DLOCALEDIR='"/usr/local/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:1074:33: pasting "." and "initial_overhead" does not give a valid preprocessing token
ftdump.c:1093:28: pasting "." and "face_object" does not give a valid preprocessing token
make[1]: *** [ftdump.o] Error 1
make[1]: Leaving directory `/home/user/freetype-pre1.4/test'
make: *** [tttest] Error 2
I was looking for a solution and found a few answers. One said to downgrade gcc (I was using 3.3.6) because the new one is more restrictive. I did not do this because I later found another thread said this issue was fixed in the CVS pre1.4, but I tried that and the problem persisted. I had gcc 3.3.6 and gcc 3.4.6 installed and neither worked. I did not want to install another gcc just to fix this, so I kept looking.
I came across http://gcc.gnu.org/ml/gcc-help/2003-04/msg00213.html
so what I did was check test/ftdump.c, which was the file giving me the problem, and then omiting the ## from lines 172 and 201. Just search ftdump.c for PRINT_MEM and FOOTPRINT and remove the ##s from each. I saved the file and hit 'make' and it compiled and works just fine.
I have posted this because I found it frustrating to find an answer and figured people will find this via Google if they get stuck where I was.