Apache Make Error with GD/JPEG Enabled
| From: | Paul Burney | Date: | Wed, 10 Dec 2003 14:20:19 +0000 |
| Subject: | Apache Make Error with GD/JPEG Enabled | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-12353@lists.php.net to get a copy of this message | ||
Summary:
I'm not able to compile a static apache/php, using the built in GD library
and enabling GD with jpeg support. I have no problems make/make install'ing
PHP, nor making it as a DSO, but the apache build fails when I try to make
it with a static PHP module.
PHP 4.3.4
Apache 1.3.29
PHP Configure Command:
'./configure' '--with-mysql' '--with-apache=../apache-1.3.29'
'--enable-magic-quotes' '--disable-short-tags' '--with-mcrypt'
'--with-mhash' '--with-zlib' '--with-zlib-dir=/usr/include'
'--with-dom'
'--with-dom-xslt' '--with-dom-exslt' '--with-curl'
'--with-curlwrappers'
'--with-pdflib' '--with-jpeg-dir=/usr/lib' '--with-tiff-dir=/usr/lib'
'--with-png-dir=/usr/lib' '--with-gd' '--with-freetype-dir=/usr/lib'
'--enable-gd-native-ttf' '--with-ldap' '--with-mime-magic'
'--enable-ftp'
'--enable-exif' '--with-java=/usr/local/java1.4'
I'm thinking that I might need to add something to the library path before
making apache, but I'm not sure what.
Thank you in advance for any help you can offer.
Sincerely,
Paul Burney
<http://paulburney.com/>
Details:
modules/php4/libphp4.a(gd_jpeg.o)(.text+0x24): In function
`fatal_jpeg_error':
/usr/local/src/php-4.3.4/ext/gd/libgd/gd_jpeg.c:61: undefined reference to
`jpeg_destroy'
modules/php4/libphp4.a(gd_jpeg.o)(.text+0x10b): In function
`gdImageJpegCtx':
/usr/local/src/php-4.3.4/ext/gd/libgd/gd_jpeg.c:117: undefined reference to
`jpeg_std_error'
modules/php4/libphp4.a(gd_jpeg.o)(.text+0x172):/usr/local/src/php-4.3.4/ext/
gd/libgd/gd_jpeg.c:129: undefined reference to `jpeg_CreateCompress'
modules/php4/libphp4.a(gd_jpeg.o)(.text+0x1a3):/usr/local/src/php-4.3.4/ext/
gd/libgd/gd_jpeg.c:135: undefined reference to `jpeg_set_defaults'
modules/php4/libphp4.a(gd_jpeg.o)(.text+0x1b9):/usr/local/src/php-4.3.4/ext/
gd/libgd/gd_jpeg.c:137: undefined reference to `jpeg_set_quality'
modules/php4/libphp4.a(gd_jpeg.o)(.text+0x22e):/usr/local/src/php-4.3.4/ext/
gd/libgd/gd_jpeg.c:151: undefined reference to `jpeg_start_compress'
modules/php4/libphp4.a(gd_jpeg.o)(.text+0x28a):/usr/local/src/php-4.3.4/ext/
gd/libgd/gd_jpeg.c:158: undefined reference to `jpeg_write_marker'
modules/php4/libphp4.a(gd_jpeg.o)(.text+0x30c):/usr/local/src/php-4.3.4/ext/
gd/libgd/gd_jpeg.c:175: undefined reference to `jpeg_write_scanlines'
modules/php4/libphp4.a(gd_jpeg.o)(.text+0x341):/usr/local/src/php-4.3.4/ext/
gd/libgd/gd_jpeg.c:209: undefined reference to `jpeg_finish_compress'
modules/php4/libphp4.a(gd_jpeg.o)(.text+0x349):/usr/local/src/php-4.3.4/ext/
gd/libgd/gd_jpeg.c:210: undefined reference to `jpeg_destroy_compress'
modules/php4/libphp4.a(gd_jpeg.o)(.text+0x3d5):/usr/local/src/php-4.3.4/ext/
gd/libgd/gd_jpeg.c:202: undefined reference to `jpeg_write_scanlines'
modules/php4/libphp4.a(gd_jpeg.o)(.text+0x41d):/usr/local/src/php-4.3.4/ext/
gd/libgd/gd_jpeg.c:142: undefined reference to `jpeg_simple_progression'
modules/php4/libphp4.a(gd_jpeg.o)(.text+0x4a5): In function
`gdImageCreateFromJpegCtx':
/usr/local/src/php-4.3.4/ext/gd/libgd/gd_jpeg.c:246: undefined reference to
`jpeg_std_error'
modules/php4/libphp4.a(gd_jpeg.o)(.text+0x52c):/usr/local/src/php-4.3.4/ext/
gd/libgd/gd_jpeg.c:261: undefined reference to `jpeg_CreateDecompress'
modules/php4/libphp4.a(gd_jpeg.o)(.text+0x541):/usr/local/src/php-4.3.4/ext/
gd/libgd/gd_jpeg.c:265: undefined reference to `jpeg_read_header'
modules/php4/libphp4.a(gd_jpeg.o)(.text+0x5b9):/usr/local/src/php-4.3.4/ext/
gd/libgd/gd_jpeg.c:341: undefined reference to `jpeg_destroy_decompress'
modules/php4/libphp4.a(gd_jpeg.o)(.text+0x5d7):/usr/local/src/php-4.3.4/ext/
gd/libgd/gd_jpeg.c:287: undefined reference to `jpeg_start_decompress'
modules/php4/libphp4.a(gd_jpeg.o)(.text+0x683):/usr/local/src/php-4.3.4/ext/
gd/libgd/gd_jpeg.c:321: undefined reference to `jpeg_read_scanlines'
modules/php4/libphp4.a(gd_jpeg.o)(.text+0x6da):/usr/local/src/php-4.3.4/ext/
gd/libgd/gd_jpeg.c:331: undefined reference to `jpeg_finish_decompress'
modules/php4/libphp4.a(gd_jpeg.o)(.text+0x6f9):/usr/local/src/php-4.3.4/ext/
gd/libgd/gd_jpeg.c:335: undefined reference to `jpeg_destroy_decompress'
modules/php4/libphp4.a(gd_jpeg.o)(.text+0x8ad): In function
`jpeg_gdIOCtx_src':
/usr/local/src/php-4.3.4/ext/gd/libgd/gd_jpeg.c:569: undefined reference to
`jpeg_resync_to_restart'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/usr/local/src/apache_1.3.29/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/src/apache_1.3.29'
make: *** [build] Error 2