I'm encountering errors while compiling code for my hardware comprising
MSP430+CC2520. Here are the errors I got.
------------------------------------------------------
User@crypt /opt/ubiMote/src/app/PppRouter
$ make ubimote
mkdir -p build/ubimote
compiling PppRouterC to a ubimote binary
ncc -o build/ubimote/main.exe -Os -O -I/opt/ubiMote/src/tos/lib/ppp -I/opt/ubiMo
te/src/tos/lib/fragpool -I/opt/ubiMote/src/tos/platforms/ubimote/chips/msp430 -D
IN6_PREFIX=\"fec0::\" -mdisable-hwmul -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wn
esc-all -target=ubimote -fnesc-cfile=build/ubimote/app.c -board= -DIDENT_APPNAME
=\"PppRouterC\" -DIDENT_USERNAME=\"User\" -DIDENT_HOSTNAME=\"crypt\" -DIDENT_USE
RHASH=0xeb6ee4acL -DIDENT_TIMESTAMP=0x4ee9792dL -DIDENT_UIDHASH=0xed28b776L Ppp
RouterC.nc -lm
In file included from /opt/ubiMote/src/tos/lib/ppp/lib6lowpan-includes.h:19,
from /opt/ubiMote/src/tos/lib/ppp/lib6lowpan-ip.h:27,
from PppRouterP.nc:2:
/opt/ubiMote/src/tos/lib/ppp/config.h:29:24: error: netinet/in.h: No such file o
r directory
/opt/ubiMote/src/tos/lib/ppp/config.h:30:20: error: net/if.h: No such file or di
rectory
In file included from /opt/ubiMote/src/tos/lib/ppp/lib6lowpan-includes.h:19,
from /opt/ubiMote/src/tos/lib/ppp/lib6lowpan-ip.h:27,
from PppRouterP.nc:2,
from PppRouterC.nc:5:
/opt/ubiMote/src/tos/lib/ppp/config.h:34: `IFNAMSIZ' undeclared here (not in a f
unction)
/opt/ubiMote/src/tos/lib/ppp/config.h:33: field `router_addr' has incomplete typ
e
/opt/ubiMote/src/tos/lib/ppp/config.h:34: size of array `proxy_dev' has non-inte
ger type
In file included from /opt/ubiMote/src/tos/lib/ppp/lib6lowpan-ip.h:27,
from PppRouterP.nc:2:
/opt/ubiMote/src/tos/lib/ppp/lib6lowpan-includes.h:26:20: error: syslog.h: No su
ch file or directory
/opt/ubiMote/src/tos/lib/ppp/lib6lowpan-includes.h:27:20: error: unistd.h: No su
ch file or directory
/opt/ubiMote/src/tos/lib/ppp/lib6lowpan-includes.h:30:19: error: netdb.h: No suc
h file or directory
/opt/ubiMote/src/tos/lib/ppp/lib6lowpan-includes.h:31:17: error: pwd.h: No such
file or directory
/opt/ubiMote/src/tos/lib/ppp/lib6lowpan-includes.h:32:17: error: grp.h: No such
file or directory
/opt/ubiMote/src/tos/lib/ppp/lib6lowpan-includes.h:61:23: error: sys/ioctl.h: No
such file or directory
/opt/ubiMote/src/tos/lib/ppp/lib6lowpan-includes.h:62:24: error: sys/socket.h: N
o such file or directory
/opt/ubiMote/src/tos/lib/ppp/lib6lowpan-includes.h:63:22: error: sys/time.h: No
such file or directory
/opt/ubiMote/src/tos/lib/ppp/lib6lowpan-includes.h:64:21: error: sys/uio.h: No s
uch file or directory
/opt/ubiMote/src/tos/lib/ppp/lib6lowpan-includes.h:66:22: error: sys/stat.h: No
such file or directory
/opt/ubiMote/src/tos/lib/ppp/lib6lowpan-includes.h:67:19: error: fcntl.h: No suc
h file or directory
/opt/ubiMote/src/tos/lib/ppp/lib6lowpan-includes.h:71:25: error: netinet/ip6.h:
No such file or directory
/opt/ubiMote/src/tos/lib/ppp/lib6lowpan-includes.h:72:27: error: netinet/icmp6.h
: No such file or directory
/opt/ubiMote/src/tos/lib/ppp/lib6lowpan-includes.h:74:23: error: arpa/inet.h: No
such file or directory
/opt/ubiMote/src/tos/lib/ppp/lib6lowpan-includes.h:76:24: error: sys/sysctl.h: N
o such file or directory
PppRouterP.nc:5:19: error: dhcp6.h: No such file or directory
In file included from PppRouterP.nc:6:
/opt/ubiMote/src/tos/chips/msp430/msp430X/usci/PrintfUART.h:119:2: warning: #war
ning including printfZ1
In file included from PppRouterC.nc:5:
In component `PppRouterP':
PppRouterP.nc:10: interface IPForward not found
In file included from PppRouterC.nc:5:
PppRouterP.nc:14: interface MultiLed not found
/opt/ubiMote/src/tos/lib/ppp/LcpAutomaton.nc:31:26: error: LcpAutomaton.h: No su
ch file or directory
In file included from PppRouterP.nc:17,
from PppRouterC.nc:5:
In interface `LcpAutomaton':
/opt/ubiMote/src/tos/lib/ppp/LcpAutomaton.nc:48: syntax error before `state'
/opt/ubiMote/src/tos/lib/ppp/LcpAutomaton.nc:51: only commands and events can be
defined in interfaces
/opt/ubiMote/src/tos/lib/ppp/LcpAutomaton.nc:51: warning: return-type defaults t
o `int'
/opt/ubiMote/src/tos/lib/ppp/LcpAutomaton.nc:51: syntax error before `getState'
/opt/ubiMote/src/tos/lib/ppp/LcpAutomaton.nc:101: syntax error before `evt'
In component `PppRouterP':
PppRouterP.nc:18: interface PppIpv6 not found
PppRouterP.nc:20: interface ForwardingTable not found
PppRouterP.nc:21: interface RootControl not found
PppRouterP.nc:22: interface Dhcp6Info not found
PppRouterP.nc:27: `linkUp' is not in interface `PppIpv6'
PppRouterP.nc:28: `linkDown' is not in interface `PppIpv6'
PppRouterP.nc:30: syntax error before `state'
PppRouterP.nc: In function `IPControl.startDone':
PppRouterP.nc:43: `DH6ADDR_ALLAGENT' undeclared (first use in this function)
PppRouterP.nc:43: (Each undeclared identifier is reported only once
PppRouterP.nc:43: for each function it appears in.)
PppRouterP.nc:44: interface has no command or event named `addRoute'
PppRouterP.nc:44: `ROUTE_IFACE_PPP' undeclared (first use in this function)
PppRouterP.nc:47: interface has no command or event named `addRoute'
PppRouterP.nc: At top level:
PppRouterP.nc:71: `receive' is not in interface `PppIpv6'
PppRouterP.nc: In function `PppIpv6.receive':
PppRouterP.nc:74: interface has no command or event named `toggle'
PppRouterP.nc:75: interface has no command or event named `recv'
PppRouterP.nc: At top level:
PppRouterP.nc:81: `send' is not in interface `IPForward'
PppRouterP.nc: In function `IPForward.send':
PppRouterP.nc:83: implicit declaration of function `iov_len'
PppRouterP.nc:86: interface has no command or event named `linkIsUp'
PppRouterP.nc:91: `ENOMEM' undeclared (first use in this function)
PppRouterP.nc:94: implicit declaration of function `iov_read'
PppRouterP.nc:95: interface has no command or event named `toggle'
PppRouterP.nc:96: interface has no command or event named `transmit'
PppRouterP.nc: At top level:
PppRouterP.nc:102: syntax error before `Hide'
In component `PppRouterC':
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 `ControlProtoco
l'
PppRouterC.nc:18: component's specification has no element named `Protocol'
/opt/ubiMote/src/tos/interfaces/ResourceConfigure.nc:23:1: warning: "/*" within
comment
In file included from /opt/ubiMote/src/tos/platforms/telosa/PlatformSerialC.nc:1
6,
from PppRouterC.nc:24:
In component `TelosSerialP':
/opt/ubiMote/src/tos/platforms/telosa/TelosSerialP.nc: In function `Msp430UartCo
nfigure.getConfig':
/opt/ubiMote/src/tos/platforms/telosa/TelosSerialP.nc:23: warning: return discar
ds `const' from pointer target type
In component `PppRouterC':
PppRouterC.nc: At top level:
PppRouterC.nc:28: component PppPrintfC not found
In file included from PppRouterC.nc:28:
In component `PppC':
/opt/ubiMote/src/tos/lib/ppp/PppC.nc:54: component PppP not found
/opt/ubiMote/src/tos/lib/ppp/PppC.nc:65: component FragmentPoolC not found
/opt/ubiMote/src/tos/lib/ppp/PppC.nc:65: component `FragmentPoolC' is not generi
c
In file included from /opt/ubiMote/src/tos/lib/ppp/HdlcFramingC.nc:94,
from /opt/ubiMote/src/tos/lib/ppp/PppC.nc:71,
from PppRouterC.nc:28:
In component `HdlcFramingP':
/opt/ubiMote/src/tos/lib/ppp/HdlcFramingP.nc:42: interface FragmentPool not foun
d
In file included from /opt/ubiMote/src/tos/lib/ppp/HdlcFramingC.nc:94,
from /opt/ubiMote/src/tos/lib/ppp/PppC.nc:71,
from PppRouterC.nc:28:
/opt/ubiMote/src/tos/lib/ppp/HdlcFramingP.nc: In function `startNewFrame_async__
':
/opt/ubiMote/src/tos/lib/ppp/HdlcFramingP.nc:238: `ENOMEM' undeclared (first use
in this function)
/opt/ubiMote/src/tos/lib/ppp/HdlcFramingP.nc:242: interface has no command or ev
ent named `request'
/opt/ubiMote/src/tos/lib/ppp/HdlcFramingP.nc: At top level:
/opt/ubiMote/src/tos/lib/ppp/HdlcFramingP.nc:258: `available' is not in interfac
e `InputFramePool'
/opt/ubiMote/src/tos/lib/ppp/HdlcFramingP.nc: In function `completeFrame_async__
':
/opt/ubiMote/src/tos/lib/ppp/HdlcFramingP.nc:296: interface has no command or ev
ent named `freeze'
/opt/ubiMote/src/tos/lib/ppp/HdlcFramingP.nc: In function `inputEngine_task.runT
ask':
/opt/ubiMote/src/tos/lib/ppp/HdlcFramingP.nc:355: interface has no command or ev
ent named `release'
In component `HdlcFramingC':
/opt/ubiMote/src/tos/lib/ppp/HdlcFramingC.nc: At top level:
/opt/ubiMote/src/tos/lib/ppp/HdlcFramingC.nc:109: component `FragmentPoolC' is n
ot generic
/opt/ubiMote/src/tos/lib/ppp/HdlcFramingC.nc:110: no match
In component `PppC':
/opt/ubiMote/src/tos/lib/ppp/PppC.nc:55: no match
/opt/ubiMote/src/tos/lib/ppp/PppC.nc:56: no match
/opt/ubiMote/src/tos/lib/ppp/PppC.nc:57: no match
/opt/ubiMote/src/tos/lib/ppp/PppC.nc:58: no match
/opt/ubiMote/src/tos/lib/ppp/PppC.nc:59: no match
/opt/ubiMote/src/tos/lib/ppp/PppC.nc:60: no match
/opt/ubiMote/src/tos/lib/ppp/PppC.nc:66: cannot find `TransmitFramePool'
/opt/ubiMote/src/tos/lib/ppp/PppC.nc:72: cannot find `HdlcFraming'
/opt/ubiMote/src/tos/lib/ppp/PppC.nc:73: cannot find `HdlcControl'
/opt/ubiMote/src/tos/lib/ppp/PppC.nc:79: cannot find `MultiLed'
In component `PppRouterC':
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:44: component UDPShellC not found
PppRouterC.nc:47: component RouteCmdC 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 `UartStream'
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
make: *** [exe0] Error 1
--------------------------------------------------------------------------------
I checked for the header files in /tos/lib/ppp/ and placed some files but I'm
getting errors while accessing netinet/ip6.h
I don't know what to do.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help