[Olsr-dev] building pud dies on Android build running on Mac OS X
Henning Rogge
(spam-protected)
Fri Jun 22 23:08:53 CEST 2012
Hmm,
it seems the NDK doesn't understand the in_port_t.
Maybe we should replace it with "uint16_t" or "unsigned short" ? This
should sidestep the issue.
Henning Rogge
On Fri, Jun 22, 2012 at 10:10 PM, Hans-Christoph Steiner
<(spam-protected)> wrote:
>
> 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
>
>
> --
> Olsr-dev mailing list
> (spam-protected)
> https://lists.olsr.org/mailman/listinfo/olsr-dev
--
Steven Hawkings about cosmic inflation: "An increase of billions of
billions of percent in a tiny fraction of a second. Of course, that
was before the present government."
More information about the Olsr-dev
mailing list