View Issue Details

IDProjectCategoryView StatusLast Update
0001569GNUnetportabilitypublic2011-10-05 22:21
ReporterLRN Assigned ToNDurner  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
Summary0001569: gnunet fails to compile on Windows
Descriptionsignal.c refers to sa_family_t and sockaddr_un, which are undefined on Windows, because there are no UNIX sockets on Windows (and a simple "unsigned int" is used instead of sa_family_t).

Also, configure complains about HAVE_PYTHON_PEXPECT being defined conditionally.

Patch attached (works for me, but give the HAVE_PYTHON_PEXPECT part a careful consideration).
TagsNo tags attached.
Attached Files
win32_compilation.diff (775 bytes)   
Index: src/include/platform.h
===================================================================
--- src/include/platform.h	(revision 11817)
+++ src/include/platform.h	(working copy)
@@ -93,6 +93,11 @@
 #include <grp.h>
 #else
 #include "winproc.h"
+typedef unsigned int sa_family_t;
+struct sockaddr_un {
+  short sun_family; /*AF_UNIX*/
+  char sun_path[108]; /*path name */
+};
 #endif
 #endif
 
Index: configure.ac
===================================================================
--- configure.ac	(revision 11817)
+++ configure.ac	(working copy)
@@ -485,6 +485,8 @@
 AM_PATH_PYTHON([2.5],, [:])
 AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :])
 
+AM_CONDITIONAL(HAVE_PYTHON_PEXPECT, 0)
+
 if test "$PYTHON" != :
 then
   AC_MSG_CHECKING([for pexpect])
win32_compilation.diff (775 bytes)   

Activities

LRN

2010-06-21 19:10

reporter   ~0004036

The exact message form configure script:
checking for a Python interpreter with version >= 2.5... none
...
checking for gethostbyname2... yes
checking for gethostbyname... no
configure: error: conditional "HAVE_PYTHON_PEXPECT" was never defined.
Usually this means the macro was only invoked conditionally.

NDurner

2010-06-21 19:29

reporter   ~0004037

Unix sockets: fixed (in PlibC)

NDurner

2010-06-21 20:14

reporter   ~0004038

(20:12:09) LRN: python fix seems to be working well (finished configure). And socket fix should work (can't think of a reason why it won't)

Issue History

Date Modified Username Field Change
2010-06-20 18:31 LRN New Issue
2010-06-20 18:31 LRN File Added: win32_compilation.diff
2010-06-20 18:44 Christian Grothoff Project gnunet-qt => GNUnet
2010-06-21 19:10 LRN Note Added: 0004036
2010-06-21 19:29 NDurner Note Added: 0004037
2010-06-21 20:13 NDurner Status new => assigned
2010-06-21 20:13 NDurner Assigned To => NDurner
2010-06-21 20:14 NDurner Note Added: 0004038
2010-06-21 20:14 NDurner Status assigned => resolved
2010-06-21 20:14 NDurner Resolution open => fixed
2010-07-03 20:55 Christian Grothoff Status resolved => closed
2011-10-05 22:21 Christian Grothoff Category => portability