www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sterling Hughes <sterl...@designmultimedia.com>
Subject Re: other/7556: Unable to compile php-4.0.4pl1 with apache 2.0.16 beta
Date Thu, 12 Apr 2001 08:50:01 GMT
The following reply was made to PR other/7556; it has been noted by GNATS.

From: Sterling Hughes <sterling@designmultimedia.com>
To: <apache-bugdb@apache.org>, <snowdog@tiscalinet.it>
Cc: <submit@bugz.apache.org>
Subject: Re: other/7556: Unable to compile php-4.0.4pl1 with apache 2.0.16
 beta
Date: Wed, 11 Apr 2001 16:34:43 -0400 (EDT)

 This seems to be fixed in the latest version of PHP's cvs, try that...
 
 -Sterling
 
 On 12 Apr 2001, Lorenzo Pulici wrote:
 
 >
 > >Number:         7556
 > >Category:       other
 > >Synopsis:       Unable to compile php-4.0.4pl1 with apache 2.0.16 beta
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       medium
 > >Responsible:    apache
 > >State:          open
 > >Quarter:
 > >Keywords:
 > >Date-Required:
 > >Class:          sw-bug
 > >Submitter-Id:   apache
 > >Arrival-Date:   Thu Apr 12 01:10:00 PDT 2001
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     snowdog@tiscalinet.it
 > >Release:        2.0.16 beta
 > >Organization:
 > apache
 > >Environment:
 > Linux Slackware, kernel 2.2.19, glibc 2.2
 > gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
 > >Description:
 > apache 2.0.16 is successfully compiled with following configure options:
 > ./configure --enable-modules=all --disable-auth-dbm --disable-auth --with-mpm=threaded
--enable-so --with-ssl
 >
 > php4.0.4pl1 (compiled and successfully working for Apache 1.3.17) configure has following
options:
 > ./configure --with-mysql --with-pgsql --enable-trans-sid --enable-track-vars --with-pdflib=/usr/local
 > --with-gd --with-apxs2=/usr/local/apache2/bin/apxs
 >
 > Compilation of php4 aborts at:
 > make[3]: Entering directory `/usr/src/php-4.0.4pl1/sapi/apache'
 > /bin/sh /usr/src/php-4.0.4pl1/libtool --silent --mode=compile gcc -I.
 > -I/usr/src/php-4.0.4pl1/sapi/apache -I/usr/src/php-4.0.4pl1/main -I/usr/src/php-4.0.4pl1
 > -I/usr/local/apache2/include -I/usr/src/php-4.0.4pl1/Zend -I/usr/src/php-4.0.4pl1/ext/mysql/libmysql
 > -I/usr/local/include -I/usr/src/php-4.0.4pl1/ext/xml/expat/xmltok
 > -I/usr/src/php-4.0.4pl1/ext/xml/expat/xmlparse -I/usr/src/php-4.0.4pl1/TSRM -DNO_DBM_REWRITEMAP
 > -DXML_BYTE_ORDER=12 -g -O2 -c sapi_apache.c
 > sapi_apache.c: In function `apache_php_module_main':
 > sapi_apache.c:80: `NOT_FOUND' undeclared (first use in this function)
 > sapi_apache.c:80: (Each undeclared identifier is reported only once
 > sapi_apache.c:80: for each function it appears in.)
 > make[3]: *** [sapi_apache.lo] Error 1
 > make[3]: Leaving directory `/usr/src/php-4.0.4pl1/sapi/apache'
 > make[2]: *** [all-recursive] Error 1
 > make[2]: Leaving directory `/usr/src/php-4.0.4pl1/sapi/apache'
 > make[1]: *** [all-recursive] Error 1
 > make[1]: Leaving directory `/usr/src/php-4.0.4pl1/sapi'
 > make: *** [all-recursive] Error 1
 > >How-To-Repeat:
 > See above (Full description)
 > >Fix:
 > I solved adding to include/httpd.h at line 452, after all #define for httpd response
codes
 >
 > #define DOCUMENT_FOLLOWS    HTTP_OK
 > #define PARTIAL_CONTENT     HTTP_PARTIAL_CONTENT
 > #define MULTIPLE_CHOICES    HTTP_MULTIPLE_CHOICES
 > #define MOVED               HTTP_MOVED_PERMANENTLY
 > #define REDIRECT            HTTP_MOVED_TEMPORARILY
 > #define USE_LOCAL_COPY      HTTP_NOT_MODIFIED
 > #define BAD_REQUEST         HTTP_BAD_REQUEST
 > #define AUTH_REQUIRED       HTTP_UNAUTHORIZED
 > #define FORBIDDEN           HTTP_FORBIDDEN
 > #define NOT_FOUND           HTTP_NOT_FOUND
 > #define METHOD_NOT_ALLOWED  HTTP_METHOD_NOT_ALLOWED
 > #define NOT_ACCEPTABLE      HTTP_NOT_ACCEPTABLE
 > #define LENGTH_REQUIRED     HTTP_LENGTH_REQUIRED
 > #define PRECONDITION_FAILED HTTP_PRECONDITION_FAILED
 > #define SERVER_ERROR        HTTP_INTERNAL_SERVER_ERROR
 > #define NOT_IMPLEMENTED     HTTP_NOT_IMPLEMENTED
 > #define BAD_GATEWAY         HTTP_BAD_GATEWAY
 > #define VARIANT_ALSO_VARIES HTTP_VARIANT_ALSO_VARIES
 >
 > These lines were present in httpd.h of Apache 1.3.19, but not in Apache 2.0.16 beta.
 > Maybe I am wrong, but above specified error is gone doing this way.
 >
 > Btw, it seems that mod_php4.c is not ready for apache 2, since compilation
 > of this module aborts with lots of warnings and
 > mod_php4.c:800: `this_module_needs_to_be_ported_to_apache_2_0' undeclared here (not
in a function)
 > that addresses me in this way :-)
 >
 > >Release-Note:
 > >Audit-Trail:
 > >Unformatted:
 >  [In order for any reply to be added to the PR database, you need]
 >  [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 >  [subject line starts with the report component and number, with ]
 >  [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 >  ["Re: general/1098:").  If the subject doesn't match this       ]
 >  [pattern, your message will be misfiled and ignored.  The       ]
 >  ["apbugs" address is not added to the Cc line of messages from  ]
 >  [the database automatically because of the potential for mail   ]
 >  [loops.  If you do not include this Cc, your reply may be ig-   ]
 >  [nored unless you are responding to an explicit request from a  ]
 >  [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]
 >
 >
 >
 >
 

Mime
View raw message