Hi!
Today I want to compile a new PHP version into Apache, but that doesn't work. I did the following steps very often on older version of PHP and Apache, but today, it wants to make me angry 🙁.
Here are the following steps:
-Configure PHP with the following (long) command
./configure --prefix=/usr/local/apache/php4 --with-apache=../apache_1.3.28/ --with-config-file-path=/usr/local/apache/conf/ --with-mysql --with-zlib --with-dom --with-java=/usr/local/jdk/ --with-imap=/usr/local/ --with-gd --with-freetype --with-freetype-dir=/usr --enable-exif --enable-ftp --with-jpeg --with-jpeg-dir=/usr/lib --with-png --with-png-dir=/usr/lib --with-gif --enable-gd-native-ttf
-then make and make install are OK
-now I want to compile Apache 1.3.28 with
./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a --enable-module=php4
and after the make, i've got the following compile error in Apache
gcc -DLINUX=22 -DNO_DL_NEEDED ./apaci \
-o httpd buildmark.o modules.o modules/standard/libstandard.a modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/local//lib -Wl,-rpath,/usr/local/jdk//jre/lib/i386/server -Wl,-rpath,/usr/local/jdk//jre/lib/i386/native_threads -Wl,-rpath,/usr/local/jdk//jre/lib/i386 -rdynamic -L/usr/local/lib -L/usr/local//lib -L/usr/local/jdk//jre/lib/i386/server -L/usr/local/jdk//jre/lib/i386/native_threads -L/usr/local/jdk//jre/lib/i386 -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -rdynamic -L/usr/local/lib -L/usr/local//lib -L/usr/local/jdk//jre/lib/i386/server -L/usr/local/jdk//jre/lib/i386/native_threads -L/usr/local/jdk//jre/lib/i386 -lcrypt -lc-client -lcrypt -lcrypt -lpam -lfreetype -lpng -lz -ljpeg -lz -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lcrypt -lcrypt -lm -lcrypt -lexpat
modules/php4/libphp4.a(gd_jpeg.o): In function fatal_jpeg_error':
/data/software/http/php-4.3.2/ext/gd/libgd/gd_jpeg.c:61: undefined reference tojpeg_destroy'
modules/php4/libphp4.a(gd_jpeg.o): In function gdImageJpegCtx':
/data/software/http/php-4.3.2/ext/gd/libgd/gd_jpeg.c:117: undefined reference tojpeg_std_error'
/data/software/http/php-4.3.2/ext/gd/libgd/gd_jpeg.c:129: undefined reference to jpeg_CreateCompress'
/data/software/http/php-4.3.2/ext/gd/libgd/gd_jpeg.c:135: undefined reference tojpeg_set_defaults'
/data/software/http/php-4.3.2/ext/gd/libgd/gd_jpeg.c:137: undefined reference to jpeg_set_quality'
/data/software/http/php-4.3.2/ext/gd/libgd/gd_jpeg.c:142: undefined reference tojpeg_simple_progression'
/data/software/http/php-4.3.2/ext/gd/libgd/gd_jpeg.c:150: undefined reference to jpeg_start_compress'
/data/software/http/php-4.3.2/ext/gd/libgd/gd_jpeg.c:157: undefined reference tojpeg_write_marker'
/data/software/http/php-4.3.2/ext/gd/libgd/gd_jpeg.c:174: undefined reference to jpeg_write_scanlines'
/data/software/http/php-4.3.2/ext/gd/libgd/gd_jpeg.c:201: undefined reference tojpeg_write_scanlines'
/data/software/http/php-4.3.2/ext/gd/libgd/gd_jpeg.c:208: undefined reference to jpeg_finish_compress'
/data/software/http/php-4.3.2/ext/gd/libgd/gd_jpeg.c:209: undefined reference tojpeg_destroy_compress'
modules/php4/libphp4.a(gd_jpeg.o): In function gdImageCreateFromJpegCtx':
/data/software/http/php-4.3.2/ext/gd/libgd/gd_jpeg.c:245: undefined reference tojpeg_std_error'
/data/software/http/php-4.3.2/ext/gd/libgd/gd_jpeg.c:260: undefined reference to jpeg_CreateDecompress'
/data/software/http/php-4.3.2/ext/gd/libgd/gd_jpeg.c:264: undefined reference tojpeg_read_header'
/data/software/http/php-4.3.2/ext/gd/libgd/gd_jpeg.c:286: undefined reference to jpeg_start_decompress'
/data/software/http/php-4.3.2/ext/gd/libgd/gd_jpeg.c:319: undefined reference tojpeg_read_scanlines'
/data/software/http/php-4.3.2/ext/gd/libgd/gd_jpeg.c:329: undefined reference to jpeg_finish_decompress'
/data/software/http/php-4.3.2/ext/gd/libgd/gd_jpeg.c:333: undefined reference tojpeg_destroy_decompress'
/data/software/http/php-4.3.2/ext/gd/libgd/gd_jpeg.c:339: undefined reference to jpeg_destroy_decompress'
modules/php4/libphp4.a(gd_jpeg.o): In functionjpeg_gdIOCtx_src':
/data/software/http/php-4.3.2/ext/gd/libgd/gd_jpeg.c:567: undefined reference to jpeg_resync_to_restart'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory/data/software/http/apache_1.3.28/src'
make[1]: [build-std] Error 2
make[1]: Leaving directory `/data/software/http/apache_1.3.28'
make: [build] Error 2
I've compiled older versions of PHP and Apache with the same parameters a lot of times on this machine, but this time there must be an problem. Does someone, what's wrong???