[Mod_nss-list] [External] Re: Build Mod_NSS with Apache 2.4

Rob Crittenden rcritten at redhat.com
Fri Aug 2 03:00:22 UTC 2013


Sallah, Kebba [USA] wrote:
> Thank you so much. That fixed the make error.
> One more question is a "make install" required. When I do so I get :
>
> [root at localhost mod_nss-1.0.8]# make install
> make[1]: Entering directory `/usr/src/mod_nss-1.0.8'
> /usr/local/apache2/bin/apxs -i -a -n nss libmodnss.la
> /usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libmodnss.la /usr/local/apache2/modules
> /usr/local/apache2/build/libtool --mode=install install libmodnss.la /usr/local/apache2/modules/
> libtool: install: install .libs/libmodnss.so /usr/local/apache2/modules/libmodnss.so
> libtool: install: install .libs/libmodnss.lai /usr/local/apache2/modules/libmodnss.la
> libtool: install: install .libs/libmodnss.a /usr/local/apache2/modules/libmodnss.a
> libtool: install: chmod 644 /usr/local/apache2/modules/libmodnss.a
> libtool: install: ranlib /usr/local/apache2/modules/libmodnss.a
> libtool: install: warning: remember to run `libtool --finish /usr/local/lib'
> chmod 755 /usr/local/apache2/modules/libmodnss.so
> [activating module `nss' in /usr/local/apache2/conf/httpd.conf]
> if [ -d /usr/local/apache2/conf/../conf.d ]; then \
>              if [ ! -f /usr/local/apache2/conf/../conf.d/nss.conf ]; then \
>                  /usr/bin/install -c -m 644 nss.conf /usr/local/apache2/conf/../conf.d/nss.conf; \
>              fi \
>          else \
>              if [ ! -f /usr/local/apache2/conf/nss.conf ]; then \
>                  /usr/bin/install -c -m 644 nss.conf /usr/local/apache2/conf/nss.conf; \
>              fi \
>          fi
> if [ -d /usr/local/apache2/conf/../conf.d ]; then \
>              if [ -f /usr/local/apache2/conf/../conf.d/ssl.conf ]; then \
>                  mv /usr/local/apache2/conf/../conf.d/ssl.conf /usr/local/apache2/conf/../conf.d/ssl.conf.old; \
>              fi \
>          else \
>              if [ ! -f /usr/local/apache2/conf/ssl.conf ]; then \
>                  mv /usr/local/apache2/conf/ssl.conf /usr/local/apache2/conf/ssl.conf.old; \
>              fi \
>          fi
> mv: cannot stat `/usr/local/apache2/conf/ssl.conf': No such file or directory
> make[1]: *** [install-libLTLIBRARIES] Error 1
> make[1]: Leaving directory `/usr/src/mod_nss-1.0.8'
> make: *** [install-am] Error 2

Ah, it assumes it is installing into an Apache base that also has 
mod_ssl installed. You could update the Makefile and comment this bit 
out. Make install just copies the plugin into place and puts in a 
default configuration file.

rob

>
> -----Original Message-----
> From: Rob Crittenden [mailto:rcritten at redhat.com]
> Sent: Thursday, August 01, 2013 5:52 PM
> To: Sallah, Kebba [USA]; mod_nss-list at redhat.com
> Subject: [External] Re: [Mod_nss-list] Build Mod_NSS with Apache 2.4
>
> Sallah, Kebba [USA] wrote:
>> Hello
>>
>> Has anyone successfully built mod_nss with the latest version of
>> Apache
>> (2.4) ? I built Apache from source successfully and I am now
>> attempting to build mod_nss from source. I figured that since I am not
>> using the system Apache I had to build mod_nss from source rather than
>> using 'yum'.  I am using Centos 6.2.  I have done the following:
>>
>> -Ran à ./configure --with-apxs=/usr/local/apache2/bin/apxs à no errors
>>
>> -Ran à make à the following errors =
>>
>> In file included from mod_nss.c:16:
>>
>> mod_nss.h:30:17: error: mpm.h: No such file or directory
>>
>> mod_nss.c: In function 'NSSBadCertHandler':
>>
>> mod_nss.c:255: warning: passing argument 4 of 'nss_log_nss_error'
>> makes pointer from integer without a cast
>>
>> mod_nss.h:476: note: expected 'struct server_rec *' but argument is of
>> type 'int'
>>
>> mod_nss.c:255: error: too many arguments to function 'nss_log_nss_error'
>>
>> mod_nss.c: In function 'nss_hook_pre_connection':
>>
>> mod_nss.c:333: error: 'conn_rec' has no member named 'remote_ip'
>>
>> mod_nss.c:333: error: 'conn_rec' has no member named 'remote_ip'
>>
>> mod_nss.c:349: warning: passing argument 4 of 'nss_log_nss_error'
>> makes pointer from integer without a cast
>>
>> mod_nss.h:476: note: expected 'struct server_rec *' but argument is of
>> type 'int'
>>
>> mod_nss.c:349: error: too many arguments to function 'nss_log_nss_error'
>>
>> make: *** [mod_nss.lo] Error 1
>>
>> Please help ???
>
> The attached patch should work. It is what is used in Fedora.
>
> rob
>
>>
>> Thanks in advance.
>>
>> Kebba Sallah
>>
>> PKE Engineering Support
>>
>> dodpke at mail.mil <mailto:dodpke at mail.mil>
>>
>> http://iase.disa.mil/pki-pke
>>
>>
>>
>> _______________________________________________
>> Mod_nss-list mailing list
>> Mod_nss-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/mod_nss-list
>>
>




More information about the Mod_nss-list mailing list