|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Build issues with 0.9Hi! 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 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! ;-) _______________________________________________ GNUnet-developers mailing list GNUnet-developers@... http://lists.gnu.org/mailman/listinfo/gnunet-developers |
|
|
Re: Build issues with 0.9Am 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 _______________________________________________ GNUnet-developers mailing list GNUnet-developers@... http://lists.gnu.org/mailman/listinfo/gnunet-developers |
| Free embeddable forum powered by Nabble | Forum Help |