mod_bt package

Kenneth Porter shiva at sewingwitch.com
Sun Feb 13 22:35:26 UTC 2005


--On Sunday, February 13, 2005 6:05 PM +0100 Casper Pedersen 
<cpedersen at c-note.dk> wrote:

> Try by adding "--with-apr-include=/usr/include/apr-0" to configure.

Thanks. Alas, that doesn't fix it. Here's the failing command (can't find 
apr.h):

/usr/sbin/apxs -S CFLAGS="-g -O2 -O2  -Werror -Wall 
-Wimplicit-function-declaration -Wall -Wno-strict-aliasing -I.. -I../libbtt 
" -L.. -lbtt `/usr/bin/apr-config --ldflags` -ldb-4.2  `/usr/bin/apr-config 
--link-ld --libs`   -c mod_bt.c

"apr-config --includes" displays the correct directory, so I'd guess apxs 
is not using that. With that hint it looks like I can add 
`/usr/bin/apr-config --includes` to the above command. That seems to let 
that part run to completion.

The next failure happens building php_mod_bt. It looks like multiple 
headers are defining regex stuff, from both glibc-headers and httpd-devel. 
I'd guess that the glibc-headers one wants to be suppressed, since the 
other is included by way of php-devel stuff. I see this happening with the 
first source file:

make -C php_mod_bt
make[3]: Entering directory 
`/home2/buildmeister/BUILD/mod_bt-0.0.13/src/apache2/php_mod_bt'
gcc -g -O2 -O2  -Werror -Wall -Wimplicit-function-declaration -fpic 
-I/usr/include/httpd  -I/usr/include/apr-0  -I/usr/include/php -I/usr/incl¬
ude/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM 
-DBT_VERSION=\"0.0.13\" `/usr/bin/apr-config --cppflags --includes` 
`/usr/bin/php¬
-config --includes` -I../.. -I ../../libbtt -DCOMPILE_DL=1  -c -o 
php_mod_bt.o php_mod_bt.c

In file included from /usr/include/httpd/httpd.h:43,
                 from php_apache.h:24,
                 from php_mod_bt.c:8:
/usr/include/httpd/pcreposix.h:32:1: "REG_ICASE" redefined
In file included from /usr/include/php/main/php_regex.h:39,
                 from /usr/include/php/main/php.h:78,
                 from php_mod_bt.c:6:
/usr/include/regex.h:277:1: this is the location of the previous definition





More information about the fedora-devel-list mailing list