gnunet-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNUnet-developers] Build issues with 0.9


From: Christian Grothoff
Subject: Re: [GNUnet-developers] Build issues with 0.9
Date: Sat, 4 Jul 2009 14:24:12 +0200
User-agent: KMail/1.9.9

Am Monday 29 June 2009 14:06:09 schrieb Milan Bouchet-Valat:
> Hi! I'm trying to get GNUnet 0.9 building to work on UPnP and NAT-PMP,
> but I'm experiencing errors.


> First, current SVN produces and error when running make:
> Making all in datastore
> make[3]: entrant dans le répertoire
> « /home/milan/Dev/gnunet/src/datastore »
> /bin/bash ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H
> -I. -I../.. -I../../src/include    -fno-strict-aliasing -Wall -g -O2 -MT
> datastore_api.lo -MD -MP -MF .deps/datastore_api.Tpo -c -o
> datastore_api.lo datastore_api.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include
> -fno-strict-aliasing -Wall -g -O2 -MT datastore_api.lo -MD -MP
> -MF .deps/datastore_api.Tpo -c datastore_api.c  -fPIC -DPIC
> -o .libs/datastore_api.o
> datastore_api.c: In function ‘transmit_drop’:
> datastore_api.c:135: erreur: expected ‘;’ before ‘)’ token
> datastore_api.c:135: erreur: expected statement before ‘)’ token
> datastore_api.c: In function ‘GNUNET_DATASTORE_put’:
> datastore_api.c:255: erreur: incompatible type for argument 1 of
> ‘GNUNET_htonll’
> datastore_api.c:255: erreur: incompatible types in assignment
> make[3]: *** [datastore_api.lo] Erreur 1
> make[3]: quittant le répertoire « /home/milan/Dev/gnunet/src/datastore »
> make[2]: *** [all-recursive] Erreur 1
> make[2]: quittant le répertoire « /home/milan/Dev/gnunet/src »
> make[1]: *** [all-recursive] Erreur 1
> make[1]: quittant le répertoire « /home/milan/Dev/gnunet »
> make: *** [all] Erreur 2

I've fixed those in the meantime (my mistake, sorry).

>
> Then, when I try to #include "gnunet_util_lib.h" in my new upnp.c file,
> I get this (roughly translated for some messages):
> In file included from ../../src/include/gnunet_util_lib.h:39,
>                  from upnp.c:25:
> ../../src/include/gnunet_common.h:243: erreur: expected declaration
> specifiers or ‘...’ before ‘socklen_t’
> ../../src/include/gnunet_common.h:243: attention : ‘struct sockaddr’
> declared inside parameter list
> ../../src/include/gnunet_common.h:243: attention : only visible from
> this definition or declaration, which is probably not what you want
> In file included from ../../src/include/gnunet_client_lib.h:40,
>                  from ../../src/include/gnunet_util_lib.h:40,
>                  from upnp.c:25:
>
> Help welcome! ;-)

Each ".c" file should #include "platform.h" before any other header.  I 
suspect that this will resolve your problem(s).

Christian




reply via email to

[Prev in Thread] Current Thread [Next in Thread]