[Olsr-dev] building pud dies on Android build running on Mac OS X

Hans-Christoph Steiner (spam-protected)
Fri Jun 22 22:10:13 CEST 2012

I'm building the latest olsrd from the head of the stable branch on Mac OS X using the Android NDK r7.  The build dies with the error below.  Removing pud allows everything else to build.

[LD] olsrd_pgraph.so.1.1
[CC] src/context.c
[CC] src/generate.c
[CC] src/generator.c
[CC] src/gmath.c
[CC] src/info.c
[CC] src/parse.c
[CC] src/parser.c
[CC] src/sentence.c
[CC] src/time.c
[CC] src/tok.c
[CC] src/util.c
[LD] lib/libnmea.so
[CC] src/nodeIdConversion.c
[CC] src/wireFormat.c
[LD] lib/libOlsrdPudWireFormat.so
[CC] src/configTools.c
In file included from src/configTools.c:5:
src/netTools.h:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'getOlsrSockaddrPort'
src/netTools.h:50: error: expected declaration specifiers or '...' before 'in_port_t'
src/netTools.h: In function 'setOlsrSockaddrPort':
src/netTools.h:56: error: 'port' undeclared (first use in this function)
src/netTools.h:56: error: (Each undeclared identifier is reported only once
src/netTools.h:56: error: for each function it appears in.)
src/configTools.c: At top level:
src/configTools.c:262: error: expected declaration specifiers or '...' before 'in_port_t'
src/configTools.c:262: error: conflicting types for 'readIPAddress'
src/configTools.h:22: note: previous declaration of 'readIPAddress' was here
src/configTools.c: In function 'readIPAddress':
src/configTools.c:291: error: 'portDefault' undeclared (first use in this function)
src/configTools.c:291: error: too many arguments to function 'setOlsrSockaddrPort'
make[2]: *** [src/configTools.o] Error 1
make[1]: *** [libs] Error 2

More information about the Olsr-dev mailing list