#23958 [NEW]: apache2handler should include output from `apr-config --includes`
| From: | dilinger at voxel dot net | Date: | Mon, 02 Jun 2003 15:58:13 +0000 |
| Subject: | #23958 [NEW]: apache2handler should include output from `apr-config --includes` | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-40917@lists.php.net to get a copy of this message | ||
From: dilinger at voxel dot net
Operating system: Debian unstable
PHP version: 4.3.2
PHP Bug Type: Compile Failure
Bug description: apache2handler should include output from
apr-config --includes
Debian's apache2-dev and libapr0-dev packages put headers in different
places; /usr/include/apache2 and /usr/include/apr-0, respectively.
Unfortunately, apxs2 doesn't output the location of apr headers, which is
required in order to compile.
So, compilation ends up failing w/:
/bin/sh /home/dilinger/php-4.3.2/libtool --silent --preserve-dup-deps
--mode=compile /home/dilinger/php-4.3.2/meta_ccld -Isapi/apache2handler/
-I/home/dilinger/php-4.3.2/sapi/apache2handler/ -DPHP_ATOM_INC
-I/home/dilinger/php-4.3.2/include -I/home/dilinger/php-4.3.2/main
-I/home/dilinger/php-4.3.2 -I/usr/include/apache2
-I/home/dilinger/php-4.3.2/Zend -I/usr/include/libxml2
-I/usr/include/mysql
-I/home/dilinger/php-4.3.2/ext/xml/expat -D_REENTRANT
-I/home/dilinger/php-4.3.2/TSRM -g -O2 -pthread -DZTS -prefer-pic -c
/home/dilinger/php-4.3.2/sapi/apache2handler/sapi_apache2.c -o
sapi/apache2handler/sapi_apache2.lo
/home/dilinger/php-4.3.2/sapi/apache2handler/sapi_apache2.c:38:25:
apr_strings.h: No such file or directory
Here's the output of apr-config --includes:
-I/usr/include/apr-0
This is something that the apache folks know about, but isn't likely to
change anytime soon, due to the rather lame apxs interface they've
standardized on. So, it would be nice if php worked around this.
The simplest way to fix this is to add
CPPFLAGS="$CPPFLAGS apr-config --includes"
to sapi/apache2handler/config.m4.
--
Edit bug report at http://bugs.php.net/?id=23958&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23958&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23958&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23958&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23958&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23958&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23958&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23958&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23958&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23958&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23958&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23958&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23958&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23958&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23958&r=gnused