Forum Stats

  • 3,770,737 Users
  • 2,253,161 Discussions
  • 7,875,572 Comments

Discussions

[PATCH] db 18.1.25 fails to build with OpenSSL 1.1.x

1063383
1063383 Member Posts: 2
edited Feb 15, 2019 7:59AM in Berkeley DB

db 18.1.25 fails to build if OpenSSL >= 1.1 is used.

../src/repmgr/repmgr_net.c:2897:6: error: use of undeclared identifier
      'repmgr_ssl_mutex_arr'
        if (repmgr_ssl_mutex_arr != NULL) {
            ^
../src/repmgr/repmgr_net.c:2899:8: error: use of undeclared identifier          
      'repmgr_ssl_mutex_arr'
                        if (repmgr_ssl_mutex_arr[i] != NULL)
                            ^
../src/repmgr/repmgr_net.c:2900:33: error: use of undeclared identifier         
      'repmgr_ssl_mutex_arr'
                                __repmgr_destroy_mutex(env, repmgr_ssl_mu...
                                                            ^
../src/repmgr/repmgr_net.c:2903:3: error: use of undeclared identifier          
      'repmgr_ssl_mutex_arr'
                repmgr_ssl_mutex_arr = NULL;
                ^
4 errors generated.                                                         

The problem is that repmgr_ssl_mutex_arr is (correctly) created only for OpenSSL < 1.1, but cleaned up even for OpenSSL >= 1.1. The fix is to conditionalize the cleanup the same way the initialization is conditionalized.

Here's the fix:

https://github.com/OpenMandrivaAssociation/db18/blob/master/db-18.1.25-openssl-1.1.patch

Tagged:

Comments