Проблемы с gd при сборке apache. Вот конфиг:
./configure \
"--with-layout=GNU" \
"--enable-module=so" \
"--activate-module=src/modules/php4/libphp4.a" \Php 4.3.0 собирается с такой конфигой:
'./configure' \
'--with-zlib' \
'--with-pgsql=/usr/local/pgsql' \
'--with-layout=GNU' \
'--with-ssl' \
'--with-gd' \
'--with-jpeg-dir=/usr/lib' \
'--with-dom=/usr/local/lib' \
'--without-mysql' \
'--with-xslt-sablot' \
'--enable-xslt' \
'--with-iconv=/usr/local/lib/' \
'--with-curl=/usr/local/lib' \
'--with-apache=../apache' \
'--enable-calendar' \
'--with-gettext=/bin' \
'--with-java=/usr/local/j2sdk1.4.1_01' \
'--with-ming=/usr/lib' \
'--with-freetype-dir=/usr/local' \
'--with-bz2' \
'--with-pdflib' \Причем PHP собирается отлично. А вот когда в apache после успешной конфигурации пишу make, то вот что пишет:
modules/php4/libphp4.a(gd_jpeg.o): In function `fatal_jpeg_error':
/usr/src/php-4.3.0/ext/gd/libgd/gd_jpeg.c:56: undefined reference to `jpeg_destroy'
modules/php4/libphp4.a(gd_jpeg.o): In function `gdImageJpegCtx':
/usr/src/php-4.3.0/ext/gd/libgd/gd_jpeg.c:134: undefined reference to `jpeg_std_error'
/usr/src/php-4.3.0/ext/gd/libgd/gd_jpeg.c:146: undefined reference to `jpeg_CreateCompress'
/usr/src/php-4.3.0/ext/gd/libgd/gd_jpeg.c:152: undefined reference to `jpeg_set_defaults'
/usr/src/php-4.3.0/ext/gd/libgd/gd_jpeg.c:154: undefined reference to `jpeg_set_quality'
/usr/src/php-4.3.0/ext/gd/libgd/gd_jpeg.c:163: undefined reference to `jpeg_simple_progression'
/usr/src/php-4.3.0/ext/gd/libgd/gd_jpeg.c:174: undefined reference to `jpeg_destroy_compress'
/usr/src/php-4.3.0/ext/gd/libgd/gd_jpeg.c:180: undefined reference to `jpeg_start_compress'
/usr/src/php-4.3.0/ext/gd/libgd/gd_jpeg.c:189: undefined reference to `jpeg_write_marker'
/usr/src/php-4.3.0/ext/gd/libgd/gd_jpeg.c:212: undefined reference to `jpeg_write_scanlines'
/usr/src/php-4.3.0/ext/gd/libgd/gd_jpeg.c:244: undefined reference to `jpeg_write_scanlines'
/usr/src/php-4.3.0/ext/gd/libgd/gd_jpeg.c:250: undefined reference to `jpeg_finish_compress'
/usr/src/php-4.3.0/ext/gd/libgd/gd_jpeg.c:251: undefined reference to `jpeg_destroy_compress'
modules/php4/libphp4.a(gd_jpeg.o): In function `gdImageCreateFromJpegCtx':
/usr/src/php-4.3.0/ext/gd/libgd/gd_jpeg.c:296: undefined reference to `jpeg_std_error'
/usr/src/php-4.3.0/ext/gd/libgd/gd_jpeg.c:310: undefined reference to `jpeg_CreateDecompress'
/usr/src/php-4.3.0/ext/gd/libgd/gd_jpeg.c:314: undefined reference to `jpeg_read_header'
/usr/src/php-4.3.0/ext/gd/libgd/gd_jpeg.c:345: undefined reference to `jpeg_start_decompress'
/usr/src/php-4.3.0/ext/gd/libgd/gd_jpeg.c:438: undefined reference to `jpeg_read_scanlines'
/usr/src/php-4.3.0/ext/gd/libgd/gd_jpeg.c:451: undefined reference to `jpeg_finish_decompress'
/usr/src/php-4.3.0/ext/gd/libgd/gd_jpeg.c:456: undefined reference to `jpeg_destroy_decompress'
/usr/src/php-4.3.0/ext/gd/libgd/gd_jpeg.c:461: undefined reference to `jpeg_destroy_decompress'
modules/php4/libphp4.a(gd_jpeg.o): In function `jpeg_gdIOCtx_src':
/usr/src/php-4.3.0/ext/gd/libgd/gd_jpeg.c:716: undefined reference to `jpeg_resync_to_restart'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Ошибка 1
make[2]: Выход из каталог `/usr/src/httpd/apache_1.3.26/src'
make[1]: *** [build-std] Ошибка 2
make[1]: Выход из каталог `/usr/src/httpd/apache_1.3.26'
make: *** [build] Ошибка 2Такое впечатление, что ненаходится файлик libgd.a, который лежит в /usr/lib и /usr/local/lib. Подскажите пожалуйста что делать? В каком направлении рыть? Очень срочно нужно собрать.
P.S. Если же PHP собирать без --with-jpeg-dir то все собирается на УРА!
Чуть не забыл: ASP Linux 7.2
>Чуть не забыл: ASP Linux 7.2
А не проще ли сначала собрать апач.
./configure --enable-module=so...а PHP конфигурить как ./configure --with-apxs=/usr/local/apache/bin/apxs вместо ./configure --with-apache?
Версию libgd в студию...
Насколько я помню, надо собирать с последним libgd
>Версию libgd в студию...
>Насколько я помню, надо собирать с последним libgdДело в том, что в php-4.3.0 рекомендовано юзать встроеный libgd. Какая там версия я незнаю. Но у меня установлена 2.0.2. в /usr/lib
>>Чуть не забыл: ASP Linux 7.2
>
>
>А не проще ли сначала собрать апач.
>./configure --enable-module=so...
>
>а PHP конфигурить как ./configure --with-apxs=/usr/local/apache/bin/apxs вместо ./configure --with-apache?
На самом деле не проще. Потому что когда собираю php как DSO, то при старте апача выдается глюк: Undefined symbol IS_SLASH_P.