I have hit the same problem with 2.3.5: ttgload.c(1406) : error C2037: left of 'GS' specifies undefined struct/union 'TT_ExecContextRec_' ttgload.c(1418) : error C2037: left of 'GS' specifies undefined struct/union 'TT_ExecContextRec_'
It seems to occur when *all* bytecode interpretation is disabled by turning off TT_CONFIG_OPTION_BYTECODE_INTERPRETER *and* TT_CONFIG_OPTION_UNPATENTED_HINTING in ftoption.h so that TT_USE_BYTECODE_INTERPRETER is not defined. In this case the compile of ttgload.c fails because the definition of TT_ExecContextRec_ is not included. It looks as though these lines of code will not be executed when TT_USE_BYTECODE_INTERPRETER is undefined because (loader->exec) will be NULL, and so a fix might be to enclose these lines of code (and the then unused declaration of Saved_GS) in more #ifdef TT_USE_BYTECODE_INTERPRETER - #endif statements. suzuki toshiya wrote: > >> Benjamin Reed wrote: >>> I'm trying to build 2.3.5 on OSX 10.4, and I get this error: >>> >>> gcc -pedantic -ansi >>> -I/Volumes/Shared/fink.build/freetype219/freetype-2.3.5/objs >>> -I./builds/unix >>> -I/Volumes/Shared/fink.build/freetype219/freetype-2.3.5/include -c >>> -Wall -g -O2 -DFT_CONFIG_OPTION_SYSTEM_ZLIB -DHAVE_ANSI_OS_INLINE=1 >>> "-DFT_CONFIG_CONFIG_H=<ftconfig.h>" -DFT2_BUILD_LIBRARY >>> "-DFT_CONFIG_MODULES_H=<ftmodule.h>" >>> -I/Volumes/Shared/fink.build/freetype219/freetype-2.3.5/src/truetype >>> /Volumes/Shared/fink.build/freetype219/freetype-2.3.5/src/truetype/truetype.c >>> >>> >>> -fno-common -DPIC -o >>> /Volumes/Shared/fink.build/freetype219/freetype-2.3.5/objs/.libs/truetype.o >>> >>> In file included from >>> /Volumes/Shared/fink.build/freetype219/freetype-2.3.5/src/truetype/truetype.c:24: >>> >>> >>> /Volumes/Shared/fink.build/freetype219/freetype-2.3.5/src/truetype/ttgload.c: >>> >>> >>> In function 'load_truetype_glyph': >>> /Volumes/Shared/fink.build/freetype219/freetype-2.3.5/src/truetype/ttgload.c:1406: >>> >>> >>> error: dereferencing pointer to incomplete type >>> /Volumes/Shared/fink.build/freetype219/freetype-2.3.5/src/truetype/ttgload.c:1418: >>> >>> >>> error: dereferencing pointer to incomplete type >>> >>> Any ideas what's going on? >>> >>> > -- View this message in context: http://www.nabble.com/2.3.5-compile-error-on-Mac-OS-X-tf4035920.html#a14172942 Sent from the Freetype - User mailing list archive at Nabble.com. _______________________________________________ Freetype mailing list Freetype@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype