Hi again, I started again to see if I could get it to work. I first removed everything (libpng, libjpeg, zlib, and PHP). Then as before I followed the info in the link below. Now I get the following when I run make for PHP. Note also that I can not compile gd on it's own, I had to find a Slackware package for it. Could this be the problem? Again, I have no idea what else to do as I have followed all the info I could find on how to get this to work. I have also included some info on gd below.
Thanks /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c -o ext/gd/libgd/gd_jpeg.o && echo > ext/gd/libgd/gd_jpeg.lo /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:38:21: jpeglib.h: No such file or directory /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:39:20: jerror.h: No such file or directory /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:49: error: parse error before "cinfo" /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c: In function `fatal_jpeg_error': /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:54: error: `cinfo' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:54: error: (Each undeclared identifier is reported only once /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:54: error: for each function it appears in.) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c: At top level: /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:96: error: parse error before "cinfo" /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c: In function `gdImageJpegCtx': /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:100: error: storage size of `cinfo' isn't known /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:101: error: storage size of `jerr' isn't known /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:104: error: syntax error before "row" /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:105: error: `JSAMPROW' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:107: error: `JDIMENSION' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:107: error: parse error before "nlines" /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:117: error: `row' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:130: error: `JCS_RGB' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:133: error: `TRUE' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:143: error: parse error before "_safe_emalloc" /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:144: error: `JSAMPLE' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:145: error: `rowptr' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:150: error: `JPEG_LIB_VERSION' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:154: error: `JPEG_COM' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:171: error: `nlines' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:194:2: #error IJG JPEG library BITS_IN_JSAMPLE value must be 8 or 12 /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c: At top level: /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:230: error: parse error before "cinfo" /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c: In function `gdImageCreateFromJpegCtx': /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:240: error: storage size of `cinfo' isn't known /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:241: error: storage size of `jerr' isn't known /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:244: error: syntax error before "row" /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:246: error: `JSAMPROW' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:246: error: parse error before "rowptr" /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:249: error: `JDIMENSION' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:249: error: parse error before "nrows" /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:260: error: `row' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:276: error: `JPEG_APP0' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:278: error: `TRUE' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:279: error: `JPEG_HEADER_OK' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:300: error: `JCS_CMYK' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:300: error: `JCS_YCCK' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:303: error: `JCS_RGB' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:330: error: `jpeg_saved_marker_ptr' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:330: error: parse error before "marker" /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:336: error: `marker' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:354: error: `JSAMPLE' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:356: error: `rowptr' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:360: error: syntax error before "currow" /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:362: error: `nrows' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:367: error: `currow' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:373: error: syntax error before "currow" /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c: At top level: /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:446: error: field `pub' has incomplete type /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:462: error: parse error before "cinfo" /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c: In function `init_source': /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:464: error: `cinfo' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:470: error: `TRUE' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c: At top level: /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:509: error: parse error before "cinfo" /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c: In function `fill_input_buffer': /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:511: error: `cinfo' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:534: error: `JERR_INPUT_EMPTY' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:536: error: `JWRN_JPEG_EOF' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:539: error: `JPEG_EOI' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:545: error: `FALSE' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:547: error: `TRUE' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c: At top level: /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:563: error: parse error before "cinfo" /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c: In function `skip_input_data': /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:565: error: `cinfo' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:570: error: `num_bytes' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c: At top level: /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:602: error: parse error before "cinfo" /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:617: error: parse error before "cinfo" /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c: In function `jpeg_gdIOCtx_src': /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:628: error: `cinfo' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:630: error: `j_common_ptr' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:630: error: parse error before "cinfo" /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:632: error: parse error before "cinfo" /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:640: error: `jpeg_resync_to_restart' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:642: error: `infile' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c: At top level: /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:651: error: field `pub' has incomplete type /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:665: error: parse error before "cinfo" /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c: In function `init_destination': /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:667: error: `cinfo' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:670: error: `j_common_ptr' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:670: error: parse error before "cinfo" /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c: At top level: /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:700: error: parse error before "cinfo" /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c: In function `empty_output_buffer': /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:702: error: `cinfo' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:705: error: `JERR_FILE_WRITE' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:711: error: `TRUE' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c: At top level: /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:724: error: parse error before "cinfo" /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c: In function `term_destination': /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:726: error: `cinfo' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:731: error: `JERR_FILE_WRITE' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c: At top level: /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:742: error: parse error before "cinfo" /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c: In function `jpeg_gdIOCtx_dest': /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:752: error: `cinfo' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:753: error: `j_common_ptr' undeclared (first use in this function) /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:753: error: parse error before "cinfo" /home/shared/php-5.0.0/ext/gd/libgd/gd_jpeg.c:760: error: `outfile' undeclared (first use in this function) make: *** [ext/gd/libgd/gd_jpeg.lo] Error 1 ------------- ** Configuration summary for gd 2.0.33: Support for PNG library: yes Support for JPEG library: yes Support for Freetype 2.x library: yes Support for Fontconfig library: yes Support for Xpm library: yes Support for pthreads: yes gd_jpeg.c:47:21: jpeglib.h: No such file or directory gd_jpeg.c:48:20: jerror.h: No such file or directory gd_jpeg.c:60: error: parse error before "cinfo" gd_jpeg.c: In function `fatal_jpeg_error': gd_jpeg.c:65: error: `cinfo' undeclared (first use in this function) gd_jpeg.c:65: error: (Each undeclared identifier is reported only once gd_jpeg.c:65: error: for each function it appears in.) gd_jpeg.c: At top level: gd_jpeg.c:112: error: parse error before "cinfo" gd_jpeg.c: In function `gdImageJpegCtx': gd_jpeg.c:116: error: storage size of `cinfo' isn't known gd_jpeg.c:117: error: storage size of `jerr' isn't known gd_jpeg.c:120: error: syntax error before "row" gd_jpeg.c:121: error: `JSAMPROW' undeclared (first use in this function) gd_jpeg.c:123: error: `JDIMENSION' undeclared (first use in this function) gd_jpeg.c:123: error: parse error before "nlines" gd_jpeg.c:149: error: `row' undeclared (first use in this function) gd_jpeg.c:161: error: `JCS_RGB' undeclared (first use in this function) gd_jpeg.c:164: error: `TRUE' undeclared (first use in this function) gd_jpeg.c:178: error: parse error before "gdCalloc" gd_jpeg.c:188: error: `rowptr' undeclared (first use in this function) gd_jpeg.c:193: error: `JPEG_LIB_VERSION' undeclared (first use in this function) gd_jpeg.c:198: error: `JPEG_COM' undeclared (first use in this function) gd_jpeg.c:222: error: `nlines' undeclared (first use in this function) gd_jpeg.c:250:2: #error IJG JPEG library BITS_IN_JSAMPLE value must be 8 or 12 gd_jpeg.c: At top level: gd_jpeg.c:283: error: parse error before "cinfo" gd_jpeg.c: In function `gdImageCreateFromJpegCtx': gd_jpeg.c:293: error: storage size of `cinfo' isn't known gd_jpeg.c:294: error: storage size of `jerr' isn't known gd_jpeg.c:297: error: syntax error before "row" gd_jpeg.c:299: error: `JSAMPROW' undeclared (first use in this function) gd_jpeg.c:299: error: parse error before "rowptr" gd_jpeg.c:301: error: `JDIMENSION' undeclared (first use in this function) gd_jpeg.c:301: error: parse error before "nrows" gd_jpeg.c:318: error: `row' undeclared (first use in this function) gd_jpeg.c:333: error: `JPEG_APP0' undeclared (first use in this function) gd_jpeg.c:335: error: `TRUE' undeclared (first use in this function) gd_jpeg.c:336: error: `JPEG_HEADER_OK' undeclared (first use in this function) gd_jpeg.c:360: error: `JCS_CMYK' undeclared (first use in this function) gd_jpeg.c:361: error: `JCS_YCCK' undeclared (first use in this function) gd_jpeg.c:367: error: `JCS_RGB' undeclared (first use in this function) gd_jpeg.c:444: error: `jpeg_saved_marker_ptr' undeclared (first use in this function) gd_jpeg.c:444: error: parse error before "marker" gd_jpeg.c:453: error: `marker' undeclared (first use in this function) gd_jpeg.c:481: error: `JSAMPLE' undeclared (first use in this function) gd_jpeg.c:488: error: `rowptr' undeclared (first use in this function) gd_jpeg.c:493: error: syntax error before "currow" gd_jpeg.c:495: error: `nrows' undeclared (first use in this function) gd_jpeg.c:502: error: `currow' undeclared (first use in this function) gd_jpeg.c:514: error: syntax error before "currow" gd_jpeg.c: At top level: gd_jpeg.c:634: error: field `pub' has incomplete type gd_jpeg.c:653: error: parse error before "cinfo" gd_jpeg.c: In function `init_source': gd_jpeg.c:655: error: `cinfo' undeclared (first use in this function) gd_jpeg.c:661: error: `TRUE' undeclared (first use in this function) gd_jpeg.c: At top level: gd_jpeg.c:700: error: parse error before "cinfo" gd_jpeg.c: In function `fill_input_buffer': gd_jpeg.c:702: error: `cinfo' undeclared (first use in this function) gd_jpeg.c:739: error: `JERR_INPUT_EMPTY' undeclared (first use in this function) gd_jpeg.c:740: error: `JWRN_JPEG_EOF' undeclared (first use in this function) gd_jpeg.c:743: error: `JPEG_EOI' undeclared (first use in this function) gd_jpeg.c:749: error: `FALSE' undeclared (first use in this function) gd_jpeg.c:751: error: `TRUE' undeclared (first use in this function) gd_jpeg.c: At top level: gd_jpeg.c:768: error: parse error before "cinfo" gd_jpeg.c: In function `skip_input_data': gd_jpeg.c:770: error: `cinfo' undeclared (first use in this function) gd_jpeg.c:775: error: `num_bytes' undeclared (first use in this function) gd_jpeg.c: At top level: gd_jpeg.c:810: error: parse error before "cinfo" gd_jpeg.c:828: error: parse error before "cinfo" gd_jpeg.c: In function `jpeg_gdIOCtx_src': gd_jpeg.c:839: error: `cinfo' undeclared (first use in this function) gd_jpeg.c:842: error: `j_common_ptr' undeclared (first use in this function) gd_jpeg.c:842: error: parse error before "cinfo" gd_jpeg.c:846: error: parse error before "cinfo" gd_jpeg.c:855: error: `jpeg_resync_to_restart' undeclared (first use in this function) gd_jpeg.c:857: error: `infile' undeclared (first use in this function) gd_jpeg.c: At top level: gd_jpeg.c:866: error: field `pub' has incomplete type gd_jpeg.c:882: error: parse error before "cinfo" gd_jpeg.c: In function `init_destination': gd_jpeg.c:884: error: `cinfo' undeclared (first use in this function) gd_jpeg.c:888: error: `j_common_ptr' undeclared (first use in this function) gd_jpeg.c:888: error: parse error before "cinfo" gd_jpeg.c: At top level: gd_jpeg.c:920: error: parse error before "cinfo" gd_jpeg.c: In function `empty_output_buffer': gd_jpeg.c:922: error: `cinfo' undeclared (first use in this function) gd_jpeg.c:926: error: `JERR_FILE_WRITE' undeclared (first use in this function) gd_jpeg.c:931: error: `TRUE' undeclared (first use in this function) gd_jpeg.c: At top level: gd_jpeg.c:945: error: parse error before "cinfo" gd_jpeg.c: In function `term_destination': gd_jpeg.c:947: error: `cinfo' undeclared (first use in this function) gd_jpeg.c:954: error: `JERR_FILE_WRITE' undeclared (first use in this function) gd_jpeg.c: At top level: gd_jpeg.c:966: error: parse error before "cinfo" gd_jpeg.c: In function `jpeg_gdIOCtx_dest': gd_jpeg.c:976: error: `cinfo' undeclared (first use in this function) gd_jpeg.c:979: error: `j_common_ptr' undeclared (first use in this function) gd_jpeg.c:979: error: parse error before "cinfo" gd_jpeg.c:987: error: `outfile' undeclared (first use in this function) make[2]: *** [gd_jpeg.lo] Error 1 make[2]: Leaving directory `/home/beauford/gd-2.0.33' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/beauford/gd-2.0.33' make: *** [all] Error 2 -----Original Message----- From: Beauford [mailto:[EMAIL PROTECTED] Sent: June 19, 2006 6:43 PM To: php-general@lists.php.net Subject: [PHP] GD problems I finally broke down and reinstalled PHP using the info from the site below, but GD is still not working. Phpinfo() shows it is enabled, as are the other libraries. So I'm lost as to what I am missing? http://tanksoftware.com/tutes/installingphp.html Any help is appreciated. B -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php