On Wednesday 24 May 2006 14:42, Stéphane ANGOT wrote: > Hi, > > Trying to build GNUnet on an OpenBSD 3.9 Sparc64 and it fails.
I'm not surprised -- I've not had anyone report trying to get GNUnet to work on any BSD for a few years now. It would certainly be great if someone would make the effort of getting it to work (again), and any patches would certainly be welcome. But yes, I'd expect trouble ;-). > When compiling src/util/checksum.c , it gives this error message : > > In file included from ../../src/include/platform.h:70, > from checksum.c:31: > /usr/include/netinet/tcp.h:50: error: syntax error before "u_int" > In file included from ../../src/include/platform.h:124, > from checksum.c:31: > /usr/include/net/if.h:113: error: syntax error before "u_char" > /usr/include/net/if.h:193: error: syntax error before "u_short" > /usr/include/net/if.h:207: error: syntax error before "u_long" > /usr/include/net/if.h:375: error: syntax error before "u_int" > /usr/include/net/if.h:386: error: syntax error before "u_short" > /usr/include/net/if.h:391: error: syntax error before "u_short" > /usr/include/net/if.h:400: error: syntax error before "u_short" > /usr/include/net/if.h:405: error: syntax error before "u_short" > /usr/include/net/if.h:414: error: syntax error before "u_short" > /usr/include/net/if.h:419: error: syntax error before "u_short" > /usr/include/net/if.h:434: error: syntax error before "u_int" > /usr/include/net/if.h:464: error: syntax error before "u_int" Maybe the order in which we include header files does not work for OpenBSD (or maybe some #include needs to be added). As to which order would work, I don't know -- if you find out what needs to be changed, please send the diff! > checksum.c: In function `convertToUtf8': > checksum.c:165: warning: passing arg 2 of `libiconv' from incompatible > pointer type > gmake[4]: *** [checksum.lo] Error 1 > gmake[4]: Leaving directory `/root/GNUnet-0.7.0e/src/util' > gmake[3]: *** [all-recursive] Error 1 > gmake[3]: Leaving directory `/root/GNUnet-0.7.0e/src/util' > gmake[2]: *** [all-recursive] Error 1 > gmake[2]: Leaving directory `/root/GNUnet-0.7.0e/src' > gmake[1]: *** [all-recursive] Error 1 > gmake[1]: Leaving directory `/root/GNUnet-0.7.0e' > gmake: *** [all] Error 2 You might eliminate some of those problems using --disable-nls to disable gettext support. At least as a workaround. > > By looking at the sources of tcp.h, there is a test before line 50 about > determining if the system is a big endian or a little endian. > > Does this syntax error comes because the variables about system > endianess are not initialised? Are they not? You could just put a #define at the beginning of platform.h and see if that resolves the problem. On Linux, I do have some system variables for endianess that are properly defined, so yes, this could be a problem. Good luck! Christian _______________________________________________ GNUnet-developers mailing list GNUnet-developers@gnu.org http://lists.gnu.org/mailman/listinfo/gnunet-developers