Skip to content

Conversation

@benpicco
Copy link
Contributor

oonf_api fails to compile for the msba2 target

arm-none-eabi-gcc -DRIOT -DENABLE_NAME -DBOARD_MSBA2 -DINIT_ON_START -DENABLE_LEDS -DBOARD_MSBA2 -DCPU_LPC2387 -DMODULE_ARM_COMMON -DMODULE_AUTO_INIT -DMODULE_CC110X_NG -DMODULE_CC110X_SPI -DMODULE_CONFIG -DMODULE_CORE -DMODULE_CPU -DMODULE_DESTINY -DMODULE_GPIOINT -DMODULE_IEEE802154 -DMODULE_LIB -DMODULE_LPC_COMMON -DMODULE_NET_HELP -DMODULE_NET_IF -DMODULE_OLSR2 -DMODULE_OONF_API -DMODULE_OONF_COMMON -DMODULE_OONF_RFC5444 -DMODULE_POSIX -DMODULE_PROTOCOL_MULTIPLEX -DMODULE_PS -DMODULE_RANDOM -DMODULE_RTC -DMODULE_SHELL -DMODULE_SHELL_COMMANDS -DMODULE_SIXLOWPAN -DMODULE_SYS -DMODULE_TIMEX -DMODULE_TRANSCEIVER -DMODULE_UART0 -DMODULE_VTIMER -O2 -Wall -Wstrict-prototypes -mcpu=arm7tdmi-s -gdwarf-2 -std=gnu99 -fno-delete-null-pointer-checks -O2 -Wall -Wstrict-prototypes -mcpu=arm7tdmi-s -gdwarf-2 -DVERSION=\"v0.3.0-3-gf2be\" -I/home/ludwig/RIOT/core/include -I/home/ludwig/RIOT/drivers/include -I/home/ludwig/RIOT/sys/include -I/home/ludwig/RIOT/boards/msba2/include -I/home/ludwig/RIOT/boards/msba2-common/include -I/home/ludwig/RIOT/boards/msba2-common/drivers/include -I/home/ludwig/RIOT/cpu/lpc2387/include -I/home/ludwig/RIOT/cpu/arm_common/include/ -I/home/ludwig/RIOT/cpu/lpc_common/include -I/home/ludwig/RIOT/sys/net/include -I/home/ludwig/RIOT/drivers/cc110x -I/home/ludwig/RIOT/drivers/cc110x_ng/include -I/home/ludwig/RIOT/sys/posix/include -I /home/ludwig/RIOT/pkg/oonf_api/oonf_api/src-api -I/home/ludwig/RIOT/boards/msba2/include -I/home/ludwig/RIOT/boards/msba2-common/include -I/home/ludwig/RIOT/boards/msba2-common/drivers/include -I/home/ludwig/RIOT/sys/include -I/home/ludwig/RIOT/sys/net/include -I/home/ludwig/RIOT/sys/posix/include -I/home/ludwig/RIOT/sys/posix/pnet/include -c rfc5444_reader.c -o /home/ludwig/RIOT/examples/olsr2/bin/msba2/oonf_rfc5444/rfc5444_reader.o
rfc5444_reader.c:129:1: error: conflicting types for 'rfc5444_reader_handle_packet'
 rfc5444_reader_handle_packet(struct rfc5444_reader *parser, uint8_t *buffer, size_t length) {
 ^
In file included from rfc5444_reader.c:48:0:
/home/ludwig/RIOT/pkg/oonf_api/oonf_api/src-api/rfc5444/rfc5444_reader.h:312:12: note: previous declaration of 'rfc5444_reader_handle_packet' was here
 EXPORT int rfc5444_reader_handle_packet(
            ^

Always use the enum rfc5444_result type to fix that.

@OlegHahm OlegHahm added this to the Release NEXT MAJOR milestone May 19, 2014
@OlegHahm
Copy link
Member

OlegHahm commented Jun 3, 2014

Can you specify a test case?

@OlegHahm OlegHahm assigned Lotterleben and unassigned fabratu Jun 3, 2014
@LudwigKnuepfer
Copy link
Member

The test case is: make BOARD=msba2 for examples/olsr2/ from #765

@benpicco
Copy link
Contributor Author

ping?

@OlegHahm
Copy link
Member

Haven't reviewed the diff in detail, but the result seems fine: ACK and go.

OlegHahm added a commit that referenced this pull request Jun 17, 2014
pkg/oonf_api: fix conflicting types on msba2
@OlegHahm OlegHahm merged commit 810b8d4 into RIOT-OS:master Jun 17, 2014
@benpicco benpicco deleted the fix_oonf_msba2 branch April 14, 2020 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: network Area: Networking Platform: ARM Platform: This PR/issue effects ARM-based platforms Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants