Hello:
I had the same problem as in #21 Contiki compile fails
I am using Instant Contiki 2.7
I download the software from https://github.com/authmillenon/libcoap
Proceed the same way:
- Copy files into contiki-2.7/apps/libcoap
- invoke autoreconf && ./configure --with-contiki
- make TARGET=sky
- I also tried make TARGET=econotag (as I think is one of the platforms the code is tested)
- Similar results.
======================================
In file included from net.c:45:0:
block.h:31:2: error: #error "COAP_MAX_BLOCK_SZX too large"
block.h:38:3: error: width of ‘num’ exceeds its type
net.c: In function ‘coap_new_context’:
net.c:321:3: warning: cast from pointer to integer of different size
net.c: In function ‘get_wkc_len’:
net.c:1151:43: error: ‘UINT_MAX’ undeclared (first use in this function)
net.c:1151:43: note: each undeclared identifier is reported only once for each function it appears in
net.c: In function ‘coap_cancel’:
net.c:1314:26: error: ‘resource_storage’ undeclared (first use in this function)
net.c:1315:8: error: ‘i’ undeclared (first use in this function)
net.c:1315:44: warning: left-hand operand of comma expression has no effect
net.c:1293:20: warning: unused variable ‘tmp’
make: *** [obj_sky/net.o] Error 1
======================================
According to the last comment to the aforementioned ticket, this is solved in the commit 1a0e4c78803f9. But looking at
https://github.com/authmillenon/libcoap and https://github.com/contiki-os/contiki
logs, there is no such commit.
Is there any way around this?
Thank you,
Regards,
Dan García.