On mar, apr 16, 2013 at 09:41:25 +0200, Julian Taylor wrote: > On 16.04.2013 21:33, Alessandro Ghedini wrote: > > On Tue, Apr 16, 2013 at 09:09:55PM +0200, Julian Taylor wrote: > >> I seemed to have made some mistake when I upgraded the libc. > >> I also get the failure with unstable libc on amd64. > > > > Hi, > > > > I cannot reproduce this on an amd64 sid chroot with both sid and > > experimental > > libc6 versions. Could you please try to compile and run the attached test > > case > > (which is just a more verbose version of the failing test) and report the > > output? > > > > (you can compile and run it with "c++ 705561.cpp -lzmq && a.out") > > > > Cheers > > > > ./a.out > rc: 0, err: 0 > a.out: test.cpp:22: int main(): Assertion `rc == -1' failed. > maybe its the kernel?
No, I think it's a DNS problem. This should have been already fixed in the
upstream libzmq git repository, but to make sure try the attached test case.
Cheers
--
perl -E '$_=q;$/= @{[@_]};and s;\S+;<inidehG ordnasselA>;eg;say~~reverse'
#include <stdio.h>
#include <errno.h>
#include <assert.h>
#include <zmq.h>
int main (void)
{
void *ctx = zmq_ctx_new ();
assert (ctx);
void *sock = zmq_socket (ctx, ZMQ_PUB);
assert (sock);
int rc = zmq_connect (sock, "tcp://localhost:1234");
assert (rc == 0);
rc = zmq_connect (sock, "tcp://localhost:invalid");
assert (rc == -1);
assert (errno == EINVAL);
rc = zmq_connect (sock, "tcp://in val id:1234");
assert (rc == -1);
assert (errno == EINVAL);
rc = zmq_connect (sock, "invalid://localhost:1234");
assert (rc == -1);
assert (errno == EPROTONOSUPPORT);
rc = zmq_close (sock);
assert (rc == 0);
rc = zmq_term (ctx);
assert (rc == 0);
return 0;
}
signature.asc
Description: Digital signature

