Hi Gonzalo,

We had a similar problem recently, the patch mentioned by Liam is not 
sufficient, you need three patches cherry-picked to 3.2.0 stable branch in the 
following order:

https://github.com/cosignweblogin/cosign/commit/aaea103f93c9364fa07a424218ec18cb715a2a20
https://github.com/cosignweblogin/cosign/commit/46befd6b2db27bdb5798b3468ac0c2c640b02c1b
https://github.com/cosignweblogin/cosign/commit/9a507976141b894a06c418a2ca519cd10cf41a29

(or just use this branch which contain those patches 
https://github.com/lucisgit/cosign/tree/cosign-3.2.0-branch-apache24)

Best,
Ruslan

------------------------------
Date: Mon, 16 Nov 2015 08:13:28 -0800
From: g.fer.or...@unicyber.co.uk
Subject: Re: [Cosign-discuss] Cosign -- Compilation Issues
To: Liam Hoekenga <li...@umich.edu>
Cc: cosign-discuss@lists.sourceforge.net
Message-ID: <0640414f79c35fc4e187288278d68...@unicyber.co.uk>
Content-Type: text/plain; charset="us-ascii"

 

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/3f84ca45b2945086135be1
> 19e763c4f265dfa46f [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
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

------------------------------------------------------------------------------
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


End of Cosign-discuss Digest, Vol 97, Issue 2
*********************************************

------------------------------------------------------------------------------
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