ID: 20269 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: GD related Operating System: RHL7.3 PHP Version: 4.3.0-pre2 New Comment:
Does the compilation work correctly if you remove the --with-jpeg-dir flag? The purpose of that flag is to specify the directory where libjpeg can be found, since you are not specifying the path, you might as well leave that option out. Previous Comments: ------------------------------------------------------------------------ [2002-11-05 21:10:25] [EMAIL PROTECTED] ./configure --enable-safe-mode --with-exec-dir=/home/virtual--enable-calendar --with-mysql=/usr/local/mysql --with-apache=/usr/local/src/apache_1.3.27 --enable-trans-sid --enab le-track-vars --with-zlib-dir --with-gd --with-jpeg-dir --with-ttf --enable-gd-native-ttf --enable-gd-imgstrttf --with-freetype-dir=/usr/local/include/freetype2 --with-curl=/usr/l ib --with-imap --with-kerberos ------------------------------------------------------------------------ [2002-11-05 21:06:08] [EMAIL PROTECTED] Could you please show you config line that you are using, in particular the parts related to gd configuration options. ------------------------------------------------------------------------ [2002-11-05 21:03:54] [EMAIL PROTECTED] The same config/compile configuration options have been used as with previously working php 4.1.x, 4.2.x. The problem may be with the fact the the php4.3.x requires implicitly the new GD2 instead of the GD1 used before. ------------------------------------------------------------------------ [2002-11-05 21:00:52] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. This error occures becuase the linker (ld) cannot find the jpeg library. You can fix this problem by editing the config.nice file inside the php4 directory and adding LDFLAGS='-L/path/to/lib' \ above the ./configure \ For example is your libjpeg.so resides inside /usr/local/lib, you'd add -L/usr/local. Once you've edited the file, remove config.cache and run ./config.nice, after that make; make install; should work. ------------------------------------------------------------------------ [2002-11-05 17:26:01] [EMAIL PROTECTED] modules/php4/libphp4.a(gd_jpeg.o): In function `fatal_jpeg_error': /usr/local/src/php-4.3.0pre2/ext/gd/libgd/gd_jpeg.c:57: undefined reference to `jpeg_destroy' modules/php4/libphp4.a(gd_jpeg.o): In function `gdImageJpegCtx': /usr/local/src/php-4.3.0pre2/ext/gd/libgd/gd_jpeg.c:135: undefined reference to `jpeg_std_error' /usr/local/src/php-4.3.0pre2/ext/gd/libgd/gd_jpeg.c:147: undefined reference to `jpeg_CreateCompress' /usr/local/src/php-4.3.0pre2/ext/gd/libgd/gd_jpeg.c:153: undefined reference to `jpeg_set_defaults' /usr/local/src/php-4.3.0pre2/ext/gd/libgd/gd_jpeg.c:155: undefined reference to `jpeg_set_quality' /usr/local/src/php-4.3.0pre2/ext/gd/libgd/gd_jpeg.c:164: undefined reference to `jpeg_simple_progression' /usr/local/src/php-4.3.0pre2/ext/gd/libgd/gd_jpeg.c:175: undefined reference to `jpeg_destroy_compress' /usr/local/src/php-4.3.0pre2/ext/gd/libgd/gd_jpeg.c:181: undefined reference to `jpeg_start_compress' /usr/local/src/php-4.3.0pre2/ext/gd/libgd/gd_jpeg.c:190: undefined reference to `jpeg_write_marker' /usr/local/src/php-4.3.0pre2/ext/gd/libgd/gd_jpeg.c:213: undefined reference to `jpeg_write_scanlines' /usr/local/src/php-4.3.0pre2/ext/gd/libgd/gd_jpeg.c:245: undefined reference to `jpeg_write_scanlines' /usr/local/src/php-4.3.0pre2/ext/gd/libgd/gd_jpeg.c:251: undefined reference to `jpeg_finish_compress' /usr/local/src/php-4.3.0pre2/ext/gd/libgd/gd_jpeg.c:253: undefined reference to `jpeg_destroy_compress' modules/php4/libphp4.a(gd_jpeg.o): In function `gdImageCreateFromJpegCtx': /usr/local/src/php-4.3.0pre2/ext/gd/libgd/gd_jpeg.c:298: undefined reference to `jpeg_std_error' /usr/local/src/php-4.3.0pre2/ext/gd/libgd/gd_jpeg.c:312: undefined reference to `jpeg_CreateDecompress' /usr/local/src/php-4.3.0pre2/ext/gd/libgd/gd_jpeg.c:316: undefined reference to `jpeg_read_header' /usr/local/src/php-4.3.0pre2/ext/gd/libgd/gd_jpeg.c:347: undefined reference to `jpeg_start_decompress' /usr/local/src/php-4.3.0pre2/ext/gd/libgd/gd_jpeg.c:440: undefined reference to `jpeg_read_scanlines' /usr/local/src/php-4.3.0pre2/ext/gd/libgd/gd_jpeg.c:453: undefined reference to `jpeg_finish_decompress' /usr/local/src/php-4.3.0pre2/ext/gd/libgd/gd_jpeg.c:458: undefined reference to `jpeg_destroy_decompress' /usr/local/src/php-4.3.0pre2/ext/gd/libgd/gd_jpeg.c:463: undefined reference to `jpeg_destroy_decompress' modules/php4/libphp4.a(gd_jpeg.o): In function `jpeg_gdIOCtx_src': /usr/local/src/php-4.3.0pre2/ext/gd/libgd/gd_jpeg.c:718: undefined reference to `jpeg_resync_to_restart' collect2: ld returned 1 exit status ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20269&edit=1