[tproxy] apache-2.2.14 with httpd-2.2.14.tproxy.patch compile error on freebsd-8.2

Dariush Zahedmanesh zahedmanesh at gmail.com
Mon Sep 26 15:36:38 CEST 2011


Hello all
I patched httpd-2.2.14.tproxy on freebsd-8.2 as bellow:

1. tar zxvf httpd-2.2.14.tar.bz2
2. cd httpd-2.2.14
3. patch -p1 < ../httpd-2.2.14.tproxy.patch
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -ru httpd-2.2.14/modules/proxy/mod_proxy_ajp.c
httpd-2.2.14.tproxy/modules/proxy/mod_proxy_ajp.c
|--- httpd-2.2.14/modules/proxy/mod_proxy_ajp.c 2009-04-25
12:04:21.000000000 +0200
|+++ httpd-2.2.14.tproxy/modules/proxy/mod_proxy_ajp.c  2010-02-17
18:46:47.000000000 +0100
--------------------------
Patching file modules/proxy/mod_proxy_ajp.c using Plan A...
Hunk #1 succeeded at 673.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
....
....
....
it seems patch fully successful.
4. ./configure --enable-proxy --enable-proxy-http
but when i try to compile it, it return error!
5. make
...
/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
unixd.c: In function 'keep_capabilities':
unixd.c:67: error: 'PR_SET_KEEPCAPS' undeclared (first use in this function)
unixd.c:67: error: (Each undeclared identifier is reported only once
unixd.c:67: error: for each function it appears in.)
unixd.c: In function 'set_capabilities':
unixd.c:75: error: 'cap_user_header_t' undeclared (first use in this
function)
unixd.c:75: error: expected ';' before 'head'
unixd.c:76: error: 'cap_user_data_t' undeclared (first use in this function)
unixd.c:76: error: expected ';' before 'cap'
unixd.c:78: error: 'head' undeclared (first use in this function)
unixd.c:78: error: '_LINUX_CAPABILITY_VERSION' undeclared (first use in this
function)
unixd.c:80: error: 'cap' undeclared (first use in this function)
unixd.c: In function 'unixd_setup_child':
unixd.c:201: error: 'CAP_NET_ADMIN' undeclared (first use in this function)
*** Error code 1
...
how we can solve this error?
any help would be great



-- 
Best regards
Dariush Zahedmanesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/tproxy/attachments/20110926/d6f37226/attachment.htm 


More information about the tproxy mailing list