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
--
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_init (1);
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://0mq.is.teh.best:1234");
printf("rc: %d, err: %d\n", rc, errno);
assert (rc == -1);
assert (errno == EINVAL);
rc = zmq_close (sock);
assert (rc == 0);
rc = zmq_term (ctx);
assert (rc == 0);
return 0;
}
signature.asc
Description: Digital signature

