View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001569 | GNUnet | portability | public | 2010-06-20 18:31 | 2011-10-05 22:21 |
| Reporter | LRN | Assigned To | NDurner | ||
| Priority | normal | Severity | block | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Summary | 0001569: gnunet fails to compile on Windows | ||||
| Description | signal.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). | ||||
| Tags | No 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])
| ||||
|
|
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. |
|
|
Unix sockets: fixed (in PlibC) |
|
|
(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) |
| 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 |