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

Fail build on centos 6.5(64bits) #8

Closed
zhaozg opened this issue Aug 31, 2014 · 5 comments · Fixed by #9
Closed

Fail build on centos 6.5(64bits) #8

zhaozg opened this issue Aug 31, 2014 · 5 comments · Fixed by #9

Comments

@zhaozg
Copy link
Contributor

zhaozg commented Aug 31, 2014

curl --version

curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

gcc -O2 -fPIC -I/usr/local/include/luajit-2.0 -c src/l52util.c -o src/l52util.o -I/usr/include
gcc -O2 -fPIC -I/usr/local/include/luajit-2.0 -c src/lceasy.c -o src/lceasy.o -I/usr/include
In file included from src/lceasy.c:230:
src/lcopteasy.h: In function 'lcurl_easy_set_WILDCARDMATCH':
src/lcopteasy.h:33: error: 'CURLOPT_WILDCARDMATCH' undeclared (first use in this function)
src/lcopteasy.h:33: error: (Each undeclared identifier is reported only once
src/lcopteasy.h:33: error: for each function it appears in.)
src/lcopteasy.h: In function 'lcurl_easy_set_TLSAUTH_USERNAME':
src/lcopteasy.h:77: error: 'CURLOPT_TLSAUTH_USERNAME' undeclared (first use in this function)
src/lcopteasy.h: In function 'lcurl_easy_set_TLSAUTH_PASSWORD':
src/lcopteasy.h:78: error: 'CURLOPT_TLSAUTH_PASSWORD' undeclared (first use in this function)
src/lcopteasy.h: In function 'lcurl_easy_set_TLSAUTH_TYPE':
src/lcopteasy.h:79: error: 'CURLOPT_TLSAUTH_TYPE' undeclared (first use in this function)
src/lcopteasy.h: In function 'lcurl_easy_set_ACCEPT_ENCODING':
src/lcopteasy.h:89: error: 'CURLOPT_ACCEPT_ENCODING' undeclared (first use in this function)
src/lcopteasy.h: In function 'lcurl_easy_set_TRANSFER_ENCODING':
src/lcopteasy.h:90: error: 'CURLOPT_TRANSFER_ENCODING' undeclared (first use in this function)
src/lcopteasy.h: In function 'lcurl_easy_set_MAIL_FROM':
src/lcopteasy.h:121: error: 'CURLOPT_MAIL_FROM' undeclared (first use in this function)
src/lcopteasy.h: In function 'lcurl_easy_set_MAIL_RCPT':
src/lcopteasy.h:122: error: 'CURLOPT_MAIL_RCPT' undeclared (first use in this function)
src/lcopteasy.h: In function 'lcurl_easy_set_FTP_USE_PRET':
src/lcopteasy.h:137: error: 'CURLOPT_FTP_USE_PRET' undeclared (first use in this function)
src/lcopteasy.h: In function 'lcurl_easy_set_RESOLVE':
src/lcopteasy.h:178: error: 'CURLOPT_RESOLVE' undeclared (first use in this function)
In file included from src/lceasy.c:364:
src/lcinfoeasy.h: In function 'lcurl_easy_get_PRIMARY_PORT':
src/lcinfoeasy.h:30: error: 'CURLINFO_PRIMARY_PORT' undeclared (first use in this function)
src/lcinfoeasy.h: In function 'lcurl_easy_get_LOCAL_IP':
src/lcinfoeasy.h:31: error: 'CURLINFO_LOCAL_IP' undeclared (first use in this function)
src/lcinfoeasy.h: In function 'lcurl_easy_get_LOCAL_PORT':
src/lcinfoeasy.h:32: error: 'CURLINFO_LOCAL_PORT' undeclared (first use in this function)
src/lcinfoeasy.h: In function 'lcurl_easy_get_RTSP_SESSION_ID':
src/lcinfoeasy.h:37: error: 'CURLINFO_RTSP_SESSION_ID' undeclared (first use in this function)
src/lcinfoeasy.h: In function 'lcurl_easy_get_RTSP_CLIENT_CSEQ':
src/lcinfoeasy.h:38: error: 'CURLINFO_RTSP_CLIENT_CSEQ' undeclared (first use in this function)
src/lcinfoeasy.h: In function 'lcurl_easy_get_RTSP_SERVER_CSEQ':
src/lcinfoeasy.h:39: error: 'CURLINFO_RTSP_SERVER_CSEQ' undeclared (first use in this function)
src/lcinfoeasy.h: In function 'lcurl_easy_get_RTSP_CSEQ_RECV':
src/lcinfoeasy.h:40: error: 'CURLINFO_RTSP_CSEQ_RECV' undeclared (first use in this function)
src/lceasy.c: In function 'lcurl_read_callback':
src/lceasy.c:509: warning: incompatible implicit declaration of built-in function 'memcpy'
src/lceasy.c:513: warning: incompatible implicit declaration of built-in function 'memcpy'
src/lceasy.c:541: warning: incompatible implicit declaration of built-in function 'memcpy'
In file included from src/lceasy.c:649:
src/lcopteasy.h: In function 'lcurl_easy_setopt':
src/lcopteasy.h:33: error: 'CURLOPT_WILDCARDMATCH' undeclared (first use in this function)
src/lcopteasy.h:77: error: 'CURLOPT_TLSAUTH_USERNAME' undeclared (first use in this function)
src/lcopteasy.h:78: error: 'CURLOPT_TLSAUTH_PASSWORD' undeclared (first use in this function)
src/lcopteasy.h:79: error: 'CURLOPT_TLSAUTH_TYPE' undeclared (first use in this function)
src/lcopteasy.h:89: error: 'CURLOPT_ACCEPT_ENCODING' undeclared (first use in this function)
src/lcopteasy.h:90: error: 'CURLOPT_TRANSFER_ENCODING' undeclared (first use in this function)
src/lcopteasy.h:121: error: 'CURLOPT_MAIL_FROM' undeclared (first use in this function)
src/lcopteasy.h:122: error: 'CURLOPT_MAIL_RCPT' undeclared (first use in this function)
src/lcopteasy.h:137: error: 'CURLOPT_FTP_USE_PRET' undeclared (first use in this function)
src/lcopteasy.h:178: error: 'CURLOPT_RESOLVE' undeclared (first use in this function)
src/lceasy.c:660: error: 'CURLE_UNKNOWN_OPTION' undeclared (first use in this function)
In file included from src/lceasy.c:670:
src/lcinfoeasy.h: In function 'lcurl_easy_getinfo':
src/lcinfoeasy.h:30: error: 'CURLINFO_PRIMARY_PORT' undeclared (first use in this function)
src/lcinfoeasy.h:31: error: 'CURLINFO_LOCAL_IP' undeclared (first use in this function)
src/lcinfoeasy.h:32: error: 'CURLINFO_LOCAL_PORT' undeclared (first use in this function)
src/lcinfoeasy.h:37: error: 'CURLINFO_RTSP_SESSION_ID' undeclared (first use in this function)
src/lcinfoeasy.h:38: error: 'CURLINFO_RTSP_CLIENT_CSEQ' undeclared (first use in this function)
src/lcinfoeasy.h:39: error: 'CURLINFO_RTSP_SERVER_CSEQ' undeclared (first use in this function)
src/lcinfoeasy.h:40: error: 'CURLINFO_RTSP_CSEQ_RECV' undeclared (first use in this function)
src/lceasy.c:674: error: 'CURLE_UNKNOWN_OPTION' undeclared (first use in this function)
In file included from src/lceasy.c:712:
src/lcopteasy.h: At top level:
src/lcopteasy.h:33: error: 'CURLOPT_WILDCARDMATCH' undeclared here (not in a function)
src/lcopteasy.h:77: error: 'CURLOPT_TLSAUTH_USERNAME' undeclared here (not in a function)
src/lcopteasy.h:78: error: 'CURLOPT_TLSAUTH_PASSWORD' undeclared here (not in a function)
src/lcopteasy.h:79: error: 'CURLOPT_TLSAUTH_TYPE' undeclared here (not in a function)
src/lcopteasy.h:89: error: 'CURLOPT_ACCEPT_ENCODING' undeclared here (not in a function)
src/lcopteasy.h:90: error: 'CURLOPT_TRANSFER_ENCODING' undeclared here (not in a function)
src/lcopteasy.h:121: error: 'CURLOPT_MAIL_FROM' undeclared here (not in a function)
src/lcopteasy.h:122: error: 'CURLOPT_MAIL_RCPT' undeclared here (not in a function)
src/lcopteasy.h:137: error: 'CURLOPT_FTP_USE_PRET' undeclared here (not in a function)
src/lcopteasy.h:178: error: 'CURLOPT_RESOLVE' undeclared here (not in a function)
In file included from src/lceasy.c:724:
src/lcinfoeasy.h:30: error: 'CURLINFO_PRIMARY_PORT' undeclared here (not in a function)
src/lcinfoeasy.h:31: error: 'CURLINFO_LOCAL_IP' undeclared here (not in a function)
src/lcinfoeasy.h:32: error: 'CURLINFO_LOCAL_PORT' undeclared here (not in a function)
src/lcinfoeasy.h:37: error: 'CURLINFO_RTSP_SESSION_ID' undeclared here (not in a function)
src/lcinfoeasy.h:38: error: 'CURLINFO_RTSP_CLIENT_CSEQ' undeclared here (not in a function)
src/lcinfoeasy.h:39: error: 'CURLINFO_RTSP_SERVER_CSEQ' undeclared here (not in a function)
src/lcinfoeasy.h:40: error: 'CURLINFO_RTSP_CSEQ_RECV' undeclared here (not in a function)
@moteus
Copy link
Member

moteus commented Aug 31, 2014

Please try current master

@zhaozg
Copy link
Contributor Author

zhaozg commented Aug 31, 2014

better, but need fix.

src/lceasy.c: In function 'lcurl_read_callback':
src/lceasy.c:509: warning: incompatible implicit declaration of built-in function 'memcpy'
src/lceasy.c:513: warning: incompatible implicit declaration of built-in function 'memcpy'
src/lceasy.c:541: warning: incompatible implicit declaration of built-in function 'memcpy'
src/lceasy.c: In function 'lcurl_easy_getinfo':
src/lceasy.c:680: error: 'CURLE_UNKNOWN_OPTION' undeclared (first use in this function)
src/lceasy.c:680: error: (Each undeclared identifier is reported only once
src/lceasy.c:680: error: for each function it appears in.)

Error: Build error: Failed compiling object src/lceasy.o

@moteus
Copy link
Member

moteus commented Aug 31, 2014

Please try new one.

@zhaozg
Copy link
Contributor Author

zhaozg commented Aug 31, 2014

Hi,
Because you has no linux, so I think I can solve this, then I'll make a push request.
Please wait a moment.

In file included from src/lcerror.c:30:
src/lcerr_easy.h: In function 'lcurl_err_easy_mnemo':
src/lcerr_easy.h:5: error: 'CURLE_NOT_BUILT_IN' undeclared (first use in this function)
src/lcerr_easy.h:5: error: (Each undeclared identifier is reported only once
src/lcerr_easy.h:5: error: for each function it appears in.)
src/lcerr_easy.h:93: error: 'CURLE_FTP_PRET_FAILED' undeclared (first use in this function)
src/lcerr_easy.h:94: error: 'CURLE_RTSP_CSEQ_ERROR' undeclared (first use in this function)
src/lcerr_easy.h:95: error: 'CURLE_RTSP_SESSION_ERROR' undeclared (first use in this function)
src/lcerr_easy.h:96: error: 'CURLE_FTP_BAD_FILE_LIST' undeclared (first use in this function)
src/lcerr_easy.h:97: error: 'CURLE_CHUNK_FAILED' undeclared (first use in this function)
In file included from src/lcerror.c:211:
src/lcerr_easy.h: At top level:
src/lcerr_easy.h:5: error: 'CURLE_NOT_BUILT_IN' undeclared here (not in a function)
src/lcerr_easy.h:93: error: 'CURLE_FTP_PRET_FAILED' undeclared here (not in a function)
src/lcerr_easy.h:94: error: 'CURLE_RTSP_CSEQ_ERROR' undeclared here (not in a function)
src/lcerr_easy.h:95: error: 'CURLE_RTSP_SESSION_ERROR' undeclared here (not in a function)
src/lcerr_easy.h:96: error: 'CURLE_FTP_BAD_FILE_LIST' undeclared here (not in a function)
src/lcerr_easy.h:97: error: 'CURLE_CHUNK_FAILED' undeclared here (not in a function)

@moteus
Copy link
Member

moteus commented Aug 31, 2014

Thanks.
One note. Doc and headers may do not mention about curl version for some constants.
So just check out vesions in github repo.
Current version works with curl 7.22.0

@moteus moteus closed this as completed in #9 Aug 31, 2014
moteus added a commit that referenced this issue Aug 31, 2014
Fix. Build with libcurl 7.19.7 (Close #8)
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

Successfully merging a pull request may close this issue.

2 participants