Skip to content

Cosign 3.2.0: apache >=2.4.18 patches - #7

Open
kabalin wants to merge 7 commits into
cosignweblogin:cosign-3.2.0-branchfrom
lucisgit:cosign-3.2.0-branch-apache24
Open

Cosign 3.2.0: apache >=2.4.18 patches#7
kabalin wants to merge 7 commits into
cosignweblogin:cosign-3.2.0-branchfrom
lucisgit:cosign-3.2.0-branch-apache24

Conversation

@kabalin

@kabalin kabalin commented Nov 16, 2015

Copy link
Copy Markdown

This is just master branch patches cherry-picked and applied on top of 3.2.0 stable branch to make it compile with no errors for Apache 2.4.

This is closing #4.

Andrew Mortensen and others added 3 commits November 16, 2015 16:37
Apache 2.4 renames the conn_rec struct member name from "remote_ip" to
"client_ip". Detect 2.4 and use COSIGN_CLIENT_IP macro to use the correct
struct member name for 2.2 and 2.4.
(cherry picked from commit ff6d367)
@AaronMcHale

Copy link
Copy Markdown

We use Apache 2.4 on Ubuntu, and when trying to build this patch using "make filters" we get the following error:

mod_cosign.c: In function 'cosign_handler':
mod_cosign.c:349:16: error: 'conn_rec {aka struct 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:537:16: error: 'conn_rec {aka struct conn_rec}' has no member named 'remote_ip'
   r->connection->COSIGN_CLIENT_IP, r->server );
                ^
apxs:Error: Command failed with rc=65536

Any advise would be appreciated

Thanks
Aaron

@kabalin

kabalin commented Jan 26, 2018

Copy link
Copy Markdown
Author

Are you sure you are compiling it for 2.4? What is the exact version number?

@AaronMcHale

Copy link
Copy Markdown

Version is Apache/2.4.18 (Ubuntu)

Thanks
Aaron

Since autoconf 2.69 all AC_DEFINE parameters are required.

"If neither value nor description are given, then value defaults to 1
instead of to the empty string. This is for backwards compatibility with
older versions of Autoconf, but this usage is obsolescent and may be
withdrawn in future versions of Autoconf."
(https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Defining-Symbols.html)
@kabalin

kabalin commented Jun 13, 2018

Copy link
Copy Markdown
Author

Added fixes for 2.4.18+
This builds fine on Debian Stretch apache-dev 2.4.25-3.

@AaronMcHale try building again on Ubuntu and let me know if there are issues.

@kabalin kabalin changed the title Cosign 3.2.0: apache 2.4 patches from master. Cosign 3.2.0: apache >=2.4.1 patches Jun 13, 2018
@kabalin kabalin changed the title Cosign 3.2.0: apache >=2.4.1 patches Cosign 3.2.0: apache >=2.4.18 patches Jun 13, 2018
kabalin added 3 commits June 14, 2018 15:00
It seems apache2 -v output changed so it can't be parsed using existing sed
syntax in APACHE2_MINOR_VERSION definition. Instead we use $APXS2 -q
HTTPD_VERSION to avoid abovementioned ambiguity in version string and
extract minor release number using awk.
@kabalin
kabalin force-pushed the cosign-3.2.0-branch-apache24 branch from 49ea631 to 8e19cd8 Compare June 14, 2018 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants