[openssl-users] Mistake in buildprocess

Mail Lists mail-list-users at materna.de
Mon Jan 11 13:04:02 UTC 2016


Hello,

there is a 'bug', more a mistake, in the buildprocess from openssl.
If you set another destination with --prefix and compile openssl, than 
c_rehash tries to do it's job before
the destination is created and generates warnings near the end:

WARNING: can't open config file: /opt/openssl_101q/ssl/openssl.cnf
ca-cert.pem => 3f77a2b5.0
WARNING: can't open config file: /opt/openssl_101q/ssl/openssl.cnf
dsa-ca.pem => cbdbd8bc.0
WARNING: can't open config file: /opt/openssl_101q/ssl/openssl.cnf
dsa-pca.pem => de4fa23b.0
WARNING: can't open config file: /opt/openssl_101q/ssl/openssl.cnf
pca-cert.pem => e83ef475.0

The following patch modifies Makefile.org and moves the line, which 
invokes c_rehash, to install section:

--- Makefile.orig    2016-01-11 10:43:57.336033819 +0100
+++ Makefile.orig.fix    2016-01-11 10:43:44.008078666 +0100
@@ -448,8 +448,7 @@
          (OPENSSL="`pwd`/util/opensslwrap.sh"; \
          [ -x "apps/openssl.exe" ] && OPENSSL="apps/openssl.exe" || :; \
          OPENSSL_DEBUG_MEMORY=on; \
-        export OPENSSL OPENSSL_DEBUG_MEMORY; \
-        $(PERL) tools/c_rehash certs/demo) && \
+        export OPENSSL OPENSSL_DEBUG_MEMORY) && \
          touch rehash.time; \
      else :; fi

@@ -590,6 +589,7 @@
                  fi; \
              fi; \
          done; \
+        $(PERL) tools/c_rehash certs/demo ; \
          (    here="`pwd`"; \
              cd $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR); \
              $(MAKE) -f $$here/Makefile HERE="$$here" link-shared ); \

Please apply the fix.

Sincerly


More information about the openssl-users mailing list