GNU bug report logs - #35430
MinGW: Including libguile.h breaks build because there is no sys/select.h

Previous Next

Package: guile;

Reported by: John Ralls <jralls <at> ceridwen.us>

Date: Thu, 25 Apr 2019 20:03:02 UTC

Severity: normal

To reply to this bug, email your comments to 35430 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#35430; Package guile. (Thu, 25 Apr 2019 20:03:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to John Ralls <jralls <at> ceridwen.us>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Thu, 25 Apr 2019 20:03:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: John Ralls <jralls <at> ceridwen.us>
To: bug-guile <at> gnu.org
Subject: MinGW: Including libguile.h breaks build because there is no
 sys/select.h
Date: Thu, 25 Apr 2019 13:01:50 -0700
libguile.h indirectly includes libguile/iselect.h via libguile/threads.h and libguile/deprecated.h. iselect.h in turn includes <sys/select.h> that is not provided by MinGW.

<sys/select.h> is included in iselect.h to provide a declaration of fd_set; in MinGW that's declared in winsock2.h.






Information forwarded to bug-guile <at> gnu.org:
bug#35430; Package guile. (Thu, 25 Apr 2019 21:09:02 GMT) Full text and rfc822 format available.

Message #8 received at 35430 <at> debbugs.gnu.org (full text, mbox):

From: John Ralls <jralls <at> ceridwen.us>
To: 35430 <at> debbugs.gnu.org
Subject: Patch for 35430
Date: Thu, 25 Apr 2019 13:59:39 -0700
From 843070dd3961a2282ee9f6582f459e70894758fa Mon Sep 17 00:00:00 2001
From: John Ralls <jralls <at> ceridwen.us>
Date: Thu, 25 Apr 2019 13:49:02 -0700
Subject: [PATCH] MinGW: Don't break build when including libguile.h

     * iselect.h: get fd_set declaration from winsock2.h on MinGW.
Fixes bug 35430.
---
 libguile/iselect.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libguile/iselect.h b/libguile/iselect.h
index 945ad14af..806c30504 100644
--- a/libguile/iselect.h
+++ b/libguile/iselect.h
@@ -29,7 +29,11 @@
 /* Needed for FD_SET on some systems.  */
 #include <sys/types.h>

+#ifdef __MINGW32__
+#include <winsock2.h>
+#else
 #include <sys/select.h>
+#endif

 SCM_API int scm_std_select (int fds,
                            fd_set *rfds,
@@ -38,7 +42,6 @@ SCM_API int scm_std_select (int fds,
                            struct timeval *timeout);

 #define SELECT_TYPE fd_set
-
 #endif  /* SCM_ISELECT_H */

 /*
--
2.20.1





Information forwarded to bug-guile <at> gnu.org:
bug#35430; Package guile. (Wed, 21 Sep 2022 12:54:02 GMT) Full text and rfc822 format available.

Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mike Gran <spk121 <at> yahoo.com>
To: bug-guile <at> gnu.org
Subject: bug#35430: close
Date: Wed, 21 Sep 2022 05:53:22 -0700
Was fixed January 2021 in 1b0da42672262426bca7bb58e70fb753c628ffc3






This bug report was last modified 2 years and 266 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.