Subject: Re: Pbms building ap2-php4 and ap2-perl
To: Eric Gillespie <>
From: Alastair Rankine <>
List: tech-pkg
Date: 06/01/2003 09:58:51
At 07:08 PM 5/31/2003 -0500, Eric Gillespie wrote:
>Here are the interesting portions from your build logs.
>===> Building for ap2-php-4.2.3
>cc -I. -I/usr/pkgsrc/www/ap2-php4/work/php-4.2.3/sapi/apache2filter 
>-I/usr/pkgsrc/www/ap2-php4/work/php-4.2.3 -I/usr/pkg/include/httpd 
>-I/usr/pkg/include/apr-0 -I/usr/pkgsrc/www/ap2-php4/work/php-4.2.3/Zend 
>-I/usr/pkgsrc/www/ap2-php4/work/php-4.2.3/TSRM -I/usr/pkg/include -O2 
>-I/usr/pkg/include -c sapi_apache2.c  -fPIC -DPIC -o sapi_apache2.lo
>sapi_apache2.c:31: apr_strings.h: No such file or directory


I'm having similar problems as the original poster did. I applied your 
patch (thanks!) and rebuilt php4 and ap2-php4. The latter build fails with 
the following error:

cc -I. -I/usr/tmp/www/ap2-php4/work/php-4.2.3/sapi/apache2filter 
-I/usr/tmp/www/ap2-php4/work/php-4.2.3 -I/usr/pkg/include/httpd 
-I/usr/tmp/www/ap2-php4/work/php-4.2.3/TSRM -I/usr/pkg/include -O2 
-I/usr/pkg/include -c sapi_apache2.c  -fPIC -DPIC -o sapi_apache2.lo
In file included from sapi_apache2.c:32:
apr_hooks.h: No such file or directory
apr_optional_hooks.h: No such file or directory

Now I admit I don't understand this anywhere near as well as I should - 
however it strikes me a bit odd that the apr headers are being included 
from /usr/tmp/devel/apr/work/...  In other words I had to do a build in 
devel/apr to get this far. Shouldn't this at least use a .buildlink path or 

apr_hooks.h and apr-optional_hooks.h are both in my /usr/pkg/include/apr-0 

(Does it confuse the situation that I have WRKOBJDIR set to /usr/tmp in my 
/etc/mk.conf file?)

Any/all help appreciated! TIA.