Subject: Re: Pbms building ap2-php4 and ap2-perl
To: Eric Gillespie <epg@pretzelnet.org>
From: Alastair Rankine <a_rankine@attbi.com>
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/main
>-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
Hi,
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/main
-I/usr/tmp/www/ap2-php4/work/php-4.2.3 -I/usr/pkg/include/httpd
-I/usr/tmp/www/ap2-php4/work/.buildlink/bin/include
-I/usr/tmp/devel/apr/work/httpd-2.0.46/srclib/apr/include
-I/usr/tmp/www/ap2-php4/work/php-4.2.3/Zend
-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:
/usr/tmp/www/ap2-php4/work/.buildlink/include/httpd/ap_config.h:59:
apr_hooks.h: No such file or directory
/usr/tmp/www/ap2-php4/work/.buildlink/include/httpd/ap_config.h:60:
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
something?
apr_hooks.h and apr-optional_hooks.h are both in my /usr/pkg/include/apr-0
directory.
(Does it confuse the situation that I have WRKOBJDIR set to /usr/tmp in my
/etc/mk.conf file?)
Any/all help appreciated! TIA.