Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of undeclared identifier when building on OS X 10.10 #32

Closed
naknut opened this issue Apr 9, 2015 · 6 comments
Closed

Use of undeclared identifier when building on OS X 10.10 #32

naknut opened this issue Apr 9, 2015 · 6 comments

Comments

@naknut
Copy link

naknut commented Apr 9, 2015

Im trying to build the project on my OS X 10.10 machine and get the following errors.

/curlcpp/src/curl_easy.cpp:6:
include/curl_easy.h:838:31: error: use of undeclared identifier 'CURLOPT_PINNEDPUBLICKEY'
        CURLCPP_DEFINE_OPTION(CURLOPT_PINNEDPUBLICKEY, const char*);

/curlcpp/include/curl_easy.h:841:31: error: use of undeclared identifier 'CURLOPT_UNIX_SOCKET_PATH'
        CURLCPP_DEFINE_OPTION(CURLOPT_UNIX_SOCKET_PATH, const char*);

/curlcpp/include/curl_easy.h:844:31: error: use of undeclared identifier 'CURLOPT_SSL_VERIFYSTATUS'; did you mean 'CURLOPT_SSL_VERIFYHOST'?
        CURLCPP_DEFINE_OPTION(CURLOPT_SSL_VERIFYSTATUS, long);

/curlcpp/include/curl_easy.h:844:9: error: redefinition of 'curl::detail::option_t<CURLOPT_SSL_VERIFYHOST>'
        CURLCPP_DEFINE_OPTION(CURLOPT_SSL_VERIFYSTATUS, long);

Do curlcpp not support the OS X version of libcurl?

@JosephP91
Copy link
Owner

@naknut The required version is libcurl 7.28 (as written in CMakeLists.txt). I have OSX 10.10 too and I can compile it without errors. What version do you have?

@naknut
Copy link
Author

naknut commented Apr 10, 2015

The version that is preinstalled with OS X 10.10 is 7.37.1 and i got the error when i built it with that one. I updated curl with Homebrew to 7.41 and now I can build. As you said, curlcpp says it needs atleast 7.28 but my default version is higher. Maybe the version that comes with OS X be different from the official version?

@naknut
Copy link
Author

naknut commented Apr 10, 2015

Just so you know I'm not BSing you:

naknut@Marcuss-MacBook-Pro:~ $ /usr/bin/curl --version
curl 7.37.1 (x86_64-apple-darwin14.0) libcurl/7.37.1 SecureTransport zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IPv6 Largefile NTLM NTLM_WB SSL libz

Can't build with this version

naknut@Marcuss-MacBook-Pro:~ $ curl --version
curl 7.41.0 (x86_64-apple-darwin14.1.0) libcurl/7.41.0 SecureTransport zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: IPv6 Largefile NTLM NTLM_WB SSL libz UnixSockets

Can build with this version

@JosephP91
Copy link
Owner

Probably yes. I have installed libcurl downloading it from its website and compiling it. But if it works with your version, it's good.

@JosephP91
Copy link
Owner

@naknut very strange. I will check what are the differences between libcurl OSX version and the on homebrew/port. Are you able to compile now?

@susnux
Copy link
Contributor

susnux commented Apr 11, 2015

The problem is the usage of CURLOPT_SSL_VERIFYSTATUS in curl_easy.
It was introduced in 7.41.0
See also here:
http://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYSTATUS.html

AVAILABILITY
Added in 7.41.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants