In mozilla-nss.spec BUILD_OPT is set to 1

%build
cd mozilla/security/nss
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
export NSPR_INCLUDE_DIR=`nspr-config --includedir`
export NSPR_LIB_DIR=`nspr-config --libdir`
export BUILD_OPT=1
export LIBDIR=%{_libdir}
%ifarch x86_64 s390x ppc64 ia64
export USE_64=1
%endif
make nss_build_all

 looking at the nss documentation I believe that settting BUILD_OPT=1 
should enable debug.
I created the orginal rpm for mozilla-nss-tools-3.11-21.9 with rpmbuild.
 
but after setting the envirment variables I did not get any log output.
Is there a way to tell if debug is really enabled?

these are the rpms i have installed ..
mozilla-nss-devel-3.11.4-0.7
mozilla-nss-3.11.4-0.7
mozilla-nspr-devel-4.6.4-0.7
mozilla-nss-tools-3.11-21.9
mozilla-nspr-4.6.4-0.7

My mozilla-nss-tools is not at the same level as the other nss rpms. Is 
this a problem?

webserver1:/etc/apache2 # env | grep NSS
NSS_DEBUG_PKCS11_MODULE=opencryptoki
webserver1:/etc/apache2 # env | grep NSPR
NSPR_LOG_MODULES=nss_mod_log:4
NSPR_LOG_FILE=nspr_log
webserver1:/etc/apache2 #

webserver1:/etc/apache2 # modutil -dbdir /etc/apache2/SampleCertDBs/ -add 
opencryptoki -libfile /usr/lib64/libopencryptoki.so -mechanisms 
RSA:RC2:RC4:RC5:DES:SHA1:MD5:MD2:SSL:TLS

WARNING: Performing this operation while the browser is running could 
cause
corruption of your security databases. If the browser is currently 
running,
you should exit browser before continuing this operation. Type
'q <enter>' to abort, or <enter> to continue:

Using database directory /etc/apache2/SampleCertDBs...
ERROR: Failed to add module "opencryptoki".
webserver1:/etc/apache2 # rm nspr_log
webserver1:/etc/apache2 # modutil -dbdir /etc/apache2/SampleCertDBs/ -add 
opencryptoki -libfile /usr/lib64/libopencryptoki.so -mechanisms 
RSA:RC2:RC4:RC5:DES:SHA1:MD5:MD2:SSL:TLS

WARNING: Performing this operation while the browser is running could 
cause
corruption of your security databases. If the browser is currently 
running,
you should exit browser before continuing this operation. Type
'q <enter>' to abort, or <enter> to continue:

Using database directory /etc/apache2/SampleCertDBs...
ERROR: Failed to add module "opencryptoki".
webserver1:/etc/apache2 # ls -l nspr_log
-rw-r--r-- 1 root root 0 Jul 23 17:13 nspr_log
webserver1:/etc/apache2 #
_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to