Hello all<br>I patched httpd-2.2.14.tproxy on freebsd-8.2 as bellow:<br><br>1. tar zxvf httpd-2.2.14.tar.bz2<br>2. cd httpd-2.2.14<br>3. patch -p1 &lt; ../httpd-2.2.14.tproxy.patch<br>Hmm...  Looks like a unified diff to me...<br>
The text leading up to this was:<br>--------------------------<br>|diff -ru httpd-2.2.14/modules/proxy/mod_proxy_ajp.c httpd-2.2.14.tproxy/modules/proxy/mod_proxy_ajp.c<br>|--- httpd-2.2.14/modules/proxy/mod_proxy_ajp.c 2009-04-25 12:04:21.000000000 +0200<br>
|+++ httpd-2.2.14.tproxy/modules/proxy/mod_proxy_ajp.c  2010-02-17 18:46:47.000000000 +0100<br>--------------------------<br>Patching file modules/proxy/mod_proxy_ajp.c using Plan A...<br>Hunk #1 succeeded at 673.<br>Hmm...  The next patch looks like a unified diff to me...<br>
The text leading up to this was:<br>....<br>....<br>....<br>it seems patch fully successful.<br>4. ./configure --enable-proxy --enable-proxy-http<br>but when i try to compile it, it return error!<br>5. make<br>...<br>/usr/local/share/apr/build-1/libtool --silent --mode=compile cc -g -O2        -I/root/httpd-2.2.14/srclib/pcre -I. -I/root/httpd-2.2.14/os/unix -I/root/httpd-2.2.14/server/mpm/prefork -I/root/httpd-2.2.14/modules/http -I/root/httpd-2.2.14/modules/filters -I/root/httpd-2.2.14/modules/proxy -I/root/httpd-2.2.14/include -I/root/httpd-2.2.14/modules/generators -I/root/httpd-2.2.14/modules/mappers -I/root/httpd-2.2.14/modules/database -I/usr/local/include/apr-1 -I/usr/local/include -I/usr/local/include/db42 -I/root/httpd-2.2.14/modules/proxy/../generators -I/root/httpd-2.2.14/modules/ssl -I/root/httpd-2.2.14/modules/dav/main -prefer-non-pic -static -c unixd.c &amp;&amp; touch unixd.lo<br>
unixd.c: In function &#39;keep_capabilities&#39;:<br>unixd.c:67: error: &#39;PR_SET_KEEPCAPS&#39; undeclared (first use in this function)<br>unixd.c:67: error: (Each undeclared identifier is reported only once<br>unixd.c:67: error: for each function it appears in.)<br>
unixd.c: In function &#39;set_capabilities&#39;:<br>unixd.c:75: error: &#39;cap_user_header_t&#39; undeclared (first use in this function)<br>unixd.c:75: error: expected &#39;;&#39; before &#39;head&#39;<br>unixd.c:76: error: &#39;cap_user_data_t&#39; undeclared (first use in this function)<br>
unixd.c:76: error: expected &#39;;&#39; before &#39;cap&#39;<br>unixd.c:78: error: &#39;head&#39; undeclared (first use in this function)<br>unixd.c:78: error: &#39;_LINUX_CAPABILITY_VERSION&#39; undeclared (first use in this function)<br>
unixd.c:80: error: &#39;cap&#39; undeclared (first use in this function)<br>unixd.c: In function &#39;unixd_setup_child&#39;:<br>unixd.c:201: error: &#39;CAP_NET_ADMIN&#39; undeclared (first use in this function)<br>*** Error code 1<br>
...<br>how we can solve this error?<br>any help would be great<br><br><br clear="all"><br>-- <br><div style="text-align: left;">Best regards<br>Dariush Zahedmanesh</div><br>