View Issue Details

IDProjectCategoryView StatusLast Update
0001569GNUnetportabilitypublic2011-10-05 20:21
ReporterLRN Assigned ToNDurner Due Date
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 17: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 17:29

reporter   ~0004037

Unix sockets: fixed (in PlibC)

NDurner

2010-06-21 18: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 ModifiedUsernameFieldChange
2010-06-20 16:31LRNNew Issue
2010-06-20 16:31LRNFile Added: win32_compilation.diff
2010-06-20 16:44Christian GrothoffProjectgnunet-qt => GNUnet
2010-06-21 17:10LRNNote Added: 0004036
2010-06-21 17:29NDurnerNote Added: 0004037
2010-06-21 18:13NDurnerStatusnew => assigned
2010-06-21 18:13NDurnerAssigned To => NDurner
2010-06-21 18:14NDurnerNote Added: 0004038
2010-06-21 18:14NDurnerStatusassigned => resolved
2010-06-21 18:14NDurnerResolutionopen => fixed
2010-07-03 18:55Christian GrothoffStatusresolved => closed
2011-10-05 20:21Christian GrothoffCategory => portability