Hi Liam 

Thanks for the patch. 

Reviewing my installed apache version: 

--- 

dpkg -l|grep apache 

ii apache2 2.4.7-1ubuntu4.8 amd64 Apache HTTP Server 

ii apache2-bin 2.4.7-1ubuntu4.8 amd64 Apache HTTP Server (binary files
and modules) 

ii apache2-data 2.4.7-1ubuntu4.8 all Apache HTTP Server (common files) 

ii apache2-dev 2.4.7-1ubuntu4.8 amd64 Apache HTTP Server (development
headers) 

ii apache2-mpm-prefork 2.4.7-1ubuntu4.8 amd64 transitional prefork MPM
package for apache2 

ii apache2-utils 2.4.7-1ubuntu4.8 amd64 Apache HTTP Server (utility
programs for web servers) 

--- 

/usr/include/apache2/ap_mmn.h: * 20111130.0 (2.4.0-dev) c->remote_ip
becomes c->peer_ip and r->client_ip, 

Now I have applied the patch and re-running: 

./configure --enable-apache2=/usr/bin/apxs2 

make everything 

--- 

make[1]: Entering directory `/root/cosign-3.2.0/html' 

make[1]: Nothing to be done for `all'. 

make[1]: Leaving directory `/root/cosign-3.2.0/html' 

cd daemon; make all 

make[1]: Entering directory `/root/cosign-3.2.0/daemon' 

make[1]: Nothing to be done for `all'. 

make[1]: Leaving directory `/root/cosign-3.2.0/daemon' 

cd filters/apache2; make all 

make[1]: Entering directory `/root/cosign-3.2.0/filters/apache2' 

/usr/bin/apxs2 -c -I../../common -D_LARGEFILE64_SOURCE -I/usr/include
-I../../libsnet -I../common -L/usr/lib -lnsl -lssl -lcrypto mod_cosign.c
../common/connect.c ../common/cookiefs.c ../common/sparse.c
../../common/argcargv.c ../../common/fbase64.c ../../common/mkcookie.c
../../common/rate.c ../../version.c ../../libsnet/snet.c 

/usr/share/apr-1.0/build/libtool --silent --mode=compile
--tag=disable-static x86_64-linux-gnu-gcc -std=gnu99 -prefer-pic -pipe
-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security -D_FORTIFY_SOURCE=2 -DLINUX -D_REENTRANT
-D_GNU_SOURCE -pthread -I/usr/include/apache2 -I/usr/include/apr-1.0
-I/usr/include/apr-1.0 -I/usr/include -I../../common -I/usr/include
-I../../libsnet -I../common -D_LARGEFILE64_SOURCE -c -o mod_cosign.lo
mod_cosign.c && touch mod_cosign.slo 

mod_cosign.c: In function 'cosign_handler': 

mod_cosign.c:350:16: error: 'conn_rec' has no member named 'remote_ip' 

 r->connection->COSIGN_CLIENT_IP, r->server ); 

 ^ 

mod_cosign.c: In function 'cosign_auth': 

mod_cosign.c:538:16: error: 'conn_rec' has no member named 'remote_ip' 

 r->connection->COSIGN_CLIENT_IP, r->server ); 

 ^ 

apxs:Error: Command failed with rc=65536 

. 

make[1]: *** [mod_cosign.la] Error 1 

make[1]: Leaving directory `/root/cosign-3.2.0/filters/apache2' 

make: *** [filters/apache2] Error 2 

-- 

Does this makes any sense? 

Thank you for your help Liam 

Gonzalo 

On 2015-11-16 07:44, Liam Hoekenga wrote: 

> Hi Gonzalo - 
> 
> The initial 3.2.0 release of the Apache HTTPd filter doesn't support 2.4.x. 
> We're trying to get a new release cut, but you can find the patch here.. 
> 
> https://github.com/cosignweblogin/cosign/commit/3f84ca45b2945086135be119e763c4f265dfa46f
>  [3] 
> 
> Liam 
> 
> On Mon, Nov 16, 2015 at 10:13 AM, <g.fer.or...@unicyber.co.uk> wrote:
> 
>> Hi 
>> 
>> I am trying to compile cosign on ubuntu 14.04 
>> 
>> This is for cosign: 3.2.0 
>> 
>> ---- 
>> 
>> ./configure --enable-apache2=/usr/bin/apxs2 
>> 
>> make 
>> 
>> cd filters/apache2; make all 
>> 
>> make[1]: Entering directory `/root/cosign-3.2.0/filters/apache2' 
>> 
>> /usr/bin/apxs2 -c -I../../common -I/usr/include -I../../libsnet -I../common 
>> -L/usr/lib -lnsl -lssl -lcrypto mod_cosign.c ../common/connect.c 
>> ../common/cookiefs.c ../common/sparse.c ../../common/argcargv.c 
>> ../../common/fbase64.c ../../common/mkcookie.c ../../common/rate.c 
>> ../../version.c ../../libsnet/snet.c 
>> 
>> /usr/share/apr-1.0/build/libtool --silent --mode=compile 
>> --tag=disable-static x86_64-linux-gnu-gcc -std=gnu99 -prefer-pic -pipe -g 
>> -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat 
>> -Werror=format-security -D_FORTIFY_SOURCE=2 -DLINUX -D_REENTRANT 
>> -D_GNU_SOURCE -pthread -I/usr/include/apache2 -I/usr/include/apr-1.0 
>> -I/usr/include/apr-1.0 -I/usr/include -I../../common -I/usr/include 
>> -I../../libsnet -I../common -c -o mod_cosign.lo mod_cosign.c && touch 
>> mod_cosign.slo 
>> 
>> mod_cosign.c: In function 'cosign_handler': 
>> 
>> mod_cosign.c:343:16: error: 'conn_rec' has no member named 'remote_ip' 
>> 
>> r->connection->remote_ip, r->server ); 
>> 
>> ^ 
>> 
>> mod_cosign.c: In function 'cosign_auth': 
>> 
>> mod_cosign.c:531:16: error: 'conn_rec' has no member named 'remote_ip' 
>> 
>> ------ 
>> 
>> Running apxs2 by itself: 
>> 
>> /usr/bin/apxs2 -c -I../../common -I/usr/include -I../../libsnet -I../common 
>> -L/usr/lib -lnsl -lssl -lcrypto mod_cosign.c ../common/connect.c 
>> ../common/cookiefs.c ../common/sparse.c ../../common/argcargv.c 
>> ../../common/fbase64.c ../../common/mkcookie.c ../../common/rate.c 
>> ../../version.c ../../libsnet/snet.c 
>> 
>> /usr/share/apr-1.0/build/libtool --silent --mode=compile 
>> --tag=disable-static x86_64-linux-gnu-gcc -std=gnu99 -prefer-pic -pipe -g 
>> -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat 
>> -Werror=format-security -D_FORTIFY_SOURCE=2 -DLINUX -D_REENTRANT 
>> -D_GNU_SOURCE -pthread -I/usr/include/apache2 -I/usr/include/apr-1.0 
>> -I/usr/include/apr-1.0 -I/usr/include -I../../common -I/usr/include 
>> -I../../libsnet -I../common -c -o mod_cosign.lo mod_cosign.c && touch 
>> mod_cosign.slo 
>> 
>> x86_64-linux-gnu-gcc: error: mod_cosign.c: No such file or directory 
>> 
>> x86_64-linux-gnu-gcc: fatal error: no input files 
>> 
>> compilation terminated. 
>> 
>> apxs:Error: Command failed with rc=65536 
>> 
>> Any further parameter should be used during the compilation? 
>> 
>> I went through the README and I have tried multiple things but I always get 
>> the same issue. 
>> 
>> Thanks! 
>> 
>> ------------------------------------------------------------------------------
>> Presto, an open source distributed SQL query engine for big data, initially
>> developed by Facebook, enables you to easily query your data on Hadoop in a
>> more interactive manner. Teradata is also now providing full enterprise
>> support for Presto. Download a free open source copy now.
>> http://pubads.g.doubleclick.net/gampad/clk?id=250295911&iu=/4140 [1]
>> _______________________________________________
>> Cosign-discuss mailing list
>> Cosign-discuss@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/cosign-discuss [2]

 

Links:
------
[1] http://pubads.g.doubleclick.net/gampad/clk?id=250295911&amp;iu=/4140
[2] https://lists.sourceforge.net/lists/listinfo/cosign-discuss
[3]
https://github.com/cosignweblogin/cosign/commit/3f84ca45b2945086135be119e763c4f265dfa46f
------------------------------------------------------------------------------
Presto, an open source distributed SQL query engine for big data, initially
developed by Facebook, enables you to easily query your data on Hadoop in a 
more interactive manner. Teradata is also now providing full enterprise
support for Presto. Download a free open source copy now.
http://pubads.g.doubleclick.net/gampad/clk?id=250295911&iu=/4140
_______________________________________________
Cosign-discuss mailing list
Cosign-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cosign-discuss

Reply via email to