PHP 4.4.0 won't compile with JPEG support.

From: Date: Wed, 07 Sep 2005 01:10:13 +0000
Subject: PHP 4.4.0 won't compile with JPEG support.
Groups: php.install 
Request: Send a blank email to php-install+get-16629@lists.php.net to get a copy of this message
K, for starters, I'm trying to compile under Slackware Linux 9.1. Here's my configure line: /configure --with-apxs --with-openssl --with-kerberos --with-zlib --enable-bcmath --with-bz2 --enable-exif --enable-ftp --with-gd --with-jpeg-dir --with-png-dir --with-xpm-dir --with-freetype-dir --enable-gd-native-ttf --with-java --with-mime-magic --with-mysql --with-pspell --with-swf=/usr/local If I try to compile it without '--with-jpeg-dir' it works fine. However, if I try to add jpeg support, make fails with the following error: ext/gd/libgd/gd_jpeg.lo(.text+0x24): In function `fatal_jpeg_error': /usr/local/src/php-4.4.0/ext/gd/libgd/gd_jpeg.c:62: undefined reference to `jpeg_destroy' ext/gd/libgd/gd_jpeg.lo(.text+0x123): In function `gdImageJpegCtx': /usr/local/src/php-4.4.0/ext/gd/libgd/gd_jpeg.c:118: undefined reference to `jpeg_std_error' ext/gd/libgd/gd_jpeg.lo(.text+0x18a):/usr/local/src/php-4.4.0/ext/gd/libgd/gd_jpeg.c:130: undefined reference to `jpeg_CreateCompress' ext/gd/libgd/gd_jpeg.lo(.text+0x1bb):/usr/local/src/php-4.4.0/ext/gd/libgd/gd_jpeg.c:136: undefined reference to `jpeg_set_defaults' ext/gd/libgd/gd_jpeg.lo(.text+0x1d2):/usr/local/src/php-4.4.0/ext/gd/libgd/gd_jpeg.c:138: undefined reference to `jpeg_set_quality' ext/gd/libgd/gd_jpeg.lo(.text+0x248):/usr/local/src/php-4.4.0/ext/gd/libgd/gd_jpeg.c:152: undefined reference to `jpeg_start_compress' ext/gd/libgd/gd_jpeg.lo(.text+0x2d1):/usr/local/src/php-4.4.0/ext/gd/libgd/gd_jpeg.c:159: undefined reference to `jpeg_write_marker' ext/gd/libgd/gd_jpeg.lo(.text+0x364):/usr/local/src/php-4.4.0/ext/gd/libgd/gd_jpeg.c:176: undefined reference to `jpeg_write_scanlines' ext/gd/libgd/gd_jpeg.lo(.text+0x399):/usr/local/src/php-4.4.0/ext/gd/libgd/gd_jpeg.c:210: undefined reference to `jpeg_finish_compress' ext/gd/libgd/gd_jpeg.lo(.text+0x3a1):/usr/local/src/php-4.4.0/ext/gd/libgd/gd_jpeg.c:211: undefined reference to `jpeg_destroy_compress' ext/gd/libgd/gd_jpeg.lo(.text+0x43e):/usr/local/src/php-4.4.0/ext/gd/libgd/gd_jpeg.c:203: undefined reference to `jpeg_write_scanlines' ext/gd/libgd/gd_jpeg.lo(.text+0x486):/usr/local/src/php-4.4.0/ext/gd/libgd/gd_jpeg.c:143: undefined reference to `jpeg_simple_progression' ext/gd/libgd/gd_jpeg.lo(.text+0x557): In function `gdImageCreateFromJpegCtx': /usr/local/src/php-4.4.0/ext/gd/libgd/gd_jpeg.c:261: undefined reference to `jpeg_std_error' ext/gd/libgd/gd_jpeg.lo(.text+0x5fc):/usr/local/src/php-4.4.0/ext/gd/libgd/gd_jpeg.c:276: undefined reference to `jpeg_CreateDecompress' ext/gd/libgd/gd_jpeg.lo(.text+0x61b):/usr/local/src/php-4.4.0/ext/gd/libgd/gd_jpeg.c:281: undefined reference to `jpeg_save_markers' ext/gd/libgd/gd_jpeg.lo(.text+0x625):/usr/local/src/php-4.4.0/ext/gd/libgd/gd_jpeg.c:283: undefined reference to `jpeg_read_header' ext/gd/libgd/gd_jpeg.lo(.text+0x6a3):/usr/local/src/php-4.4.0/ext/gd/libgd/gd_jpeg.c:406: undefined reference to `jpeg_destroy_decompress' ext/gd/libgd/gd_jpeg.lo(.text+0x6cf):/usr/local/src/php-4.4.0/ext/gd/libgd/gd_jpeg.c:311: undefined reference to `jpeg_start_decompress' ext/gd/libgd/gd_jpeg.lo(.text+0x7d2):/usr/local/src/php-4.4.0/ext/gd/libgd/gd_jpeg.c:391: undefined reference to `jpeg_finish_decompress' ext/gd/libgd/gd_jpeg.lo(.text+0x802):/usr/local/src/php-4.4.0/ext/gd/libgd/gd_jpeg.c:400: undefined reference to `jpeg_destroy_decompress' ext/gd/libgd/gd_jpeg.lo(.text+0x84d):/usr/local/src/php-4.4.0/ext/gd/libgd/gd_jpeg.c:380: undefined reference to `jpeg_read_scanlines' ext/gd/libgd/gd_jpeg.lo(.text+0x907):/usr/local/src/php-4.4.0/ext/gd/libgd/gd_jpeg.c:367: undefined reference to `jpeg_read_scanlines' ext/gd/libgd/gd_jpeg.lo(.text+0xc39): In function `jpeg_gdIOCtx_src': /usr/local/src/php-4.4.0/ext/gd/libgd/gd_jpeg.c:645: undefined reference to `jpeg_resync_to_restart' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 Yes, I have libjpeg. I've tried installing it through swaret and compiling it manually. Either way, same error. Is there something I'm overlooking?

« previous php.install (#16629) next »