gitlab upgrade from v8.13 to 8.14 gives error with bundle install (I guess it's openssl version error)

i'm having issues installing rugged gem 0.24.0.. below is my error:

also opened a ticket on libgit2 repository on github.com --> https://github.com/libgit2/libgit2/issues/3995

`Installing rqrcode 0.7.0 Installing coffee-script 2.4.1 Installing sprockets 3.7.0 Installing crack 0.4.3 Installing sys-filesystem 1.1.6 Installing fog-core 1.42.0 Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rugged-0.24.0/ext/rugged

/usr/local/bin/ruby -r ./siteconf20161111-2043-18up242.rb extconf.rb checking for gmake... no checking for make... yes checking for cmake... yes checking for pkg-config... yes -- cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo -G "Unix Makefiles" -- /usr/bin/make *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.

Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/local/bin/$(RUBY_BASE_NAME) --use-system-libraries extconf.rb:13:in sys': ERROR: '/usr/bin/make' failed (RuntimeError) from extconf.rb:71:in block (2 levels) in ' from extconf.rb:69:in chdir' from extconf.rb:69:in block in ' from extconf.rb:66:in chdir' from extconf.rb:66:in '

To see why this extension failed to compile, please check the mkmf.log which can be found here:

/home/git/gitlab/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/rugged-0.24.0/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rugged-0.24.0 for inspection. Results logged to /home/git/gitlab/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/rugged-0.24.0/gem_make.out

An error occurred while installing rugged (0.24.0), and Bundler cannot continue. Make sure that gem install rugged -v '0.24.0' succeeds before bundling.`

and the mkmf.log:

/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rugged-0.24.0/vendor/libgit2/src/openssl_stream.c:212:2: note: (near initialization for ‘git_stream_bio_method’) /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rugged-0.24.0/vendor/libgit2/src/openssl_stream.c:213:2: warning: excess elements in struct initializer bio_destroy ^~~~~~~~~~~ /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rugged-0.24.0/vendor/libgit2/src/openssl_stream.c:213:2: note: (near initialization for ‘git_stream_bio_method’) /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rugged-0.24.0/vendor/libgit2/src/openssl_stream.c: In function ‘verify_server_cert’: /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rugged-0.24.0/vendor/libgit2/src/openssl_stream.c:329:4: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations] const char *name = (char *) ASN1_STRING_data(gn->d.ia5); ^~~~~ In file included from /usr/include/openssl/bn.h:31:0, from /usr/include/openssl/asn1.h:24, from /usr/include/openssl/objects.h:916, from /usr/include/openssl/evp.h:27, from /usr/include/openssl/x509.h:23, from /usr/include/openssl/ssl.h:50, from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rugged-0.24.0/vendor/libgit2/src/global.h:22, from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rugged-0.24.0/vendor/libgit2/src/openssl_stream.c:12: /usr/include/openssl/asn1.h:553:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x)) ^ /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rugged-0.24.0/vendor/libgit2/src/openssl_stream.c:384:4: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations] memcpy(peer_cn, ASN1_STRING_data(str), size); ^~~~~~ In file included from /usr/include/openssl/bn.h:31:0, from /usr/include/openssl/asn1.h:24, from /usr/include/openssl/objects.h:916, from /usr/include/openssl/evp.h:27, from /usr/include/openssl/x509.h:23, from /usr/include/openssl/ssl.h:50, from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rugged-0.24.0/vendor/libgit2/src/global.h:22, from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rugged-0.24.0/vendor/libgit2/src/openssl_stream.c:12: /usr/include/openssl/asn1.h:553:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x)) ^ /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rugged-0.24.0/vendor/libgit2/src/openssl_stream.c: At top level: /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rugged-0.24.0/vendor/libgit2/src/openssl_stream.c:204:19: error: storage size of ‘git_stream_bio_method’ isn’t known static BIO_METHOD git_stream_bio_method = { ^~~~~~~~~~~~~~~~~~~~~ CMakeFiles/git2.dir/build.make:1574: recept voor doel 'CMakeFiles/git2.dir/src/openssl_stream.c.o' is mislukt make[2]: *** [CMakeFiles/git2.dir/src/openssl_stream.c.o] Fout 1 CMakeFiles/Makefile2:67: recept voor doel 'CMakeFiles/git2.dir/all' is mislukt make[1]: *** [CMakeFiles/git2.dir/all] Fout 2 Makefile:127: recept voor doel 'all' is mislukt make: *** [all] Fout 2