I went into a problem running passenger-install-apache2-module on a RHEL 5.7 (Tikanga).. The error
error: 'CURLE_PEER_FAILED_VERIFICATION' undeclared (first use in this function) seems to suggest that I am not running the right version of curl-devel; but I like to get some help in confirming that and find out how I can find out which version of curl-devel would be right? When I ran the yum install curl-devel on the box, it seems to suggest that I already have the latest version (curl-devel-7.15.5-9.el5_6.3.x86_64, curl-devel-7.15.5-9.el5_6.3.i386) on my box.
uname -a
Linux scgtpdkdev01 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
I ran the install using the VERBOSE option as suggested:
bash-3.2$ VERBOSE=1 passenger-install-apache2-module
Here is the output from the section with checking for Curl development headers with SSL support...
* Checking for Curl development headers with SSL support...
-> Checking for curl/curl.h
Running: cc -v -c '/tmp/passenger.1gm2te6/passenger-compile-check.c' -o '/tmp/passenger.1gm2te6/passenger-compile-check.c.o'
Source file contains:
-------------------------
#include <curl/curl.h>
-------------------------
-> Output:
-------------------------
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-51)
/usr/libexec/gcc/x86_64-redhat-linux/4.1.2/cc1 -quiet -v /tmp/passenger.1gm2te6/passenger-compile-check.c -quiet -dumpbase passenger-compile-check.c -mtune=generic -auxbase-strip /tmp/passenger.1gm2te6/passenger-compile-check.c.o -version -o /tmp/ccAiiF0w.s
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../x86_64-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/include
/usr/include
End of search list.
GNU C version 4.1.2 20080704 (Red Hat 4.1.2-51) (x86_64-redhat-linux)
compiled by GNU C version 4.1.2 20080704 (Red Hat 4.1.2-51).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: bcbd5921f82be70dc3ef3989b5ea9e5e
as -V -Qy -o /tmp/passenger.1gm2te6/passenger-compile-check.c.o /tmp/ccAiiF0w.s
GNU assembler version 2.17.50.0.6-14.el5 (x86_64-redhat-linux) using BFD version 2.17.50.0.6-14.el5 20061020
-------------------------
-> Check succeeded
-> Checking for libcurl usability
Running: cc '/tmp/passenger.k2v8h1/passenger-run-check.c' -o '/tmp/passenger.k2v8h1/passenger-run-check.c.out' -L/usr/kerberos/lib64 -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz
Source file contains:
-------------------------
#include <curl/curl.h>
int main() {
CURLcode result = curl_global_init(CURL_GLOBAL_ALL);
if (result == CURLE_PEER_FAILED_VERIFICATION) { // fails to compile if too old
return 1;
}
return 0;
}
-------------------------
/tmp/passenger.k2v8h1/passenger-run-check.c: In function 'main':
/tmp/passenger.k2v8h1/passenger-run-check.c:5: error: 'CURLE_PEER_FAILED_VERIFICATION' undeclared (first use in this function)
/tmp/passenger.k2v8h1/passenger-run-check.c:5: error: (Each undeclared identifier is reported only once
/tmp/passenger.k2v8h1/passenger-run-check.c:5: error: for each function it appears in.)
-> 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.
curl-config location: /usr/bin/curl-config
Header location: /usr/include/curl/curl.h
Version: libcurl 7.15.5
Usable: no