#33674 [Csd]: compile failure with --with-java

From: Date: Wed, 13 Jul 2005 04:12:54 +0000
Subject: #33674 [Csd]: compile failure with --with-java
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-81786@lists.php.net to get a copy of this message
ID: 33674 User updated by: duke3d at gmail dot com Reported By: duke3d at gmail dot com Status: Closed Bug Type: Compile Failure Operating System: Slack 10.1/Linux 2.4.29 PHP Version: 4.4.0 New Comment: fixed! it was an system error of mine. Previous Comments: ------------------------------------------------------------------------ [2005-07-13 06:12:52] duke3d at gmail dot com fixed! it was an system error of mine. ------------------------------------------------------------------------ [2005-07-13 05:48:20] duke3d at gmail dot com Description: ------------ Well... when i 'configure' with this: ./configure --prefix=/usr --disable-static --with-apxs=/usr/sbin/apxs --sysconfdir=/etc --enable-discard-path --with-config-file-path=/etc/apache --enable-safe-mode --with-openssl --with-mhash --enable-bcmath --with-bz2 --with-pic --enable-calendar --enable-ctype --with-gdbm --with-db3 --enable-dbase --enable-ftp --with-iconv --with-exif --enable-exif --with-gd --enable-gd-native-ttf --with-jpeg-dir=/usr --with-png --with-gmp --with-gettext=shared,/usr --with-expat-dir=/usr --with-xml --enable-wddx --with-mm=/usr --enable-trans-sid --enable-shmop --enable-sockets --with-regex=php --enable-sysvsem --enable-sysvshm --enable-yp --enable-memory-limit --with-tsrm-pthreads --enable-shared --disable-debug --with-zlib=/usr --with-pgsql=/opt/postgresql-8.0.2/ --without-mysql it compiles OK. If I add a --with-java=/usr/lib/java , then these errors happens when it's going to link the big php binary: ext/gd/libgd/gd_jpeg.lo(.text+0x33): In function `fatal_jpeg_error': /packets/php-4.4.0/ext/gd/libgd/gd_jpeg.c:61: undefined reference to `jpeg_destroy' ext/gd/libgd/gd_jpeg.lo(.text+0x157): In function `gdImageJpegCtx': /packets/php-4.4.0/ext/gd/libgd/gd_jpeg.c:117: undefined reference to `jpeg_std_error' ext/gd/libgd/gd_jpeg.lo(.text+0x1c0):/packets/php-4.4.0/ext/gd/libgd/gd_jpeg.c:129: undefined reference to `jpeg_CreateCompress' ext/gd/libgd/gd_jpeg.lo(.text+0x1f1):/packets/php-4.4.0/ext/gd/libgd/gd_jpeg.c:135: undefined reference to `jpeg_set_defaults' ext/gd/libgd/gd_jpeg.lo(.text+0x208):/packets/php-4.4.0/ext/gd/libgd/gd_jpeg.c:137: undefined reference to `jpeg_set_quality' ext/gd/libgd/gd_jpeg.lo(.text+0x27e):/packets/php-4.4.0/ext/gd/libgd/gd_jpeg.c:151: undefined reference to `jpeg_start_compress' ext/gd/libgd/gd_jpeg.lo(.text+0x311):/packets/php-4.4.0/ext/gd/libgd/gd_jpeg.c:158: undefined reference to `jpeg_write_marker' ext/gd/libgd/gd_jpeg.lo(.text+0x3aa):/packets/php-4.4.0/ext/gd/libgd/gd_jpeg.c:175: undefined reference to `jpeg_write_scanlines' ext/gd/libgd/gd_jpeg.lo(.text+0x3ec):/packets/php-4.4.0/ext/gd/libgd/gd_jpeg.c:209: undefined reference to `jpeg_finish_compress' ext/gd/libgd/gd_jpeg.lo(.text+0x3f4):/packets/php-4.4.0/ext/gd/libgd/gd_jpeg.c:210: undefined reference to `jpeg_destroy_compress' ext/gd/libgd/gd_jpeg.lo(.text+0x494):/packets/php-4.4.0/ext/gd/libgd/gd_jpeg.c:202: undefined reference to `jpeg_write_scanlines' ext/gd/libgd/gd_jpeg.lo(.text+0x4ec):/packets/php-4.4.0/ext/gd/libgd/gd_jpeg.c:142: undefined reference to `jpeg_simple_progression' ext/gd/libgd/gd_jpeg.lo(.text+0x5db): In function `gdImageCreateFromJpegCtx': /packets/php-4.4.0/ext/gd/libgd/gd_jpeg.c:260: undefined reference to `jpeg_std_error' ext/gd/libgd/gd_jpeg.lo(.text+0x622):/packets/php-4.4.0/ext/gd/libgd/gd_jpeg.c:275: undefined reference to `jpeg_CreateDecompress' ext/gd/libgd/gd_jpeg.lo(.text+0x641):/packets/php-4.4.0/ext/gd/libgd/gd_jpeg.c:280: undefined reference to `jpeg_save_markers' ext/gd/libgd/gd_jpeg.lo(.text+0x64b):/packets/php-4.4.0/ext/gd/libgd/gd_jpeg.c:282: undefined reference to `jpeg_read_header' ext/gd/libgd/gd_jpeg.lo(.text+0x6d3):/packets/php-4.4.0/ext/gd/libgd/gd_jpeg.c:310: undefined reference to `jpeg_start_decompress' ext/gd/libgd/gd_jpeg.lo(.text+0x7de):/packets/php-4.4.0/ext/gd/libgd/gd_jpeg.c:390: undefined reference to `jpeg_finish_decompress' ext/gd/libgd/gd_jpeg.lo(.text+0x812):/packets/php-4.4.0/ext/gd/libgd/gd_jpeg.c:405: undefined reference to `jpeg_destroy_decompress' ext/gd/libgd/gd_jpeg.lo(.text+0x864):/packets/php-4.4.0/ext/gd/libgd/gd_jpeg.c:399: undefined reference to `jpeg_destroy_decompress' ext/gd/libgd/gd_jpeg.lo(.text+0x8ad):/packets/php-4.4.0/ext/gd/libgd/gd_jpeg.c:379: undefined reference to `jpeg_read_scanlines' ext/gd/libgd/gd_jpeg.lo(.text+0x97e):/packets/php-4.4.0/ext/gd/libgd/gd_jpeg.c:366: undefined reference to `jpeg_read_scanlines' ext/gd/libgd/gd_jpeg.lo(.text+0xd1c): In function `jpeg_gdIOCtx_src': /packets/php-4.4.0/ext/gd/libgd/gd_jpeg.c:644: undefined reference to `jpeg_resync_to_restart' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 I checked the line, it does contain -ljpeg. And what java has to do with gd/jpeg? If i don't use --with-java, the error does'nt happen. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33674&edit=1

« previous php.bugs (#81786) next »