From jpayanides at prosodie.com Wed Sep 16 16:39:48 2015 From: jpayanides at prosodie.com (AYANIDES, Jean-Philippe) Date: Wed, 16 Sep 2015 18:39:48 +0200 Subject: [Mod_nss-list] unable to compile mod_nss version 1.0.11 Message-ID: <55F99B54.9010604@prosodie.com> Hi, Has anybody succeeded in compiling mod_nss-1.0.11 on CentOS release 6.5 ? The error is the following : mod_nss.c: In function 'NSSBadCertHandler': mod_nss.c:287: warning: passing argument 4 of 'nss_log_nss_error' makes integer from pointer without a cast mod_nss.h:466: note: expected 'int' but argument is of type 'void *' mod_nss.c:287: error: too few arguments to function 'nss_log_nss_error' mod_nss.c: In function 'nss_hook_pre_connection': mod_nss.c:365: error: 'conn_rec' has no member named 'client_ip' mod_nss.c:365: error: 'conn_rec' has no member named 'client_ip' mod_nss.c:381: warning: passing argument 4 of 'nss_log_nss_error' makes integer from pointer without a cast mod_nss.h:466: note: expected 'int' but argument is of type 'struct server_rec *' mod_nss.c:381: error: too few arguments to function 'nss_log_nss_error' gmake: *** [mod_nss.lo] Error 1 When I try to compare mod_nss.c and .h, I can see the following difference which causes mod_nss not to compile: mod_nss.h:466 * Logging */ void nss_log_nss_error(const char *file, int line, int module_index, int level, server_rec *s); mod_nss.c:287 nss_log_nss_error(APLOG_MARK, APLOG_ERR, NULL); This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. From rcritten at redhat.com Wed Sep 16 17:48:23 2015 From: rcritten at redhat.com (Rob Crittenden) Date: Wed, 16 Sep 2015 13:48:23 -0400 Subject: [Mod_nss-list] unable to compile mod_nss version 1.0.11 In-Reply-To: <55F99B54.9010604@prosodie.com> References: <55F99B54.9010604@prosodie.com> Message-ID: <55F9AB67.5080803@redhat.com> AYANIDES, Jean-Philippe wrote: > Hi, > Has anybody succeeded in compiling mod_nss-1.0.11 > on CentOS release 6.5 ? > > The error is the following : > mod_nss.c: In function 'NSSBadCertHandler': > mod_nss.c:287: warning: passing argument 4 of 'nss_log_nss_error' makes > integer from pointer without a cast > mod_nss.h:466: note: expected 'int' but argument is of type 'void *' > mod_nss.c:287: error: too few arguments to function 'nss_log_nss_error' > mod_nss.c: In function 'nss_hook_pre_connection': > mod_nss.c:365: error: 'conn_rec' has no member named 'client_ip' > mod_nss.c:365: error: 'conn_rec' has no member named 'client_ip' > mod_nss.c:381: warning: passing argument 4 of 'nss_log_nss_error' makes > integer from pointer without a cast > mod_nss.h:466: note: expected 'int' but argument is of type 'struct > server_rec *' > mod_nss.c:381: error: too few arguments to function 'nss_log_nss_error' > gmake: *** [mod_nss.lo] Error 1 > > When I try to compare mod_nss.c and .h, I can see the following > difference which causes mod_nss not to compile: > mod_nss.h:466 > * Logging */ > void nss_log_nss_error(const char *file, int line, int module_index, int > level, server_rec *s); > > mod_nss.c:287 > nss_log_nss_error(APLOG_MARK, APLOG_ERR, NULL); At least some of these are Apache 2.2 vs 2.4 compatibility issues. I guess I never formally dropped support for 2.2 but I haven't tested against it for a while. I seem to recall a patch against mod_nss 1.0.8 in RHEL/CentOS to address at least some of these. You might try digging that up to see if it helps, though the line numbers are surely quite skewed by now. I take a look at this but can't promise when. rob From jchappell at idfoundry.com Thu Sep 17 16:35:29 2015 From: jchappell at idfoundry.com (James Chappell) Date: Thu, 17 Sep 2015 12:35:29 -0400 Subject: [Mod_nss-list] unable to compile mod_nss version 1.0.11 Message-ID: <55FAEBD1.9090008@idfoundry.com> Not sure if it helps but to use mod_nss-1.0.11 with Apache HTTP 2.2.x, I "removed" the mod_nss-http24.patch using patch from the mod_nss-1.0.11 baseline. I further had to remove all the test_cipher portions from the generated Makefile after the autoconf. Obviously not ideal, but ... -- James Chappell | Managing Director 617 Stokes Rd, Ste. 4 #304 | Medford | NJ 08055 | USA Mobile: +1 609 472 3904 | Fax: +1 866 304 3754 -------------- next part -------------- An HTML attachment was scrubbed... URL: