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 < ../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 && touch unixd.lo<br>
unixd.c: In function 'keep_capabilities':<br>unixd.c:67: error: 'PR_SET_KEEPCAPS' 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 'set_capabilities':<br>unixd.c:75: error: 'cap_user_header_t' undeclared (first use in this function)<br>unixd.c:75: error: expected ';' before 'head'<br>unixd.c:76: error: 'cap_user_data_t' undeclared (first use in this function)<br>
unixd.c:76: error: expected ';' before 'cap'<br>unixd.c:78: error: 'head' undeclared (first use in this function)<br>unixd.c:78: error: '_LINUX_CAPABILITY_VERSION' undeclared (first use in this function)<br>
unixd.c:80: error: 'cap' undeclared (first use in this function)<br>unixd.c: In function 'unixd_setup_child':<br>unixd.c:201: error: 'CAP_NET_ADMIN' 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>