Package Details: libmemcache 1.4.0.rc2-1

Git Clone URL: https://aur.archlinux.org/libmemcache.git (read-only, click to copy)
Package Base: libmemcache
Description: the C API for memcached
Upstream URL: http://people.freebsd.org/~seanc/libmemcache
Licenses: MIT
Submitter: prurigro
Maintainer: None
Last Packager: prurigro
Votes: 9
Popularity: 0.000000
First Submitted: 2009-04-28 06:47 (UTC)
Last Updated: 2015-06-10 04:40 (UTC)

Latest Comments

prurigro commented on 2022-09-16 02:57 (UTC)

Hey, I actually haven't needed this in quite a while and have nothing to test and ensure it even works once it does build anymore so I'm gonna disown this in the hopes that someone who does have a use for it picks it up.

micwoj92 commented on 2022-08-28 01:21 (UTC) (edited on 2022-08-28 01:22 (UTC) by micwoj92)

Build fails


memcache.c: In function 'mcm_server_connect':
memcache.c:2209:43: error: invalid use of undefined type 'struct addrinfo'
 2209 |   if (ms->hostinfo == NULL || ms->hostinfo->ai_addrlen == 0) {
      |                                           ^~
../include/memcache.h:1066:108: warning: comparison between pointer and integer
 1066 | #define MCM_ERR_MSG(_code, _msg)        mcm_err(ctxt, ERR_FLAG, __FUNCTION__, __LINE__, _code, _msg, (_msg != NULL ? strlen(_msg) : 0), 0)
      |                                                                                                            ^~
memcache.c:2212:7: note: in expansion of macro 'MCM_ERR_MSG'
 2212 |       MCM_ERR_MSG(MCM_ERR_NET_HOST, gai_strerror(i));
      |       ^~~~~~~~~~~
memcache.c:2212:37: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Wint-conversion]
 2212 |       MCM_ERR_MSG(MCM_ERR_NET_HOST, gai_strerror(i));
      |                                     ^~~~~~~~~~~~~~~
      |                                     |
      |                                     int
../include/memcache.h:1066:125: note: in definition of macro 'MCM_ERR_MSG'
 1066 | #define MCM_ERR_MSG(_code, _msg)        mcm_err(ctxt, ERR_FLAG, __FUNCTION__, __LINE__, _code, _msg, (_msg != NULL ? strlen(_msg) : 0), 0)
      |                                                                                                                             ^~~~
/usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'int'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
memcache.c:2212:37: warning: passing argument 6 of 'mcm_err' makes pointer from integer without a cast [-Wint-conversion]
 2212 |       MCM_ERR_MSG(MCM_ERR_NET_HOST, gai_strerror(i));
      |                                     ^~~~~~~~~~~~~~~
      |                                     |
      |                                     int
../include/memcache.h:1066:96: note: in definition of macro 'MCM_ERR_MSG'
 1066 | #define MCM_ERR_MSG(_code, _msg)        mcm_err(ctxt, ERR_FLAG, __FUNCTION__, __LINE__, _code, _msg, (_msg != NULL ? strlen(_msg) : 0), 0)
      |                                                                                                ^~~~
memcache.c:769:46: note: expected 'const char *' but argument is of type 'int'
  769 |         const u_int32_t errcode, const char *msg, const u_int32_t msglen, const u_int32_t errlvl) {
      |                                  ~~~~~~~~~~~~^~~
memcache.c:2218:57: error: invalid use of undefined type 'struct addrinfo'
 2218 |   for (i = 0, res = ms->hostinfo; res != NULL; res = res->ai_next, i++) {
      |                                                         ^~
memcache.c:2218:66: warning: left-hand operand of comma expression has no effect [-Wunused-value]
 2218 |   for (i = 0, res = ms->hostinfo; res != NULL; res = res->ai_next, i++) {
      |                                                                  ^
memcache.c:2219:24: error: invalid use of undefined type 'struct addrinfo'
 2219 |     ms->fd = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
      |                        ^~
memcache.c:2219:40: error: invalid use of undefined type 'struct addrinfo'
 2219 |     ms->fd = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
      |                                        ^~
memcache.c:2219:58: error: invalid use of undefined type 'struct addrinfo'
 2219 |     ms->fd = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
      |                                                          ^~
memcache.c:2222:42: error: invalid use of undefined type 'struct addrinfo'
 2222 |       if (errno == EPROTONOSUPPORT && res->ai_family == AF_INET6)
      |                                          ^~
memcache.c:2253:30: error: invalid use of undefined type 'struct addrinfo'
 2253 |     ret = connect(ms->fd, res->ai_addr, (socklen_t)res->ai_addrlen);
      |                              ^~
memcache.c:2253:55: error: invalid use of undefined type 'struct addrinfo'
 2253 |     ret = connect(ms->fd, res->ai_addr, (socklen_t)res->ai_addrlen);
      |                                                       ^~
memcache.c:2291:56: error: invalid use of undefined type 'struct addrinfo'
 2291 |           printf("connect(): %d\n", connect(ms->fd, res->ai_addr, (socklen_t)res->ai_addrlen));
      |                                                        ^~
memcache.c:2291:81: error: invalid use of undefined type 'struct addrinfo'
 2291 |           printf("connect(): %d\n", connect(ms->fd, res->ai_addr, (socklen_t)res->ai_addrlen));
      |                                                                                 ^~
memcache.c: In function 'mcm_server_free':
memcache.c:2452:5: warning: implicit declaration of function 'freeaddrinfo' [-Wimplicit-function-declaration]
 2452 |     freeaddrinfo(ms->hostinfo);
      |     ^~~~~~~~~~~~
memcache.c: In function 'mcm_server_resolve':
memcache.c:2597:19: error: storage size of 'hints' isn't known
 2597 |   struct addrinfo hints, *res;
      |                   ^~~~~
memcache.c:2613:24: error: invalid application of 'sizeof' to incomplete type 'struct addrinfo'
 2613 |   bzero(&hints, sizeof(struct addrinfo));
      |                        ^~~~~~
memcache.c:2617:9: warning: implicit declaration of function 'getaddrinfo' [-Wimplicit-function-declaration]
 2617 |   ret = getaddrinfo(ms->hostname, ms->port, &hints, &ms->hostinfo);
      |         ^~~~~~~~~~~
memcache.c:2634:50: error: invalid use of undefined type 'struct addrinfo'
 2634 |   for (res = ms->hostinfo; res != NULL; res = res->ai_next) {
      |                                                  ^~
memcache.c:2597:19: warning: unused variable 'hints' [-Wunused-variable]
 2597 |   struct addrinfo hints, *res;
      |                   ^~~~~
memcache.c: At top level:
memcache.c:283:11: warning: 'mcGlobalCtxt' is static but used in inline function 'mc_global_ctxt' which is not static
  283 |   return &mcGlobalCtxt;
      |           ^~~~~~~~~~~~
In file included from memcache.c:61:
../include/memcache/buffer.h:73:18: warning: inline function 'mcm_buf_remain_off' declared but never defined
   73 | inline size_t    mcm_buf_remain_off(const struct memcache_ctxt *, const struct memcache_buf *);
      |                  ^~~~~~~~~~~~~~~~~~
../include/memcache/buffer.h:72:18: warning: inline function 'mcm_buf_remain' declared but never defined
   72 | inline size_t    mcm_buf_remain(const struct memcache_ctxt *, const struct memcache_buf *);
      |                  ^~~~~~~~~~~~~~
../include/memcache/buffer.h:66:26: warning: inline function 'mcm_buf_len' declared but never defined
   66 | inline u_int32_t         mcm_buf_len(const struct memcache_ctxt *, const struct memcache_buf *);
      |                          ^~~~~~~~~~~
memcache.c:155:25: warning: 'str_space_len' defined but not used [-Wunused-const-variable=]
  155 | static const size_t     str_space_len = MCM_CSTRLEN(str_space);
      |                         ^~~~~~~~~~~~~
make[2]: *** [Makefile:299: memcache.lo] Error 1
make[2]: *** Waiting for unfinished jobs....