I must be confusing something with the build<br><br>1) I installed 2.18.3-3 and saw that the problem is still there<br>2) I apt-get source for the sources of 2.18.3-3 <br>3) I looked at the source and saw:<br>#ifdef ENABLE_IPV6
<br> hostbuf[BUFSIZ-1] = '\0';<br> if (gethostname (hostbuf, BUFSIZ-1) != 0) {<br> gdm_debug ("%s: Could not get server hostname", "gdm_peek_local_address_list");<br>
<br> sin6 = g_new0 (struct sockaddr_in6, 1);<br> sin6->sin6_family = AF_INET6;<br> sin6->sin6_addr = in6addr_loopback;<br> return g_list_append (the_list, sin6);
<br> }<br><br> if (getaddrinfo (hostbuf, NULL, &hints, &result) != 0) {<br> gdm_debug ("%s: Could not get address from hostname!", "gdm_peek_local_address_list");<br>
<br><br>4) I added my patch and did ./configure --enable-ipv6=yes && make && make install<br>5) I tested it and gdm worked correctly.<br><br>Did I look at the wrong source?<br>Was I suppose to run some other command rather than apt-get source?
<br><br>Ely <br><div><span class="gmail_quote">On 7/11/07, <b class="gmail_sendername">Loïc Minier</b> <<a href="mailto:lool@dooz.org">lool@dooz.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, Jul 11, 2007, E L wrote:<br>> The patch I sent you is against the source I got from apt-get source gdm<br>> for<br>> 2.18.3-3.<br>> The problem still happen in that version and after building it with the
<br>> patch I sent you the problem disappear.<br><br> I don't understand; after I apply your patch to a patched source tree<br> (which you can get with: QUILT_PATCHES=debian/patches quilt push -a),<br> the code looks like this:
<br>#ifdef ENABLE_IPV6<br><br> memset (&hints, 0, sizeof (hints));<br> hints.ai_socktype = SOCK_DGRAM;<br> hints.ai_flags = AI_CANONNAME;<br><br> hostbuf[BUFSIZ-1] = '\0';<br> if (gethostname (hostbuf, BUFSIZ-1) != 0) {
<br> gdm_debug ("%s: Could not get server hostname", "gdm_peek_local_address_list");<br><br> sin6 = g_new0 (struct sockaddr_in6, 1);<br> sin6->sin6_family = AF_INET6;
<br> sin6->sin6_addr = in6addr_loopback;<br> return g_list_append (the_list, sin6);<br> }<br><br> memset (&hints, 0, sizeof (hints));<br> hints.ai_family = AF_INET;
<br> hints.ai_family |= AF_INET6;<br><br> if (getaddrinfo (hostbuf, NULL, &hints, &result) != 0) {<br> gdm_debug ("%s: Could not get address from hostname!", "gdm_peek_local_address_list");
<br><br> As you see, there's a superfluous memset() from the two.<br><br> How are you building the Debian source? With dpkg-buildpackage?<br><br>--<br>Loïc Minier<br></blockquote></div><br>