gcc -I/sw/include -Iext/gd/ -I/Users/sean/php/src/php-5.2.2/ext/gd/ -DPHP_ATOM_INC -I/Users/sean/php/src/php-5.2.2/include -I/Users/sean/php/src/php-5.2.2/main -I/Users/sean/php/src/php-5.2.2 -I/usr/include/libxml2 -I/Users/sean/php/src/php-5.2.2/ext/date/lib -I/sw/include -I/sw/lib/freetype2/include -I/sw/lib/freetype2/include/freetype2 -I/Users/sean/php/src/php-5.2.2/ext/mbstring/oniguruma -I/Users/sean/php/src/php-5.2.2/ext/mbstring/libmbfl -I/Users/sean/php/src/php-5.2.2/ext/mbstring/libmbfl/mbfl -I/usr/local/mysql/include -I/Users/sean/php/src/php-5.2.2/TSRM -I/Users/sean/php/src/php-5.2.2/Zend -no-cpp-precomp -I/usr/include -g -O0 -Wall -c /Users/sean/php/src/php-5.2.2/ext/gd/gd.c -o ext/gd/gd.o
/Users/sean/php/src/php-5.2.2/ext/gd/gd.c: In function 'zm_info_gd':
/Users/sean/php/src/php-5.2.2/ext/gd/gd.c:1374: error: 'FREETYPE_MAJOR' undeclared (first use in this function)
/Users/sean/php/src/php-5.2.2/ext/gd/gd.c:1374: error: (Each undeclared identifier is reported only once
/Users/sean/php/src/php-5.2.2/ext/gd/gd.c:1374: error: for each function it appears in.)
/Users/sean/php/src/php-5.2.2/ext/gd/gd.c:1374: error: 'FREETYPE_MINOR' undeclared (first use in this function)
make: *** [ext/gd/gd.lo] Error 1