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

From: Date: Wed, 13 Jul 2005 03:48:23 +0000
Subject: #33674 [NEW]: compile failure with --with-java
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-81784@lists.php.net to get a copy of this message
From:             duke3d at gmail dot com
Operating system: Slack 10.1/Linux 2.4.29
PHP version:      4.4.0
PHP Bug Type:     Compile Failure
Bug description:  compile failure with --with-java

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 bug report at http://bugs.php.net/?id=33674&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33674&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33674&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33674&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33674&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33674&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33674&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33674&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33674&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33674&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33674&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=33674&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=33674&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33674&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33674&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33674&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33674&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33674&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33674&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33674&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33674&r=mysqlcfg


Thread (4 messages)

« previous php.bugs (#81784) next »