Hi,
I'm using blip-rpl-devel now but when I try to compile PppRouter I obtain some
errors. This is my PATH environment:
export PATH=$HOME/local/bin:$PATH
export TOSROOT=$HOME/local/src/blip-rpl-devel
export TOSDIR=$TOSROOT/tos/
export MAKERULES=$TOSROOT/support/make/Makerules
export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar:.
export PYTHONPATH=.:$TOSROOT/support/sdk/python:$PYTHONPATH
export PATH=$HOME/local/src/blip-rpl-devel/support/sdk/c:$PATH
export TOSCONTRIB=$HOME/local/src/tinyos-2.x-contrib
export LOWPAN_ROOT="$TOSCONTRIB/berkeley/blip-2.0"
export TOSMAKE_PATH="$LOWPAN_ROOT/support/make"
and these are errors related to PppRouter:
root@ema-HP-Pavilion-dv6000-RY645EA-ABZ:~/local/src/blip-rpl-devel/apps/PppRouter#
make micaz
mkdir -p build/micaz
compiling PppRouterC to a micaz binary
ncc -o build/micaz/main.exe -Os -DRPL_ROUTING -DRPL_STORING_MODE
-I/home/ema/local/src/tinyos-2.x-contrib/berkeley/blip-2.0/tos/lib/net/rpl
-I/home/ema/local/src/tinyos-2.x/tos//lib/ppp
-I/home/ema/local/src/tinyos-2.x/tos//lib/fragpool
-I/home/ema/local/src/tinyos-2.x/tos//lib/serialprintf
-I/home/ema/local/src/tinyos-2.x/tos//platforms/micaz/chips/msp430
-fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=micaz
-fnesc-cfile=build/micaz/app.c -board=micasb -DDEFINED_TOS_AM_GROUP=0x22
--param max-inline-insns-single=100000 -DIDENT_APPNAME=\"PppRouterC\"
-DIDENT_USERNAME=\"root\" -DIDENT_HOSTNAME=\"ema-HP-Pavilion\"
-DIDENT_USERHASH=0xa3d1d944L -DIDENT_TIMESTAMP=0x4d59505bL
-DIDENT_UIDHASH=0xaf9e304dL -fnesc-dump=wiring
-fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs,
components)' -fnesc-dumpfile=build/micaz/wiring-check.xml PppRouterC.nc -lm
PppRouterC.nc:1:17: error: ppp.h: No such file or directory
PppRouterP.nc:3:27: error: lib6lowpan/ip.h: No such file or directory
PppRouterP.nc:4:31: error: lib6lowpan/nwbyte.h: No such file or directory
PppRouterP.nc:5:34: error: lib6lowpan/ip_malloc.h: No such file or directory
PppRouterP.nc:6:19: error: dhcp6.h: No such file or directory
PppRouterP.nc:7:24: error: PrintfUART.h: No such file or directory
In file included from PppRouterC.nc:5:
In component `PppRouterP':
PppRouterP.nc:11: interface IPForward not found
In file included from PppRouterC.nc:5:
PppRouterP.nc:15: interface MultiLed not found
In file included from PppRouterC.nc:5:
PppRouterP.nc:18: interface LcpAutomaton not found
PppRouterP.nc:19: interface PppIpv6 not found
PppRouterP.nc:21: interface ForwardingTable not found
PppRouterP.nc:22: interface RootControl not found
PppRouterP.nc:23: interface Dhcp6Info not found
PppRouterP.nc:28: `linkUp' is not in interface `PppIpv6'
PppRouterP.nc:29: `linkDown' is not in interface `PppIpv6'
PppRouterP.nc:31: syntax error before `state'
PppRouterP.nc:31: `transitionCompleted' is not in interface `Ipv6LcpAutomaton'
PppRouterP.nc:32: `thisLayerUp' is not in interface `Ipv6LcpAutomaton'
PppRouterP.nc:33: `thisLayerDown' is not in interface `Ipv6LcpAutomaton'
PppRouterP.nc:34: `thisLayerStarted' is not in interface `Ipv6LcpAutomaton'
PppRouterP.nc:35: `thisLayerFinished' is not in interface `Ipv6LcpAutomaton'
PppRouterP.nc: In function `IPControl.startDone':
PppRouterP.nc:44: implicit declaration of function `inet_pton6'
PppRouterP.nc:44: `DH6ADDR_ALLAGENT' undeclared (first use in this function)
PppRouterP.nc:44: (Each undeclared identifier is reported only once
PppRouterP.nc:44: for each function it appears in.)
PppRouterP.nc:45: interface has no command or event named `addRoute'
PppRouterP.nc:45: invalid use of undefined type `struct in6_addr'
PppRouterP.nc:45: `ROUTE_IFACE_PPP' undeclared (first use in this function)
PppRouterP.nc:48: interface has no command or event named `addRoute'
PppRouterP.nc: In function `Boot.booted':
PppRouterP.nc:56: interface has no command or event named `open'
PppRouterP.nc:62: interface has no command or event named `setRoot'
PppRouterP.nc:65: interface has no command or event named `useUnicast'
PppRouterP.nc: At top level:
PppRouterP.nc:72: `receive' is not in interface `PppIpv6'
PppRouterP.nc: In function `PppIpv6.receive':
PppRouterP.nc:74: arithmetic on pointer to an incomplete type
PppRouterP.nc:75: interface has no command or event named `toggle'
PppRouterP.nc:76: interface has no command or event named `recv'
PppRouterP.nc: At top level:
PppRouterP.nc:82: warning: `struct in6_addr' declared inside parameter list
PppRouterP.nc:82: warning: its scope is only this definition or declaration,
PppRouterP.nc:82: warning: which is probably not what you want.
PppRouterP.nc:82: warning: `struct ip6_packet' declared inside parameter list
PppRouterP.nc:82: `send' is not in interface `IPForward'
PppRouterP.nc: In function `IPForward.send':
PppRouterP.nc:84: implicit declaration of function `iov_len'
PppRouterP.nc:84: invalid use of undefined type `struct ip6_packet'
PppRouterP.nc:87: interface has no command or event named `linkIsUp'
PppRouterP.nc:90: implicit declaration of function `ip_malloc'
PppRouterP.nc:90: sizeof applied to an incomplete type
PppRouterP.nc:90: warning: assignment makes pointer from integer without a cast
PppRouterP.nc:94: invalid use of undefined type `struct ip6_packet'
PppRouterP.nc:94: sizeof applied to an incomplete type
PppRouterP.nc:95: implicit declaration of function `iov_read'
PppRouterP.nc:95: invalid use of undefined type `struct ip6_packet'
PppRouterP.nc:95: sizeof applied to an incomplete type
PppRouterP.nc:96: interface has no command or event named `toggle'
PppRouterP.nc:97: interface has no command or event named `transmit'
PppRouterP.nc:97: sizeof applied to an incomplete type
PppRouterP.nc:98: implicit declaration of function `ip_free'
In component `PppRouterC':
PppRouterC.nc: At top level:
PppRouterC.nc:10: component LedC not found
PppRouterC.nc:13: component PppDaemonC not found
PppRouterC.nc:16: component PppIpv6C not found
PppRouterC.nc:17: component's specification has no element named
`ControlProtocol'
PppRouterC.nc:18: component's specification has no element named `Protocol'
PppRouterC.nc:24: component PlatformSerialHdlcUartC not found
PppRouterC.nc:28: component PppPrintfC not found
PppRouterC.nc:28: component PppC not found
PppRouterC.nc:30: component's specification has no element named `Protocol'
PppRouterC.nc:33: component IPStackC not found
PppRouterC.nc:33: component IPForwardingEngineP not found
PppRouterC.nc:34: `ROUTE_IFACE_PPP' undeclared here (not in a function)
PppRouterC.nc:39: component RPLRoutingC not found
PppRouterC.nc:50: component Dhcp6ClientC not found
PppRouterC.nc:11: no match
PppRouterC.nc:14: no match
PppRouterC.nc:17: cannot find `PppControlProtocol'
PppRouterC.nc:18: cannot find `PppProtocol'
PppRouterC.nc:19: cannot find `Ppp'
PppRouterC.nc:20: cannot find `LowerLcpAutomaton'
PppRouterC.nc:21: no match
PppRouterC.nc:22: no match
PppRouterC.nc:25: cannot find `HdlcUart'
PppRouterC.nc:26: cannot find `UartControl'
PppRouterC.nc:29: cannot find `Ppp'
PppRouterC.nc:30: cannot find `PppProtocol'
PppRouterC.nc:31: cannot find `Ppp'
PppRouterC.nc:34: cannot find `IPForward'
PppRouterC.nc:35: no match
PppRouterC.nc:36: no match
PppRouterC.nc:40: no match
PppRouterC.nc:51: no match
make: *** [exe0] Errore 1
root@ema-HP-Pavilion-dv6000-RY645EA-ABZ:~/local/src/blip-rpl-devel/apps/PppRouter#
source /home/ema/.bashrc
root@ema-HP-Pavilion-dv6000-RY645EA-ABZ:~/local/src/blip-rpl-devel/apps/PppRouter#
make micaz
mkdir -p build/micaz
compiling PppRouterC to a micaz binary
ncc -o build/micaz/main.exe -Os -DRPL_ROUTING -DRPL_STORING_MODE
-I/home/ema/local/src/tinyos-2.x-contrib/berkeley/blip-2.0/tos/lib/net/rpl
-I/home/ema/local/src/blip-rpl-devel/tos//lib/ppp
-I/home/ema/local/src/blip-rpl-devel/tos//lib/fragpool
-I/home/ema/local/src/blip-rpl-devel/tos//lib/serialprintf
-I/home/ema/local/src/blip-rpl-devel/tos//platforms/micaz/chips/msp430
-fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=micaz
-fnesc-cfile=build/micaz/app.c -board=micasb -DDEFINED_TOS_AM_GROUP=0x22
--param max-inline-insns-single=100000 -DIDENT_APPNAME=\"PppRouterC\"
-DIDENT_USERNAME=\"root\" -DIDENT_HOSTNAME=\"ema-HP-Pavilion\"
-DIDENT_USERHASH=0xa3d1d944L -DIDENT_TIMESTAMP=0x4d5950e6L
-DIDENT_UIDHASH=0x349bd0f3L -fnesc-dump=wiring
-fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs,
components)' -fnesc-dumpfile=build/micaz/wiring-check.xml PppRouterC.nc -lm
PppRouterP.nc:3:27: error: lib6lowpan/ip.h: No such file or directory
PppRouterP.nc:4:31: error: lib6lowpan/nwbyte.h: No such file or directory
PppRouterP.nc:5:34: error: lib6lowpan/ip_malloc.h: No such file or directory
PppRouterP.nc:6:19: error: dhcp6.h: No such file or directory
PppRouterP.nc:7:24: error: PrintfUART.h: No such file or directory
In file included from PppRouterC.nc:5:
In component `PppRouterP':
PppRouterP.nc:11: interface IPForward not found
In file included from PppRouterC.nc:5:
PppRouterP.nc:21: interface ForwardingTable not found
PppRouterP.nc:22: interface RootControl not found
PppRouterP.nc:23: interface Dhcp6Info not found
PppRouterP.nc: In function `IPControl.startDone':
PppRouterP.nc:44: implicit declaration of function `inet_pton6'
PppRouterP.nc:44: `DH6ADDR_ALLAGENT' undeclared (first use in this function)
PppRouterP.nc:44: (Each undeclared identifier is reported only once
PppRouterP.nc:44: for each function it appears in.)
PppRouterP.nc:45: interface has no command or event named `addRoute'
PppRouterP.nc:45: invalid use of undefined type `struct in6_addr'
PppRouterP.nc:45: `ROUTE_IFACE_PPP' undeclared (first use in this function)
PppRouterP.nc:48: interface has no command or event named `addRoute'
PppRouterP.nc: In function `Boot.booted':
PppRouterP.nc:62: interface has no command or event named `setRoot'
PppRouterP.nc:65: interface has no command or event named `useUnicast'
PppRouterP.nc: In function `PppIpv6.receive':
PppRouterP.nc:74: arithmetic on pointer to an incomplete type
PppRouterP.nc:76: interface has no command or event named `recv'
PppRouterP.nc: At top level:
PppRouterP.nc:82: warning: `struct in6_addr' declared inside parameter list
PppRouterP.nc:82: warning: its scope is only this definition or declaration,
PppRouterP.nc:82: warning: which is probably not what you want.
PppRouterP.nc:82: warning: `struct ip6_packet' declared inside parameter list
PppRouterP.nc:82: `send' is not in interface `IPForward'
PppRouterP.nc: In function `IPForward.send':
PppRouterP.nc:84: implicit declaration of function `iov_len'
PppRouterP.nc:84: invalid use of undefined type `struct ip6_packet'
PppRouterP.nc:90: implicit declaration of function `ip_malloc'
PppRouterP.nc:90: sizeof applied to an incomplete type
PppRouterP.nc:90: warning: assignment makes pointer from integer without a cast
PppRouterP.nc:94: invalid use of undefined type `struct ip6_packet'
PppRouterP.nc:94: sizeof applied to an incomplete type
PppRouterP.nc:95: implicit declaration of function `iov_read'
PppRouterP.nc:95: invalid use of undefined type `struct ip6_packet'
PppRouterP.nc:95: sizeof applied to an incomplete type
PppRouterP.nc:97: sizeof applied to an incomplete type
PppRouterP.nc:98: implicit declaration of function `ip_free'
/home/ema/local/src/blip-rpl-devel/tos/system/LedC.nc:32:25: error:
PlatformLed.h: No such file or directory
In file included from PppRouterC.nc:10:
In component `LedC':
/home/ema/local/src/blip-rpl-devel/tos/system/LedC.nc: At top level:
/home/ema/local/src/blip-rpl-devel/tos/system/LedC.nc:88: component
PlatformLedC not found
/home/ema/local/src/blip-rpl-devel/tos/system/LedC.nc:89: no match
In file included from
/home/ema/local/src/blip-rpl-devel/tos/lib/timer/MuxAlarmMilli32C.nc:47,
from
/home/ema/local/src/blip-rpl-devel/tos//lib/ppp/LcpAutomatonC.nc:72,
from
/home/ema/local/src/blip-rpl-devel/tos//lib/ppp/LinkControlProtocolC.nc:89,
from
/home/ema/local/src/blip-rpl-devel/tos//lib/ppp/PppDaemonC.nc:65,
from PppRouterC.nc:13:
In component `MuxAlarmMilli32C_':
/home/ema/local/src/blip-rpl-devel/tos/lib/timer/MuxAlarmMilli32C_.nc:55:
component AlarmMilli32C not found
/home/ema/local/src/blip-rpl-devel/tos/lib/timer/MuxAlarmMilli32C_.nc:55:
component `AlarmMilli32C' is not generic
/home/ema/local/src/blip-rpl-devel/tos/lib/timer/MuxAlarmMilli32C_.nc:56: no
match
In component `PppRouterC':
PppRouterC.nc:33: component IPStackC not found
PppRouterC.nc:33: component IPForwardingEngineP not found
PppRouterC.nc:34: `ROUTE_IFACE_PPP' undeclared here (not in a function)
PppRouterC.nc:39: component RPLRoutingC not found
PppRouterC.nc:50: component Dhcp6ClientC not found
PppRouterC.nc:34: cannot find `IPForward'
PppRouterC.nc:35: no match
PppRouterC.nc:36: no match
PppRouterC.nc:40: no match
PppRouterC.nc:51: no match
make: *** [exe0] Errore 1
Regards
Emanuele
> Date: Mon, 14 Feb 2011 16:46:59 +0100
> From: [email protected]
> To: [email protected]
> Subject: Re: [Tinyos-help] blip/rpl IPBaseStation
>
> > Hi,
> > I would like to study new blip and rpl's implementation but
> > IPBaseStation app gives me some errors:
>
> Are you using the code from the blip-rpl-devel branch? In this case, you
> have to build PppRouter as basestation. You can find the installation
> instructions under blip-rpl-devel/README.blip.
>
> If you are using tinyos 2.1.1, build the IPBaseStation app with:
>
> make tmote blip install
>
> http://docs.tinyos.net/index.php/BLIP_Tutorial
>
> Tobias
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help