Civetweb and mg_set_http_status
I did a "git pull" today and now the build breaks like this:
CXX rgw/libcivetweb_la-rgw_civetweb.lo
rgw/rgw_civetweb.cc: In member function 'virtual int RGWMongoose::send_status(const char*, const char*)':
rgw/rgw_civetweb.cc:147:38: error: 'mg_set_http_status' was not declared in this scope
mg_set_http_status(conn, status_num);
^It comes from this:
commit b8e28ab9f914bf48c9ba4f0def9a0deb9dbb93bc
Author: Yehuda Sadeh <[email protected]> Date: Wed Jul 22 10:01:00 2015 -0700
rgw: set http status in civetweb
Need to set the http status in civetweb so that we report it correctly.
Fixes: #12432
I suspect my civetweb may be obsolete. The "cd src/civetweb && git tag -l" returns v1.5. Do I need a magic git incantation to refresh submodules?
Thanks in advance,
-- Pete
at the ceph root: git submodule init; git submodule update
Let me know if it fails to work.
Quoted 25 lines · Pete Zaitcev
I did a "git pull" today and now the build breaks like this:
CXX rgw/libcivetweb_la-rgw_civetweb.lo
rgw/rgw_civetweb.cc: In member function 'virtual intRGWMongoose::send_status(const char*, const char*)':
rgw/rgw_civetweb.cc:147:38: error: 'mg_set_http_status' was not declared in this scopemg_set_http_status(conn, status_num); ^It comes from this:
commit
b8e28ab9f914bf48c9ba4f0def9a0deb9dbb93bcAuthor: Yehuda Sadeh <[email protected]> Date: Wed Jul 22 10:01:00 2015 -0700rgw: set http status in civetweb
Need to set the http status in civetweb so that we report it correctly.
Fixes: #12432Signed-off-by Yehuda Sadeh <[email protected]>I suspect my civetweb may be obsolete. The "cd src/civetweb && git tag -l" returns v1.5. Do I need a magic git incantation to refresh submodules?
Thanks in advance,
-- Pete