Bug#658408: libapache2-mod-shib2: FTBFS with libmemcached-dev-1.0.3-1
Michael Fladischer
michael at fladi.at
Fri Feb 3 07:25:19 UTC 2012
On 02/03/2012 02:30 AM, Russ Allbery wrote:
> The code in Shibboleth is all along these lines:
>
> } else if (rv == MEMCACHED_ERRNO) {
> // System error
> string error = string("Memcache::deleteMemcache() SYSTEM ERROR: ") + string(strerror(memc->cached_errno));
> log.error(error);
> throw IOException(error);
> } else {
> string error = string("Memcache::deleteMemcache() Problems: ") + memcached_strerror(memc, rv);
> log.error(error);
> throw IOException(error);
> }
>
> What is now the correct way of handling MEMCACHED_ERRNO returns if one
> wants to include the strerror() results of errno?
According to [0] it should be:
if (rv == MEMCACHED_ERRNO) {
// System error
string error = string("Memcache::deleteMemcache() SYSTEM ERROR: ") + string(memcached_last_error_message(memc));
log.error(error);
throw IOException(error);
}
[0] http://docs.libmemcached.org/libmemcached/memcached_last_error_message.html
HTH,
--
Michael Fladischer <michael at fladi.at>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-shibboleth-devel/attachments/20120203/632e8cde/attachment.pgp>
More information about the Pkg-shibboleth-devel
mailing list