unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Greg Troxel <gdt@ir.bbn.com>
Cc: guile-user@gnu.org
Subject: Re: ipv6 in guile 1.5.6: configure bug and fix
Date: 25 Apr 2002 07:44:27 -0400	[thread overview]
Message-ID: <rmik7qwj944.fsf@fnord.ir.bbn.com> (raw)
In-Reply-To: Marius Vollmer's message of "24 Apr 2002 22:35:23 +0200"

  > This configure check:
  >
  > [...]
  > 
  > loses on NetBSD 1.5.2-stable (i.e., fails to declare HAVE_IPV6).  This
  > is because the test does not include <sys/types.h>, which man inet6
  > indicates should be included, and the test program fails with syntax
  > errors due to lacking u_int8_t etc.

  Thanks for reporting this!

  Does the following test "whether sockaddr_in6 has sin6_scope_id"
  succeed?

  I have recorded this as bug 'ipv6-not-detected-on-netbsd' and marked
  release critical.

Yes, the check for sin6_scope_id fails in the same way - I should have
noticed that.  I added <sys/types.h> to that one and the check
succeeed.

BTW this is now on a NetBSD 1.5.3_RC (netbsd-1-5 as of 20020313),
although I don't think that matters much.


        Greg Troxel <gdt@ir.bbn.com>

Here's my current diff for this.  Note that only the 'configure' part
was tested - my autoconf is at 2.13.

Index: configure
===================================================================
RCS file: /QUIST-CVS/guile/configure,v
retrieving revision 1.1.1.1
retrieving revision 1.3
diff -u -r1.1.1.1 -r1.3
--- configure	2002/03/04 23:33:18	1.1.1.1
+++ configure	2002/04/25 11:32:29	1.3
@@ -11261,6 +11261,7 @@
   cat >conftest.$ac_ext <<_ACEOF
 #line 11262 "configure"
 #include "confdefs.h"
+#include <sys/types.h>
 #include <netinet/in.h>
 #include <sys/socket.h>
 int
@@ -11310,6 +11311,7 @@
   cat >conftest.$ac_ext <<_ACEOF
 #line 11311 "configure"
 #include "confdefs.h"
+#include <sys/types.h>
 #include <netinet/in.h>
 int
 main ()
Index: configure.in
===================================================================
RCS file: /QUIST-CVS/guile/configure.in,v
retrieving revision 1.1.1.1
retrieving revision 1.3
diff -u -r1.1.1.1 -r1.3
--- configure.in	2002/03/04 23:24:38	1.1.1.1
+++ configure.in	2002/04/25 11:31:48	1.3
@@ -325,7 +325,8 @@
 
 AC_MSG_CHECKING(for working IPv6 support)
 AC_CACHE_VAL(guile_cv_have_ipv6,
-[AC_TRY_COMPILE([#include <netinet/in.h>
+[AC_TRY_COMPILE([#include <sys/types.h>
+#include <netinet/in.h>
 #include <sys/socket.h>],
 [struct sockaddr_in6 a;  a.sin6_family = AF_INET6;],
 guile_cv_have_ipv6=yes, guile_cv_have_ipv6=no)])
@@ -337,7 +338,8 @@
 # included in rfc2553 but not in older implementations, e.g., glibc 2.1.3.
 AC_MSG_CHECKING(whether sockaddr_in6 has sin6_scope_id)
 AC_CACHE_VAL(guile_cv_have_sin6_scope_id,
-[AC_TRY_COMPILE([#include <netinet/in.h>],
+[AC_TRY_COMPILE([#include <sys/types.h>
+#include <netinet/in.h>],
 [struct sockaddr_in6 sok;  sok.sin6_scope_id = 0;],
 guile_cv_have_sin6_scope_id=yes, guile_cv_have_sin6_scope_id=no)])
 AC_MSG_RESULT($guile_cv_have_sin6_scope_id)

_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


  reply	other threads:[~2002-04-25 11:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-13 14:22 ipv6 in guile 1.5.6: configure bug and fix Greg Troxel
2002-03-13 14:45 ` Mr. Peter Ivanyi
2002-03-13 19:33   ` Marius Vollmer
2002-04-24 20:35 ` Marius Vollmer
2002-04-25 11:44   ` Greg Troxel [this message]
2002-05-06 19:15     ` Marius Vollmer
2002-04-25 12:21   ` guile 1.5.6 make check failures on netbsd 1.5.3ish Greg Troxel
2002-05-06 19:27     ` Marius Vollmer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=rmik7qwj944.fsf@fnord.ir.bbn.com \
    --to=gdt@ir.bbn.com \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).