From owner-freebsd-ports Wed Oct 31 7:20:48 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3012037B411 for ; Wed, 31 Oct 2001 07:20:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f9VFK1508897; Wed, 31 Oct 2001 07:20:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CF4EC37B403 for ; Wed, 31 Oct 2001 07:16:44 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f9VFGiq08438; Wed, 31 Oct 2001 07:16:44 -0800 (PST) (envelope-from nobody) Message-Id: <200110311516.f9VFGiq08438@freefall.freebsd.org> Date: Wed, 31 Oct 2001 07:16:44 -0800 (PST) From: Fil Gervaix To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: ports/31666: ports compilation errors with mod_php4 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 31666 >Category: ports >Synopsis: ports compilation errors with mod_php4 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 31 07:20:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Fil Gervaix >Release: 4.4 >Organization: By-pasS INC >Environment: login as: fil Sent username "fil" fil@by-pass.database59.ch's password: Last login: Wed Oct 31 13:06:15 2001 from 212.23.249.4 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.4-RELEASE (BY-PASS) #1: Wed Oct 24 14:20:59 CEST 2001 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section ===> Extracting for mod_php4-4.0.6_4 >Description: I have encoured some problem to compiles mod_php4. I use the version 4.4 of freebsd with apache 1.3.22-mod-ssl. Thks for your help Fil //Output--> ===> Extracting for mod_php4-4.0.6_4 >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: >> Checksum OK for php-4.0.6.tar.gz. >> Checksum OK for php_configure.3.diff. ===> mod_php4-4.0.6_4 depends on file: /usr/local/sbin/apxs - found ===> mod_php4-4.0.6_4 depends on file: /usr/local/lib/libcurl.a - found ===> mod_php4-4.0.6_4 depends on executable: automake - found ===> mod_php4-4.0.6_4 depends on executable: autoconf - found ===> mod_php4-4.0.6_4 depends on executable: libtool - found ===> mod_php4-4.0.6_4 depends on shared library: mcrypt.6 - found ===> mod_php4-4.0.6_4 depends on shared library: mhash.2 - found ===> mod_php4-4.0.6_4 depends on shared library: pdf.3 - found ===> mod_php4-4.0.6_4 depends on shared library: jpeg.9 - found ===> mod_php4-4.0.6_4 depends on shared library: png.5 - found ===> mod_php4-4.0.6_4 depends on shared library: tiff.4 - found ===> mod_php4-4.0.6_4 depends on shared library: c-client4.8 - found ===> mod_php4-4.0.6_4 depends on shared library: mysqlclient.10 - found ===> mod_php4-4.0.6_4 depends on shared library: snmp.4 - found ===> mod_php4-4.0.6_4 depends on shared library: expat.2 - found ===> mod_php4-4.0.6_4 depends on shared library: sablot.65 - found ===> mod_php4-4.0.6_4 depends on shared library: intl.1 - found ===> mod_php4-4.0.6_4 depends on shared library: iconv.2 - found ===> mod_php4-4.0.6_4 depends on shared library: pspell.4 - found ===> mod_php4-4.0.6_4 depends on shared library: ming.3 - found ===> mod_php4-4.0.6_4 depends on shared library: iconv.2 - found [ -d /usr/ports/www/mod_php4/work/mbregex ] && (cd /usr/ports/www/mod_php4/work /php-4.0.6; /bin/mv /usr/ports/www/mod_php4/work/mbregex ext; /bin/rm configur e; ./buildconf) buildconf: checking installation... buildconf: autoconf version 2.13 (ok) buildconf: automake version 1.5 (ok) buildconf: libtool version 1.3.4 (ok) rebuilding configure rebuilding main/php_config.h.in ===> Patching for mod_php4-4.0.6_4 ===> Applying distribution patches for mod_php4-4.0.6_4 3 out of 4 hunks failed--saving rejects to configure.rej *** Error code 3 Stop in /usr/ports/www/mod_php4. *** Error code 1 Stop in /usr/ports/www/mod_php4. *** Error code 1 Stop in /usr/ports/www/mod_php4. *** Error code 1 Stop in /usr/ports/www/mod_php4. *** Error code 1 Stop in /usr/ports/www/mod_php4. *** Error code 1 Stop in /usr/ports/www/mod_php4. bash-2.05# make clean ===> Cleaning for iconv-2.0_1 ===> Cleaning for mysql-client-3.23.43 ===> Cleaning for autoconf-2.13.000227 ===> Cleaning for autoconf213-2.13.000227 ===> Cleaning for automake-1.5,1 ===> Cleaning for gettext-0.10.35 ===> Cleaning for gmake-3.79.1 ===> Cleaning for libtool-1.3.4_2 ===> Cleaning for m4-1.4_1 --- ext/gd/gd.c.orig Mon Jun 11 17:22:10 2001 +++ ext/gd/gd.c Sun Aug 26 11:28:44 2001 @@ -335,8 +335,11 @@ /* this next part is stupid ... if I knew better, I'd put them all on one row ( cmv) */ -#ifdef HAVE_GD_GIF - php_info_print_table_row(2, "GIF Support", "enabled"); +#ifdef HAVE_GD_GIF_READ + php_info_print_table_row(2, "GIF Read Support", "enabled"); +#endif +#ifdef(HAVE_GD_GID_CREATE) + php_info_print_table_row(2, "GIF Create Support", "enabled"); #endif #ifdef HAVE_GD_JPG php_info_print_table_row(2, "JPG Support", "enabled"); @@ -1088,7 +1091,7 @@ break; case PHP_GDIMG_TYPE_GIF: -#ifdef HAVE_GD_GIF +#ifdef HAVE_GD_GIF_READ im = _php_image_create_from_string (data, "GIF", gdImage CreateFromGifCtx); #else php_error(E_WARNING, "No GIF support in this PHP build") ; @@ -1205,9 +1208,9 @@ Create a new image from GIF file or URL */ PHP_FUNCTION(imagecreatefromgif) { -#ifdef HAVE_GD_GIF +#ifdef HAVE_GD_GIF_READ _php_image_create_from(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_ GIF, "GIF", gdImageCreateFromGif,gdImageCreateFromGifCtx); -#else /* HAVE_GD_GIF */ +#else /* HAVE_GD_GIF_READ */ php_error(E_WARNING, "ImageCreateFromGif: No GIF support in this PHP bui ld"); RETURN_FALSE; #endif /* HAVE_GD_GIF */ @@ -1397,14 +1400,14 @@ Output GIF image to browser or file */ PHP_FUNCTION(imagegif) { -#ifdef HAVE_GD_GIF +#ifdef HAVE_GD_GIF_CREATE #ifdef HAVE_GD_GIF_CTX _php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_G IF, "GIF", gdImageGifCtx); #else _php_image_output(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_GIF, "GIF", gdImageGif); #endif #else /* HAVE_GD_GIF */ - php_error(E_WARNING, "ImageGif: No GIF support in this PHP build"); + php_error(E_WARNING, "ImageGif: No GIF create support in this PHP build" ); RETURN_FALSE; #endif /* HAVE_GD_GIF */ } @@ -3356,7 +3359,7 @@ } switch (image_type) { -#ifdef HAVE_GD_GIF +#ifdef HAVE_GD_GIF_READ case PHP_GDIMG_TYPE_GIF: im_org = gdImageCreateFromGif (org); if (im_org == NULL) { FreeBSD by-pass.database59.ch 4.4-RELEASE FreeBSD 4.4-RELEASE #1: Wed Oct 24 14:20:59 CEST 2001 fil@by-pass.database59.ch:/usr/src/sys/compile/BY-PASS i386 >> Checksum OK for php-4.0.6.tar.gz. >> Checksum OK for php4_mbregex-1.2.1.tar.gz. >> Checksum OK for php_configure.3.diff. ===> mod_php4-4.0.6_4 depends on file: /usr/local/sbin/apxs - found ===> mod_php4-4.0.6_4 depends on file: /usr/local/lib/libcurl.a - found ===> mod_php4-4.0.6_4 depends on executable: automake - found ===> mod_php4-4.0.6_4 depends on executable: autoconf - found ===> mod_php4-4.0.6_4 depends on executable: libtool - found ===> mod_php4-4.0.6_4 depends on shared library: gd.2 - found ===> mod_php4-4.0.6_4 depends on shared library: freetype.7 - found ===> mod_php4-4.0.6_4 depends on shared library: png.5 - found ===> mod_php4-4.0.6_4 depends on shared library: jpeg.9 - found ===> mod_php4-4.0.6_4 depends on shared library: mcrypt.6 - found ===> mod_php4-4.0.6_4 depends on shared library: mhash.2 - found ===> mod_php4-4.0.6_4 depends on shared library: pdf.3 - found ===> mod_php4-4.0.6_4 depends on shared library: jpeg.9 - found ===> mod_php4-4.0.6_4 depends on shared library: png.5 - found ===> mod_php4-4.0.6_4 depends on shared library: tiff.4 - found ===> mod_php4-4.0.6_4 depends on shared library: c-client4.8 - found ===> mod_php4-4.0.6_4 depends on shared library: mysqlclient.10 - found ===> mod_php4-4.0.6_4 depends on shared library: snmp.4 - found ===> mod_php4-4.0.6_4 depends on shared library: expat.2 - found ===> mod_php4-4.0.6_4 depends on shared library: sablot.65 - found ===> mod_php4-4.0.6_4 depends on shared library: intl.1 - found ===> mod_php4-4.0.6_4 depends on shared library: iconv.2 - found ===> mod_php4-4.0.6_4 depends on shared library: pspell.4 - found ===> mod_php4-4.0.6_4 depends on shared library: ming.3 - found ===> mod_php4-4.0.6_4 depends on shared library: iconv.2 - found [ -d /usr/ports/www/mod_php4/work/mbregex ] && (cd /usr/ports/www/mod_php4/work/php-4.0.6; /bin/mv /usr/ports/www/mod_php4/work/mbregex ext; /bin/rm configure; ./buildconf) buildconf: checking installation... buildconf: autoconf version 2.13 (ok) buildconf: automake version 1.5 (ok) buildconf: libtool version 1.3.4 (ok) rebuilding configure rebuilding main/php_config.h.in ===> Patching for mod_php4-4.0.6_4 ===> Applying distribution patches for mod_php4-4.0.6_4 3 out of 4 hunks failed--saving rejects to configure.rej *** Error code 3 Stop in /usr/ports/www/mod_php4. *** Error code 1 Stop in /usr/ports/www/mod_php4. *** Error code 1 Stop in /usr/ports/www/mod_php4. *** Error code 1 Stop in /usr/ports/www/mod_php4. *** Error code 1 Stop in /usr/ports/www/mod_php4. *** Error code 1 Stop in /usr/ports/www/mod_php4. //The configure.rej in work/php-4.0.6/configure.rej// *************** *** 19464,19471 **** echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for gdImageCreateTrueColor in -lgd""... $ac_c" 1>&6 - echo "configure:19467: checking for gdImageCreateTrueColor in -lgd" >&5 ac_lib_var=`echo gd'_'gdImageCreateTrueColor | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 --- 19507,19557 ---- echo "$ac_t""no" 1>&6 fi + echo $ac_n "checking for gdImageCreateFromGd2 in -lgd""... $ac_c" 1>&6 + echo "configure:19510: checking for gdImageCreateFromGd2 in -lgd" >&5 + ac_lib_var=`echo gd'_'gdImageCreateFromGd2 | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_save_LIBS="$LIBS" + LIBS="-lgd $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" + fi + rm -f conftest* + LIBS="$ac_save_LIBS" + + fi + if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF + #define HAVE_GD_GD2 1 + EOF + + else + echo "$ac_t""no" 1>&6 + fi + echo $ac_n "checking for gdImageCreateTrueColor in -lgd""... $ac_c" 1>&6 + echo "configure:19553: checking for gdImageCreateTrueColor in -lgd" >&5 ac_lib_var=`echo gd'_'gdImageCreateTrueColor | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 *************** *** 20029,20035 **** gdImageCreateFromGif() ; return 0; } EOF - if { (eval echo configure:20031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else --- 20115,20164 ---- gdImageCreateFromGif() ; return 0; } EOF + if { (eval echo configure:20117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" + fi + rm -f conftest* + LIBS="$ac_save_LIBS" + + fi + if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF + #define HAVE_GD_GIF_READ 1 + EOF + + else + echo "$ac_t""no" 1>&6 + fi + + echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6 + echo "configure:20141: checking for gdImageGif in -lgd" >&5 + ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_save_LIBS="$LIBS" + LIBS="-lgd $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else *************** *** 20181,20188 **** echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for gdImageCreateTrueColor in -lgd""... $ac_c" 1>&6 - echo "configure:20184: checking for gdImageCreateTrueColor in -lgd" >&5 ac_lib_var=`echo gd'_'gdImageCreateTrueColor | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 --- 20310,20360 ---- echo "$ac_t""no" 1>&6 fi + echo $ac_n "checking for gdImageCreateFromGd2 in -lgd""... $ac_c" 1>&6 + echo "configure:20313: checking for gdImageCreateFromGd2 in -lgd" >&5 + ac_lib_var=`echo gd'_'gdImageCreateFromGd2 | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_save_LIBS="$LIBS" + LIBS="-lgd $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" + fi + rm -f conftest* + LIBS="$ac_save_LIBS" + + fi + if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF + #define HAVE_GD_GD2 1 + EOF + + else + echo "$ac_t""no" 1>&6 + fi + echo $ac_n "checking for gdImageCreateTrueColor in -lgd""... $ac_c" 1>&6 + echo "configure:20356: checking for gdImageCreateTrueColor in -lgd" >&5 ac_lib_var=`echo gd'_'gdImageCreateTrueColor | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message