From: <gg...@ti...> - 2007-01-09 16:29:16
|
Hi, =20 Is it possible to run sipdht tools with libc6 2.3.2 (debian stable)? It works fine with libc6 2.3.6 (debian sid) but it seems that it doesn=92t = in debian stable. =20 After some tests I think the problem is the getaddrinfo API that = doesn=92t support ai_sockettype =3D ai_protocol =3D 0 in the hints structure that receives. (I=92ve seen it changed in libc6 around 2.3.3 version: http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/posix/getaddrin= fo. c.diff?r1=3D1.82 <http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/posix/getaddri= nfo .c.diff?r1=3D1.82&r2=3D1.83&cvsroot=3Dglibc&f=3Dh> = &r2=3D1.83&cvsroot=3Dglibc&f=3Dh) =20 This issue produces an access violation exception in sipdht tools = because getaddrinfo returns res =3D NULL (i.e. sipdhtw.c Ln 118). If you = initialize ai_sockettype in the hint structure, for example with ai_sockettype =3D SOCK_DGRAM, it works. =20 I don=92t know if it should be solved or assumed as prerequisite, but = anyway this information could be useful for other people in the future. =20 =20 Taking advantage of this mail, I=92ve seen two minor typos in the = website http://sipdht.sourceforge.net/doc.html: sipdhtq -> sipdhtw -s10 -> -s 10 =20 Best regards. =20 G. |