php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33674 compile failure with --with-java
Submitted: 2005-07-13 05:48 UTC Modified: 2005-07-13 09:38 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:3 (100.0%)
Same OS:3 (100.0%)
From: duke3d at gmail dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.4.0 OS: Slack 10.1/Linux 2.4.29
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: duke3d at gmail dot com
New email:
PHP Version: OS:

 

 [2005-07-13 05:48 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-13 06:12 UTC] duke3d at gmail dot com
fixed! it was an system error of mine.
 [2005-07-13 06:12 UTC] duke3d at gmail dot com
fixed! it was an system error of mine.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 11:00:02 2026 UTC