You need to build gdchart with the same settings as libgd was built with. Please answer the following questions: Build JPEG support? [y] y Build Freetype support? [y] y Build XPM support? [y] y Checking if your kit is complete... Looks good Note (probably harmless): No library found for -lgd Note (probably harmless): No library found for -lpng Note (probably harmless): No library found for -ljpeg Note (probably harmless): No library found for -lfreetype Note (probably harmless): No library found for -lXpm Note (probably harmless): No library found for -lgd Note (probably harmless): No library found for -lpng Note (probably harmless): No library found for -ljpeg Note (probably harmless): No library found for -lfreetype Note (probably harmless): No library found for -lXpm Writing Makefile for GD::Chart::gdchart Writing Makefile for GD::Chart cp Chart.pm blib/lib/GD/Chart.pm cd gdchart0.11.4dev && make gcc -c -fno-common -DPERL_DARWIN -no-cpp-precomp -arch ppc -arch i386 -nostdinc -B/Developer/SDKs/MacOSX10.4u.sdk/usr/include/gcc -B/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc -isystem/Developer/SDKs/MacOSX10.4u.sdk/usr/include -F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks -mmacosx-version-min=10.3 -DUSE_SITECUSTOMIZE -DNO_HASH_SEED -fno-strict-aliasing -pipe -O3 -DVERSION=\"\" -DXS_VERSION=\"\" "-I/Users/cpanrun/pristine/5.8.7/lib/5.8.7/darwin-thread-multi-2level/CORE" -DHAVE_LIBFREETYPE array_alloc.c gcc -c -fno-common -DPERL_DARWIN -no-cpp-precomp -arch ppc -arch i386 -nostdinc -B/Developer/SDKs/MacOSX10.4u.sdk/usr/include/gcc -B/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc -isystem/Developer/SDKs/MacOSX10.4u.sdk/usr/include -F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks -mmacosx-version-min=10.3 -DUSE_SITECUSTOMIZE -DNO_HASH_SEED -fno-strict-aliasing -pipe -O3 -DVERSION=\"\" -DXS_VERSION=\"\" "-I/Users/cpanrun/pristine/5.8.7/lib/5.8.7/darwin-thread-multi-2level/CORE" -DHAVE_LIBFREETYPE gdc.c In file included from gdc.c:7: gdc.h:27:16: error: gd.h: No such file or directory gdc.h:28:21: error: gdfonts.h: No such file or directory gdc.h:29:21: error: gdfontt.h: No such file or directory gdc.h:30:22: error: gdfontmb.h: No such file or directory gdc.h:31:21: error: gdfontg.h: No such file or directory gdc.h:32:21: error: gdfontl.h: No such file or directory In file included from gdc.c:7: gdc.h:27:16: In file included from gdc.h:33, from gdc.c:7: gifencode.h:7: error: parse error before 'im' error: gd.h: No such file or directory gifencode.h:8: error: parse error before 'gdImageCreateFromGif' gifencode.h:8: error: parse error before '*' token gifencode.h:8: warning: data definition has no type or storage class gdc.h:28:21: error: gdfonts.h: No such file or directory gdc.h:29:21: error: gdfontt.h: No such file or directory gdc.h:30:22: error: gdfontmb.h: No such file or directory gdc.h:31:21: error: gdfontg.h: No such file or directory gdc.h:32:21: error: gdfontl.h: No such file or directory In file included from gdc.c:7: gdc.h:109: error: parse error before 'gdFontPtr' gdc.h:109: warning: no semicolon at end of struct or union gdc.h:112: error: parse error before '}' token In file included from gdc.h:33, from gdc.c:7: gifencode.h:7: error: parse error before 'im' gifencode.h:8: error: parse error before 'gdImageCreateFromGif'gdc.h:124: error: parse error before 'struct' gifencode.h:8: error: parse error before '*' token gifencode.h:8: warning: data definition has no type or storage class gdc.h:132: error: array type has incomplete element type gdc.h:154: error: parse error before 'FILE' gdc.c:9: error: array type has incomplete element type gdc.c:9: error: 'gdFontPtr' undeclared here (not in a function) gdc.c:9: error: parse error before 'NULL' gdc.c:10: error: parse error before 'NULL' gdc.c:11: error: parse error before 'NULL' gdc.c:12: error: parse error before 'NULL' gdc.c:13: error: parse error before 'NULL' gdc.c:14: error: parse error before 'NULL'In file included from gdc.c:7: gdc.h:109: error: parse error before 'gdFontPtr' gdc.h:109: warning: no semicolon at end of struct or union gdc.h:112: error: parse error before '}' token gdc.c: In function 'load_font_conversions': gdc.c:25: error: 'gdFontTiny' undeclared (first use in this function) gdc.c:25: error: (Each undeclared identifier is reported only once gdc.c:25: error: for each function it appears in.) gdc.c:27: error: 'gdFontSmall' undeclared (first use in this function) gdc.c:28: error: 'gdFontMediumBold' undeclared (first use in this function) gdc.h:124: error: parse error before 'struct'gdc.c:29: error: 'gdFontLarge' undeclared (first use in this function) gdc.c:30: error: 'gdFontGiant' undeclared (first use in this function) gdc.h:132: error: array type has incomplete element type gdc.h:154: error: parse error before 'FILE' gdc.c:9: error: array type has incomplete element type gdc.c:9: error: 'gdFontPtr' undeclared here (not in a function) gdc.c:9: error: parse error before 'NULL' gdc.c:10: error: parse error before 'NULL' gdc.c:11: error: parse error before 'NULL' gdc.c:12: error: parse error before 'NULL' gdc.c:13: error: parse error before 'NULL' gdc.c:14: error: parse error before 'NULL' gdc.c: In function 'load_font_conversions': gdc.c:25: error: 'gdFontTiny' undeclared (first use in this function) gdc.c:25: error: (Each undeclared identifier is reported only once gdc.c:25: error: for each function it appears in.) gdc.c: At top level: gdc.c:75: error: parse error before 'im'gdc.c:27: error: 'gdFontSmall' undeclared (first use in this function) gdc.c:28: error: 'gdFontMediumBold' undeclared (first use in this function) gdc.c:29: error: 'gdFontLarge' undeclared (first use in this function) gdc.c:30: error: 'gdFontGiant' undeclared (first use in this function) gdc.c: In function 'GDCImageStringNL': gdc.c:88: error: 'NULL' undeclared (first use in this function) gdc.c:92: error: 'ftfont' undeclared (first use in this function) gdc.c:92: error: 'ftptsz' undeclared (first use in this function) gdc.c:112: error: 'rad' undeclared (first use in this function) gdc.c:117: error: 'x' undeclared (first use in this function) gdc.c:118: error: 'y' undeclared (first use in this function) gdc.c:119: error: 'im' undeclared (first use in this function) gdc.c: At top level: gdc.c:121: error: 'clr' undeclared (first use in this function)gdc.c:75: error: parse error before 'im' gdc.c:127: error: 'str' undeclared (first use in this function) gdc.c:127: warning: assignment makes pointer from integer without a cast gdc.c:129: error: 'sts' undeclared (first use in this function) gdc.c: In function 'GDCImageStringNL': gdc.c:88: error: 'NULL' undeclared (first use in this function) gdc.c:92: error: 'ftfont' undeclared (first use in this function) gdc.c:92: error: 'ftptsz' undeclared (first use in this function) gdc.c:112: error: 'rad' undeclared (first use in this function) gdc.c:166: error: 'justify' undeclared (first use in this function) gdc.c:169: error: 'f' undeclared (first use in this function) gdc.c:117: error: 'x' undeclared (first use in this function) gdc.c:118: error: 'y' undeclared (first use in this function) gdc.c:119: error: 'im' undeclared (first use in this function) gdc.c:121: error: 'clr' undeclared (first use in this function) gdc.c:127: error: 'str' undeclared (first use in this function) gdc.c:127: warning: assignment makes pointer from integer without a cast gdc.c:129: error: 'sts' undeclared (first use in this function) gdc.c: At top level: gdc.c:202: error: parse error before 'im' gdc.c:166: error: 'justify' undeclared (first use in this function) gdc.c:169: error: 'f' undeclared (first use in this function) gdc.c: In function 'GDCfnt_sz': gdc.c:218: error: 'NULL' undeclared (first use in this function) gdc.c:226: error: 'gdImagePtr' undeclared (first use in this function) gdc.c:226: error: parse error before 'NULL' gdc.c: At top level: gdc.c:244: error: parse error before '.' token gdc.c: In function 'GDC_destroy_image': gdc.c: At top level: gdc.c:255: error: 'gdImagePtr' undeclared (first use in this function)gdc.c:202: error: parse error before 'im' gdc.c:255: error: parse error before 'im' gdc.c: At top level: gdc.c:262: error: parse error before 'FILE'gdc.c: In function 'GDCfnt_sz': gdc.c:218: error: 'NULL' undeclared (first use in this function) gdc.c: In function 'out_err': gdc.c:268: error: 'gdImagePtr' undeclared (first use in this function) gdc.c:268: error: parse error before 'im' gdc.c:226: error: 'gdImagePtr' undeclared (first use in this function) gdc.c:226: error: parse error before 'NULL' gdc.c:274: error: 'NULL' undeclared (first use in this function) gdc.c:275: error: 'im' undeclared (first use in this function) gdc.c:277: error: 'IMGWIDTH' undeclared (first use in this function) gdc.c:277: error: 'IMGHEIGHT' undeclared (first use in this function) gdc.c: At top level: gdc.c:244: error: parse error before '.' token gdc.c:279: error: 'BGColor' undeclared (first use in this function) gdc.c:280: error: 'LineColor' undeclared (first use in this function) gdc.c:283: error: 'gdFontMediumBold' undeclared (first use in this function) gdc.c: In function 'GDC_destroy_image': gdc.c:284: warning: incompatible implicit declaration of built-in function 'strlen' gdc.c:255: error: 'gdImagePtr' undeclared (first use in this function) gdc.c:284: error: 'err_str' undeclared (first use in this function)gdc.c:255: error: parse error before 'im' gdc.c: At top level: gdc.c:262: error: parse error before 'FILE' gdc.c:292: error: 'fptr' undeclared (first use in this function) gdc.c: In function 'out_err': gdc.c:268: error: 'gdImagePtr' undeclared (first use in this function) gdc.c:268: error: parse error before 'im' gdc.c:274: error: 'NULL' undeclared (first use in this function) gdc.c:275: error: 'im' undeclared (first use in this function) gdc.c:277: error: 'IMGWIDTH' undeclared (first use in this function) gdc.c:277: error: 'IMGHEIGHT' undeclared (first use in this function) gdc.c:279: error: 'BGColor' undeclared (first use in this function) gdc.c:280: error: 'LineColor' undeclared (first use in this function) gdc.c:283: error: 'gdFontMediumBold' undeclared (first use in this function) gdc.c:284: warning: incompatible implicit declaration of built-in function 'strlen' gdc.c:284: error: 'err_str' undeclared (first use in this function) gdc.c:292: error: 'fptr' undeclared (first use in this function) lipo: can't open input file: /var/tmp//cc6Fdxkc.out (No such file or directory) make[1]: *** [gdc.o] Error 1 make: *** [gdchart0.11.4dev/libgdc.a] Error 2