0.8.5 and cvs checkout don't compile

Discussion Forum for YPOPs!/Linux.


0.8.5 and cvs checkout don't compile

Postby ffi on June 4th, 2006, 2:15 am

For the CVS checkout, the compiler gives the following error
Code: Select all
DataHolder.cpp: In member function ‘int CDataHolder::Load(char*)’:
DataHolder.cpp:479: error: ‘errno’ was not declared in this scope
DataHolder.cpp:481: error: ‘ENOENT’ was not declared in this scope
make[1]: *** [DataHolder.o] Error 1


I have tried with gcc 4.0 and 4.1.1 (on Ubuntu Dapper and Mandriva Cooker respectively)

0.8.5 won't compile either but gives a different error. I need some help with this as my version (0.8.3) has stopped working :idea:

(edit: I don't have yahoo mail beta....)

ffi
YPOPs! Rookie
YPOPs! Rookie
 
Posts: 16
Joined: February 6th, 2006, 5:54 pm

Postby osdndevel on June 12th, 2006, 4:07 am

add a line #include <errno.h> in the file. It should suffice. I shall have a look into it and make the necessary corrections.
Thanks for pointing this out
K.Shyam
osdndevel
Developer
Developer
 
Posts: 8
Joined: July 6th, 2003, 10:33 pm

Postby ffi on June 14th, 2006, 1:04 pm

thanks, that would be nice :)
ffi
YPOPs! Rookie
YPOPs! Rookie
 
Posts: 16
Joined: February 6th, 2006, 5:54 pm

Postby ffi on June 14th, 2006, 3:30 pm

Hmm, adding #include <errno.h> to Dataholder.cpp doesnt compile either, still get a lot or errors

Code: Select all
In file included from HttpClient.cpp:49:
HttpClient.h:46:23: error: curl/curl.h: No such file or directory
HttpClient.h:47:24: error: curl/types.h: No such file or directory
HttpClient.h:48:23: error: curl/easy.h: No such file or directory
HttpClient.h:102: error: ISO C++ forbids declaration of ‘CURL’ with no type
HttpClient.h:102: error: expected ‘;’ before ‘*’ token
HttpClient.cpp: In destructor ‘virtual HttpClient::~HttpClient()’:
HttpClient.cpp:120: error: ‘curl_handle’ was not declared in this scope
HttpClient.cpp:121: error: ‘curl_easy_cleanup’ was not declared in this scope
HttpClient.cpp: In member function ‘BOOL HttpClient::AddHeader(const char*, const char*)’:
HttpClient.cpp:188: error: ‘curl_slist_append’ was not declared in this scope
HttpClient.cpp: In member function ‘BOOL HttpClient::DoPostInternal(const char*, const void*, HttpClientResponse&, bool)’:
HttpClient.cpp:244: error: ‘CURL’ was not declared in this scope
HttpClient.cpp:244: error: ‘curl_handle’ was not declared in this scope
HttpClient.cpp:245: error: ‘CURLcode’ was not declared in this scope
HttpClient.cpp:245: error: expected `;' before ‘res’
HttpClient.cpp:255: error: ‘curl_easy_init’ was not declared in this scope
HttpClient.cpp:260: error: ‘CURLOPT_URL’ was not declared in this scope
HttpClient.cpp:260: error: ‘curl_easy_setopt’ was not declared in this scope
HttpClient.cpp:263: error: ‘CURLOPT_WRITEFUNCTION’ was not declared in this scope
HttpClient.cpp:264: error: ‘CURLOPT_FILE’ was not declared in this scope
HttpClient.cpp:265: error: ‘CURLOPT_HEADERFUNCTION’ was not declared in this scope
HttpClient.cpp:266: error: ‘CURLOPT_WRITEHEADER’ was not declared in this scope
HttpClient.cpp:268: error: ‘CURLOPT_USERAGENT’ was not declared in this scope
HttpClient.cpp:269: error: ‘CURLOPT_HTTPHEADER’ was not declared in this scope
HttpClient.cpp:270: error: ‘CURLOPT_FOLLOWLOCATION’ was not declared in this scope
HttpClient.cpp:271: error: ‘CURLOPT_MAXREDIRS’ was not declared in this scope
HttpClient.cpp:278: error: ‘CURLOPT_SSLENGINE_DEFAULT’ was not declared in this scope
HttpClient.cpp:279: error: ‘CURLOPT_SSL_VERIFYPEER’ was not declared in this scope
HttpClient.cpp:280: error: ‘CURLOPT_SSL_VERIFYHOST’ was not declared in this scope
HttpClient.cpp:281: error: ‘CURLOPT_NOPROGRESS’ was not declared in this scope
HttpClient.cpp:282: error: ‘CURLOPT_NOSIGNAL’ was not declared in this scope
HttpClient.cpp:287: error: ‘CURLOPT_HTTPPOST’ was not declared in this scope
HttpClient.cpp:291: error: ‘CURLOPT_POSTFIELDS’ was not declared in this scope
HttpClient.cpp:299: error: ‘CURLOPT_PROXY’ was not declared in this scope
HttpClient.cpp:305: error: ‘CURLOPT_PROXY’ was not declared in this scope
HttpClient.cpp:311: error: ‘CURLOPT_PROXYUSERPWD’ was not declared in this scope
HttpClient.cpp:315: error: ‘res’ was not declared in this scope
HttpClient.cpp:315: error: ‘curl_easy_perform’ was not declared in this scope
HttpClient.cpp:318: error: ‘CURLINFO_EFFECTIVE_URL’ was not declared in this scope
HttpClient.cpp:318: error: ‘curl_easy_getinfo’ was not declared in this scope
HttpClient.cpp:323: error: ‘curl_easy_cleanup’ was not declared in this scope
HttpClient.cpp:328: error: ‘CURLE_OK’ was not declared in this scope
HttpClient.cpp:331: error: ‘curl_easy_strerror’ was not declared in this scope
HttpClient.cpp:334: error: ‘CURLE_OK’ was not declared in this scope
HttpClient.cpp: In member function ‘int HttpClient::DoGetInternal(const char*, HttpClientResponse&)’:
HttpClient.cpp:380: error: ‘CURLcode’ was not declared in this scope
HttpClient.cpp:380: error: expected `;' before ‘res’
HttpClient.cpp:392: error: ‘curl_handle’ was not declared in this scope
HttpClient.cpp:392: error: ‘CURLOPT_URL’ was not declared in this scope
HttpClient.cpp:392: error: ‘curl_easy_setopt’ was not declared in this scope
HttpClient.cpp:394: error: ‘CURLOPT_FILE’ was not declared in this scope
HttpClient.cpp:395: error: ‘CURLOPT_WRITEHEADER’ was not declared in this scope
HttpClient.cpp:396: error: ‘CURLOPT_HTTPHEADER’ was not declared in this scope
HttpClient.cpp:403: error: ‘CURLOPT_PROXY’ was not declared in this scope
HttpClient.cpp:409: error: ‘CURLOPT_PROXY’ was not declared in this scope
HttpClient.cpp:415: error: ‘CURLOPT_PROXYUSERPWD’ was not declared in this scope
HttpClient.cpp:419: error: ‘res’ was not declared in this scope
HttpClient.cpp:419: error: ‘curl_easy_perform’ was not declared in this scope
HttpClient.cpp:422: error: ‘CURLINFO_EFFECTIVE_URL’ was not declared in this scope
HttpClient.cpp:422: error: ‘curl_easy_getinfo’ was not declared in this scope
HttpClient.cpp:427: error: ‘CURLINFO_CONTENT_TYPE’ was not declared in this scope
HttpClient.cpp:435: error: ‘CURLE_OK’ was not declared in this scope
HttpClient.cpp:438: error: ‘curl_easy_strerror’ was not declared in this scope
HttpClient.cpp:441: error: ‘CURLE_OK’ was not declared in this scope
HttpClient.cpp: In member function ‘void HttpClient::Reset()’:
HttpClient.cpp:459: error: ‘curl_slist_free_all’ was not declared in this scope
HttpClient.cpp: In member function ‘void HttpClient::FullReset()’:
HttpClient.cpp:539: error: ‘curl_handle’ was not declared in this scope
HttpClient.cpp:540: error: ‘curl_easy_cleanup’ was not declared in this scope
HttpClient.cpp: In member function ‘void HttpClient::Initialize()’:
HttpClient.cpp:554: error: ‘curl_handle’ was not declared in this scope
HttpClient.cpp:554: error: ‘curl_easy_init’ was not declared in this scope
HttpClient.cpp:556: error: ‘CURLOPT_WRITEFUNCTION’ was not declared in this scope
HttpClient.cpp:556: error: ‘curl_easy_setopt’ was not declared in this scope
HttpClient.cpp:557: error: ‘CURLOPT_HEADERFUNCTION’ was not declared in this scope
HttpClient.cpp:558: error: ‘CURLOPT_USERAGENT’ was not declared in this scope
HttpClient.cpp:559: error: ‘CURLOPT_FOLLOWLOCATION’ was not declared in this scope
HttpClient.cpp:560: error: ‘CURLOPT_MAXREDIRS’ was not declared in this scope
HttpClient.cpp:563: error: ‘CURLOPT_COOKIEFILE’ was not declared in this scope
HttpClient.cpp:566: error: ‘CURLOPT_SSLENGINE_DEFAULT’ was not declared in this scope
HttpClient.cpp:567: error: ‘CURLOPT_SSL_VERIFYPEER’ was not declared in this scope
HttpClient.cpp:568: error: ‘CURLOPT_SSL_VERIFYHOST’ was not declared in this scope
HttpClient.cpp:569: error: ‘CURLOPT_NOPROGRESS’ was not declared in this scope
HttpClient.cpp:570: error: ‘CURLOPT_NOSIGNAL’ was not declared in this scope
make[1]: *** [HttpClient.o] Error 1
ffi
YPOPs! Rookie
YPOPs! Rookie
 
Posts: 16
Joined: February 6th, 2006, 5:54 pm

Postby Rod on June 23rd, 2006, 6:44 pm

I get different errors from make:

ServiceClient.cpp: In function 'UINT ServiceClientThread(void*)':
ServiceClient.cpp:383: error: expected type-specifier before 'CMemoryException'
ServiceClient.cpp:383: error: expected `)' before 'e2'
ServiceClient.cpp:383: error: expected `{' before 'e2'
ServiceClient.cpp:383: error: 'e2' was not declared in this scope
ServiceClient.cpp:383: error: expected `;' before ')' token
ServiceClient.cpp:392: error: expected primary-expression before 'catch'
ServiceClient.cpp:392: error: expected `;' before 'catch'
ServiceClient.cpp:401: error: expected primary-expression before 'catch'
ServiceClient.cpp:401: error: expected `;' before 'catch'
ServiceClient.cpp:407: error: expected primary-expression before 'catch'
ServiceClient.cpp:407: error: expected `;' before 'catch'

Any clues ?
Rod
YPOPs! Rookie
YPOPs! Rookie
 
Posts: 13
Joined: September 2nd, 2003, 2:54 pm

Errors

Postby memswiler on July 1st, 2006, 11:39 am

ffi: looks like you need to install curl-devel
Rod: I am getting the same errors ... I thought CMemoryException was MFC for Windows -- but I will look into it and see what I can find.
memswiler
YPOPs! Newbie
YPOPs! Newbie
 
Posts: 1
Joined: July 1st, 2006, 11:38 am

Postby ffi on July 11th, 2006, 9:19 am

I had curl-devel installed, anyway it is all fixed now, ypops 0.8.6 (from cvs) compiles without problems.
ffi
YPOPs! Rookie
YPOPs! Rookie
 
Posts: 16
Joined: February 6th, 2006, 5:54 pm


Return to YPOPs!/Linux

Who is online

Users browsing this forum: No registered users and 0 guests

paw prints
SourceForge