Dodge
06.09.03, 21:05
Servus! Ich versuche heute schon den ganzen Tag PHP für meinen Apache auf Slackware 9.0 zu kompilieren aber es klappt nicht. Langsam komm ich mir echt bescheuert vor, denn ich hab das schon so oft gemacht das es eigentlich kein Problem sein sollte. Zuerst mal meine configure options:
./configure \
--prefix=/usr/local/apache2/current/php \
--sysconfdir=/etc \
--with-apxs2=/usr/local/apache2/current/bin/apxs \
--with-mysql=shared,/usr \
--with-xml=shared,/usr \
--with-openssl=/usr \
--with-pic \
--with-db4 \
--with-tiff-dir=/usr \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-zlib=/usr \
--with-pdflib=no \
--with-gettext=shared,/usr \
--with-bz2=/usr \
--with-dom=/usr \
--with-gd \
--with-mhash \
--with-mcrypt \
--with-freetype-dir=/usr \
--with-xslt-sablot=/usr \
--with-expat-dir=/usr \
--with-gmp \
--with-tsrm-pthreads \
--with-java=/usr/java \
--enable-gd-native-ttf \
--enable-dicard-path \
--enable-safe-mode \
--enable-trans-sid \
--enable-shared-pdflib \
--enable-freetype-4bit-antialias-hack \
--enable-wddx \
--enable-xslt \
--enable-ftp \
--enable-sockets \
--enable-calendar \
--enable-shmop \
--enable-dbase \
--enable-bcmath \
Configure läuft schön durch und wenn ich make aufrufe dann kommt irgendwann dieser Linker-Fehler:
....sapi/cli/getopt.lo main/internal_functions_cli.lo -lcrypt -lsablot -lexpat -lmhash -lmcrypt -lltdl -lgmp -lfreetype -lpng -lz -ldb-4.1 -lbz2 -lssl -lcrypto -lresolv -lm -ldl -lnsl -lxml2 -ljpeg -lstdc++ -o sapi/cli/php
ext/gd/libgd/gd_jpeg.lo(.text+0x33): In function `fatal_jpeg_error':
/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:61: undefined reference to `jpeg_destroy'
ext/gd/libgd/gd_jpeg.lo(.text+0x15f): In function `gdImageJpegCtx':
/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:117: undefined reference to `jpeg_std_error'
ext/gd/libgd/gd_jpeg.lo(.text+0x1c8):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:129: undefined reference to `jpeg_CreateCompress'
ext/gd/libgd/gd_jpeg.lo(.text+0x1f9):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:135: undefined reference to `jpeg_set_defaults'
ext/gd/libgd/gd_jpeg.lo(.text+0x210):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:137: undefined reference to `jpeg_set_quality'
ext/gd/libgd/gd_jpeg.lo(.text+0x286):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:151: undefined reference to `jpeg_start_compress'
ext/gd/libgd/gd_jpeg.lo(.text+0x311):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:158: undefined reference to `jpeg_write_marker'
ext/gd/libgd/gd_jpeg.lo(.text+0x3aa):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:175: undefined reference to `jpeg_write_scanlines'
ext/gd/libgd/gd_jpeg.lo(.text+0x3ec):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:209: undefined reference to `jpeg_finish_compress'
ext/gd/libgd/gd_jpeg.lo(.text+0x3f4):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:210: undefined reference to `jpeg_destroy_compress'
ext/gd/libgd/gd_jpeg.lo(.text+0x494):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:202: undefined reference to `jpeg_write_scanlines'
ext/gd/libgd/gd_jpeg.lo(.text+0x4ec):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:142: undefined reference to `jpeg_simple_progression'
ext/gd/libgd/gd_jpeg.lo(.text+0x599): In function `gdImageCreateFromJpegCtx':
/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:246: undefined reference to `jpeg_std_error'
ext/gd/libgd/gd_jpeg.lo(.text+0x63e):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:261: undefined reference to `jpeg_CreateDecompress'
ext/gd/libgd/gd_jpeg.lo(.text+0x654):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:265: undefined reference to `jpeg_read_header'
ext/gd/libgd/gd_jpeg.lo(.text+0x6d2):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:341: undefined reference to `jpeg_destroy_decompress'
ext/gd/libgd/gd_jpeg.lo(.text+0x6ef):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:287: undefined reference to `jpeg_start_decompress'
ext/gd/libgd/gd_jpeg.lo(.text+0x7bd):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:321: undefined reference to `jpeg_read_scanlines'
ext/gd/libgd/gd_jpeg.lo(.text+0x82c):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:331: undefined reference to `jpeg_finish_decompress'
ext/gd/libgd/gd_jpeg.lo(.text+0x84d):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:335: undefined reference to `jpeg_destroy_decompress'
ext/gd/libgd/gd_jpeg.lo(.text+0xa5e): In function `jpeg_gdIOCtx_src':
/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:569: undefined reference to `jpeg_resync_to_restart'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
Ich hab echt schon alles versucht. Hat jemand eine schlaue Idee?
Danke.
./configure \
--prefix=/usr/local/apache2/current/php \
--sysconfdir=/etc \
--with-apxs2=/usr/local/apache2/current/bin/apxs \
--with-mysql=shared,/usr \
--with-xml=shared,/usr \
--with-openssl=/usr \
--with-pic \
--with-db4 \
--with-tiff-dir=/usr \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-zlib=/usr \
--with-pdflib=no \
--with-gettext=shared,/usr \
--with-bz2=/usr \
--with-dom=/usr \
--with-gd \
--with-mhash \
--with-mcrypt \
--with-freetype-dir=/usr \
--with-xslt-sablot=/usr \
--with-expat-dir=/usr \
--with-gmp \
--with-tsrm-pthreads \
--with-java=/usr/java \
--enable-gd-native-ttf \
--enable-dicard-path \
--enable-safe-mode \
--enable-trans-sid \
--enable-shared-pdflib \
--enable-freetype-4bit-antialias-hack \
--enable-wddx \
--enable-xslt \
--enable-ftp \
--enable-sockets \
--enable-calendar \
--enable-shmop \
--enable-dbase \
--enable-bcmath \
Configure läuft schön durch und wenn ich make aufrufe dann kommt irgendwann dieser Linker-Fehler:
....sapi/cli/getopt.lo main/internal_functions_cli.lo -lcrypt -lsablot -lexpat -lmhash -lmcrypt -lltdl -lgmp -lfreetype -lpng -lz -ldb-4.1 -lbz2 -lssl -lcrypto -lresolv -lm -ldl -lnsl -lxml2 -ljpeg -lstdc++ -o sapi/cli/php
ext/gd/libgd/gd_jpeg.lo(.text+0x33): In function `fatal_jpeg_error':
/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:61: undefined reference to `jpeg_destroy'
ext/gd/libgd/gd_jpeg.lo(.text+0x15f): In function `gdImageJpegCtx':
/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:117: undefined reference to `jpeg_std_error'
ext/gd/libgd/gd_jpeg.lo(.text+0x1c8):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:129: undefined reference to `jpeg_CreateCompress'
ext/gd/libgd/gd_jpeg.lo(.text+0x1f9):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:135: undefined reference to `jpeg_set_defaults'
ext/gd/libgd/gd_jpeg.lo(.text+0x210):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:137: undefined reference to `jpeg_set_quality'
ext/gd/libgd/gd_jpeg.lo(.text+0x286):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:151: undefined reference to `jpeg_start_compress'
ext/gd/libgd/gd_jpeg.lo(.text+0x311):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:158: undefined reference to `jpeg_write_marker'
ext/gd/libgd/gd_jpeg.lo(.text+0x3aa):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:175: undefined reference to `jpeg_write_scanlines'
ext/gd/libgd/gd_jpeg.lo(.text+0x3ec):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:209: undefined reference to `jpeg_finish_compress'
ext/gd/libgd/gd_jpeg.lo(.text+0x3f4):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:210: undefined reference to `jpeg_destroy_compress'
ext/gd/libgd/gd_jpeg.lo(.text+0x494):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:202: undefined reference to `jpeg_write_scanlines'
ext/gd/libgd/gd_jpeg.lo(.text+0x4ec):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:142: undefined reference to `jpeg_simple_progression'
ext/gd/libgd/gd_jpeg.lo(.text+0x599): In function `gdImageCreateFromJpegCtx':
/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:246: undefined reference to `jpeg_std_error'
ext/gd/libgd/gd_jpeg.lo(.text+0x63e):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:261: undefined reference to `jpeg_CreateDecompress'
ext/gd/libgd/gd_jpeg.lo(.text+0x654):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:265: undefined reference to `jpeg_read_header'
ext/gd/libgd/gd_jpeg.lo(.text+0x6d2):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:341: undefined reference to `jpeg_destroy_decompress'
ext/gd/libgd/gd_jpeg.lo(.text+0x6ef):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:287: undefined reference to `jpeg_start_decompress'
ext/gd/libgd/gd_jpeg.lo(.text+0x7bd):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:321: undefined reference to `jpeg_read_scanlines'
ext/gd/libgd/gd_jpeg.lo(.text+0x82c):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:331: undefined reference to `jpeg_finish_decompress'
ext/gd/libgd/gd_jpeg.lo(.text+0x84d):/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:335: undefined reference to `jpeg_destroy_decompress'
ext/gd/libgd/gd_jpeg.lo(.text+0xa5e): In function `jpeg_gdIOCtx_src':
/root/php-4.3.3/ext/gd/libgd/gd_jpeg.c:569: undefined reference to `jpeg_resync_to_restart'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
Ich hab echt schon alles versucht. Hat jemand eine schlaue Idee?
Danke.