{"id":1921,"date":"2012-08-02T22:40:06","date_gmt":"2012-08-02T20:40:06","guid":{"rendered":"http:\/\/blog.fh-kaernten.at\/wehr\/?p=1921"},"modified":"2012-08-02T22:44:58","modified_gmt":"2012-08-02T20:44:58","slug":"fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian","status":"publish","type":"post","link":"https:\/\/blog.fh-kaernten.at\/wehr\/2012\/08\/02\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\/","title":{"rendered":"Fixing error &#8220;httpServer.cpp read, write was not declared in this scope&#8221; on building vpl_xmlrpc_jail-1.2 under latest Debian"},"content":{"rendered":"<p id=\"top\" \/>For all which also got this errors,<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">httpServer.cpp: In member function \"std::string HttpJailServer::receive(int, e_t, size_t)\":\r\nhttpServer.cpp:145:36: error: \"read\"was not declared in this scope\r\nhttpServer.cpp: In member function \"void HttpJailServer::sendRaw(const char*,ze_t)\":\r\nhttpServer.cpp:216:49: error: \"write\" was not declared in this scope\r\nhttpServer.cpp: In member function \"void HttpJailServer::send(int, const stri, const string&amp;)\":\r\nhttpServer.cpp:250:15: error: \"close\" was not declared in this scope<\/pre>\n<p>on building <strong>vpl_xmlrpc_jail-1.2<\/strong> for <a href=\"http:\/\/moodle.org\/\">Moodle<\/a> <a href=\"http:\/\/vpl.dis.ulpgc.es\/\">VPL <\/a>module, there seems to be a missing include for these methods.<\/p>\n<p>Just add,<\/p>\n<p>#include &lt;unistd.h&gt;<\/p>\n<p>to the httpServer.cpp, these should fix it.<\/p>\n<p>have fun<\/p>\n<p>Mario<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For all which also got this errors, httpServer.cpp: In member function &#8220;std::string HttpJailServer::receive(int, e_t, size_t)&#8221;: httpServer.cpp:145:36: error: &#8220;read&#8221;was not declared in this scope httpServer.cpp: In member function &#8220;void HttpJailServer::sendRaw(const char*,ze_t)&#8221;: httpServer.cpp:216:49: error: &#8220;write&#8221; was not declared in this scope httpServer.cpp: In member function &#8220;void HttpJailServer::send(int, const stri, const string&amp;)&#8221;: httpServer.cpp:250:15: error: &#8220;close&#8221; was not declared &hellip; <a href=\"https:\/\/blog.fh-kaernten.at\/wehr\/2012\/08\/02\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Fixing error &#8220;httpServer.cpp read, write was not declared in this scope&#8221; on building vpl_xmlrpc_jail-1.2 under latest Debian<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"ngg_post_thumbnail":0,"footnotes":""},"categories":[9],"tags":[15],"class_list":["post-1921","post","type-post","status-publish","format-standard","hentry","category-linux-stuff","tag-fixes"],"_links":{"self":[{"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/posts\/1921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/comments?post=1921"}],"version-history":[{"count":0,"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/posts\/1921\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/media?parent=1921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/categories?post=1921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/tags?post=1921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}