php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18694 Can not compile PHP 4.2.2 with --with-apxs2
Submitted: 2002-08-01 21:26 UTC Modified: 2002-08-08 20:06 UTC
From: root at blackdevil dot da dot ru Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.2.2 OS: Debian 2.2 potato
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: root at blackdevil dot da dot ru
New email:
PHP Version: OS:

 

 [2002-08-01 21:26 UTC] root at blackdevil dot da dot ru
Hello,

when I try to compile PHP 4.2.2 with Apache 2.0.39 on Debian GNU 2.2.6 potato linux I get following error:

/bin/sh /root/php-4.2.2/libtool --silent --mode=compile gcc  -I. -I/root/php-4.2.2/sapi/apache2filter -I/root/php-4.2.2/main -I/root/php-4.2.2 -I/usr/local/apache2/include -I/root/php-4.2.2/Zend -I/root/php-4.2.2/ext/mysql/libmysql -I/root/php-4.2.2/ext/xml/expat  -D_REENTRANT -I/root/php-4.2.2/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic  -c php_functions.c
php_functions.c:93: parse error
make[3]: *** [php_functions.lo] Error 1
make[3]: Leaving directory `/root/php-4.2.2/sapi/apache2filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/php-4.2.2/sapi/apache2filter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/php-4.2.2/sapi'
make: *** [all-recursive] Error 1

Steps:
1. Configure, make, make install for Apache 2.
2. ./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs (works pretty well)
3. make (here compilation does break with error listed).

Do you know what could I do false?

Thanks & regards

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-02 07:39 UTC] sander@php.net
You need the latest CVS of both PHP and Apache2.
 [2002-08-02 11:03 UTC] root at blackdevil dot da dot ru
Another thing is to remove this litte macro... Everything works now pretty well... Thanks in anyway.
 [2002-08-08 10:23 UTC] challesmann at hotmail dot com
I have the exact same problem, with newest releases of both apache (2.0.39) and php (4.2.2)

Could that "little macro" please be specified

Thanks in advance
 [2002-08-08 20:06 UTC] root at blackdevil dot da dot ru
Hello,

yes. This macro is in sapi/apache2filter/php_functions.c

Look near the line 93. You will see that here:

#if !MODULE_MAGIC_AT_LEAST(20020506,0)
                ADD_STRING(boundary);
#endif

edit that to look like this (remove # and add /* and */ at one line befor and the next one):

/*
if !MODULE_MAGIC_AT_LEAST(20020506,0)
                ADD_STRING(boundary);
endif
*/

regards
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 07:00:01 2026 UTC