Phusion Passenger Apache 2 module installer, v5.0.30, libcurl was found, but it isn't usable.

40 views
Skip to first unread message

Mark Carranza

unread,
Sep 9, 2016, 6:19:46 PM9/9/16
to Phusion Passenger Discussions
Hi, error running passenger-install-apache2-module on Passenger v5.0.6 and v5.0.30. Suggestions please.

tl;dr: 
apt-get update
apt-get openssl, libcurl4-openssl-dev [nothing changed]

Bitnami Ruby 2.3.1-4-r16
Ubuntu 14.04.4 LTS
/opt/bitnami/common/lib/libcurl.so: undefined reference to `SSL_get0_alpn_selected'
/opt/bitnami/common/lib/libcurl.so: undefined reference to `SSL_CTX_set_alpn_protos'

Thanks!

 * Checking for Curl development headers with SSL support...
       -> Checking for curl/curl.h
          Running: cc -v -c '/tmp/passenger.1qzoqdo/passenger-compile-check.c' -o '/tmp/passenger.1qzoqdo/passenger-compile-check.c.o' -I/opt/bitnami/common/include -DHAS_CURL_EASY_RESET
          Source file contains:
          -------------------------
          #include <curl/curl.h>
          -------------------------
       -> Output:
          -------------------------
          Using built-in specs.
          COLLECT_GCC=cc
          Target: x86_64-linux-gnu
          Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1~14.04.3' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
          Thread model: posix
          gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
          COLLECT_GCC_OPTIONS='-v' '-c' '-o' '/tmp/passenger.1qzoqdo/passenger-compile-check.c.o' '-I' '/opt/bitnami/common/include' '-D' 'HAS_CURL_EASY_RESET' '-mtune=generic' '-march=x86-64'
           /usr/lib/gcc/x86_64-linux-gnu/4.8/cc1 -quiet -v -I /opt/bitnami/common/include -imultiarch x86_64-linux-gnu -D HAS_CURL_EASY_RESET /tmp/passenger.1qzoqdo/passenger-compile-check.c -quiet -dumpbase passenger-compile-check.c -mtune=generic -march=x86-64 -auxbase-strip /tmp/passenger.1qzoqdo/passenger-compile-check.c.o -version -fstack-protector -Wformat -Wformat-security -o /tmp/ccB4tggs.s
          GNU C (Ubuntu 4.8.4-2ubuntu1~14.04.3) version 4.8.4 (x86_64-linux-gnu)
                compiled by GNU C version 4.8.4, GMP version 5.1.3, MPFR version 3.1.2-p3, MPC version 1.0.1
          GGC heuristics: --param ggc-min-expand=63 --param ggc-min-heapsize=62684
          ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
          ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../x86_64-linux-gnu/include"
          #include "..." search starts here:
          #include <...> search starts here:
           /opt/bitnami/common/include
           /usr/lib/gcc/x86_64-linux-gnu/4.8/include
           /usr/local/include
           /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed
           /usr/include/x86_64-linux-gnu
           /usr/include
          End of search list.
          GNU C (Ubuntu 4.8.4-2ubuntu1~14.04.3) version 4.8.4 (x86_64-linux-gnu)
                compiled by GNU C version 4.8.4, GMP version 5.1.3, MPFR version 3.1.2-p3, MPC version 1.0.1
          GGC heuristics: --param ggc-min-expand=63 --param ggc-min-heapsize=62684
          Compiler executable checksum: a0a649d344b1ed798e33d30772d46437
          COLLECT_GCC_OPTIONS='-v' '-c' '-o' '/tmp/passenger.1qzoqdo/passenger-compile-check.c.o' '-I' '/opt/bitnami/common/include' '-D' 'HAS_CURL_EASY_RESET' '-mtune=generic' '-march=x86-64'
           as -v -I /opt/bitnami/common/include --64 -o /tmp/passenger.1qzoqdo/passenger-compile-check.c.o /tmp/ccB4tggs.s
          GNU assembler version 2.24 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.24
          COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/
          LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../:/lib/:/usr/lib/
          COLLECT_GCC_OPTIONS='-v' '-c' '-o' '/tmp/passenger.1qzoqdo/passenger-compile-check.c.o' '-I' '/opt/bitnami/common/include' '-D' 'HAS_CURL_EASY_RESET' '-mtune=generic' '-march=x86-64'

          -------------------------
       -> Check succeeded
       -> Checking for libcurl usability
          Running: cc '/tmp/passenger.1ov0x8a/passenger-run-check.c' -o '/tmp/passenger.1ov0x8a/passenger-run-check.c.out' -I/opt/bitnami/common/include -DHAS_CURL_EASY_RESET -L/opt/bitnami/common/lib -lcurl
          Source file contains:
          -------------------------
          #include <curl/curl.h>
          int main() {
            curl_global_init(CURL_GLOBAL_ALL);
            return 0;
          }
          -------------------------
/opt/bitnami/common/lib/libcurl.so: undefined reference to `SSL_get0_alpn_selected'
/opt/bitnami/common/lib/libcurl.so: undefined reference to `SSL_CTX_set_alpn_protos'
collect2: error: ld returned 1 exit status
       -> Check failed with exit status 1
      Found: yes, but there was an error
      Error: libcurl was found, but it isn't usable. Set VERBOSE=1 to see why.
      Version: libcurl 7.45.0
      Usable: no
      Header location: /opt/bitnami/common/include/curl/curl.h
      curl-config location: /opt/bitnami/common/bin/curl-config

Daniel Knoppel

unread,
Sep 12, 2016, 6:40:31 AM9/12/16
to Phusion Passenger Discussions
Probably not a Passenger issue but a bitnami one, see: https://github.com/phusion/passenger/issues/917

- Daniel

Mark Carranza

unread,
Sep 12, 2016, 3:59:05 PM9/12/16
to Phusion Passenger Discussions
thanks for the pointer. I'll post fix when I figure it out. More help welcome! 
--Mark

Mark Carranza

unread,
Sep 16, 2016, 5:50:05 AM9/16/16
to Phusion Passenger Discussions
Reply all
Reply to author
Forward
0 new messages