apple-darwin18.6.0 compile fail

Bug #1835790 reported by qidizi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libmemcached
New
Undecided
Unassigned

Bug Description

configure is ok;

when "make",get error:

libmemcached/byteorder.cc:66:10: error: use of undeclared identifier 'ntohll'
return ntohll(value);
libmemcached/byteorder.cc:75:10: error: use of undeclared identifier 'htonll'
return htonll(value);

---------- modify fix up-------
sudo vi libmemcached/byteorder.c, #include "libmemcached/byteorder.h" add:

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif

-----re confiure and make get error----

clients/memflush.cc:42:19: error: comparison between pointer and integer ('char *' and 'int')
if (opt_servers == false)
~~~~~~~~~~~ ^ ~~~~~
clients/memflush.cc:51:21: error: comparison between pointer and integer ('char *' and 'int')
if (opt_servers == false)
~~~~~~~~~~~ ^ ~~~~~

----replace false to NULL----

----re configure and make success--------

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.