Hi,
I'm trying to install mysensors in beaglebone black as a gateway to connect to home assistant through ethernet, but it gives me this error:
debian@beaglebone:~/MySensors$ make
gcc -MT build/hal/architecture/Linux/drivers/core/log.o -MMD -MP -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWDLINUX_SPI_SPIDEV -DMY_LINUX_SERIAL_PORT=\"COM2\" -DMY_CONTROLLER_IP_ADDRESS=192,168,1,75:8123 -Ofast -g -Wall -Wextra -I. -I./core -I./hal/architecte -c hal/architecture/Linux/drivers/core/log.c -o build/hal/architecture/Linux/drivers/core/log.o
gcc -MT build/hal/architecture/Linux/drivers/core/config.o -MMD -MP -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GAG -DLINUX_SPI_SPIDEV -DMY_LINUX_SERIAL_PORT=\"COM2\" -DMY_CONTROLLER_IP_ADDRESS=192,168,1,75:8123 -Ofast -g -Wall -Wextra -I. -I./core -I./hal/architcore -c hal/architecture/Linux/drivers/core/config.c -o build/hal/architecture/Linux/drivers/core/config.o
g++ -MT build/hal/architecture/Linux/drivers/core/StdInOutStream.o -MMD -MP -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -DMY_RADIO_RF24DMY_DEBUG -DLINUX_SPI_SPIDEV -DMY_LINUX_SERIAL_PORT=\"COM2\" -DMY_CONTROLLER_IP_ADDRESS=192,168,1,75:8123 -Ofast -g -Wall -Wextra -std=c++11 -I. -I./cure/Linux/drivers/core -c hal/architecture/Linux/drivers/core/StdInOutStream.cpp -o build/hal/architecture/Linux/drivers/core/StdInOutStream.o
g++ -MT build/hal/architecture/Linux/drivers/core/noniso.o -MMD -MP -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GAG -DLINUX_SPI_SPIDEV -DMY_LINUX_SERIAL_PORT=\"COM2\" -DMY_CONTROLLER_IP_ADDRESS=192,168,1,75:8123 -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./x/drivers/core -c hal/architecture/Linux/drivers/core/noniso.cpp -o build/hal/architecture/Linux/drivers/core/noniso.o
g++ -MT build/hal/architecture/Linux/drivers/core/GPIO.o -MMD -MP -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATE-DLINUX_SPI_SPIDEV -DMY_LINUX_SERIAL_PORT=\"COM2\" -DMY_CONTROLLER_IP_ADDRESS=192,168,1,75:8123 -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hadrivers/core -c hal/architecture/Linux/drivers/core/GPIO.cpp -o build/hal/architecture/Linux/drivers/core/GPIO.o
hal/architecture/Linux/drivers/core/GPIO.cpp: In constructor ‘GPIOClass::GPIOClass()’:
hal/architecture/Linux/drivers/core/GPIO.cpp:53:33: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 48 [-
snprintf(file, sizeof(file), "/sys/class/gpio/%s/base", de->d_name);
^~~~~~~~~~~~~~~~~~~~~~~~~
hal/architecture/Linux/drivers/core/GPIO.cpp:53:12: note: ‘snprintf’ output between 22 and 277 bytes into a destination of size 64
snprintf(file, sizeof(file), "/sys/class/gpio/%s/base", de->d_name);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hal/architecture/Linux/drivers/core/GPIO.cpp:62:33: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 48 [-
snprintf(file, sizeof(file), "/sys/class/gpio/%s/ngpio", de->d_name);
^~~~~~~~~~~~~~~~~~~~~~~~~~
hal/architecture/Linux/drivers/core/GPIO.cpp:62:12: note: ‘snprintf’ output between 23 and 278 bytes into a destination of size 64
snprintf(file, sizeof(file), "/sys/class/gpio/%s/ngpio", de->d_name);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
g++ -MT build/hal/architecture/Linux/drivers/core/SPIDEV.o -MMD -MP -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GAG -DLINUX_SPI_SPIDEV -DMY_LINUX_SERIAL_PORT=\"COM2\" -DMY_CONTROLLER_IP_ADDRESS=192,168,1,75:8123 -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./x/drivers/core -c hal/architecture/Linux/drivers/core/SPIDEV.cpp -o build/hal/architecture/Linux/drivers/core/SPIDEV.o
g++ -MT build/hal/architecture/Linux/drivers/core/Print.o -MMD -MP -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GAT -DLINUX_SPI_SPIDEV -DMY_LINUX_SERIAL_PORT=\"COM2\" -DMY_CONTROLLER_IP_ADDRESS=192,168,1,75:8123 -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./h/drivers/core -c hal/architecture/Linux/drivers/core/Print.cpp -o build/hal/architecture/Linux/drivers/core/Print.o
g++ -MT build/hal/architecture/Linux/drivers/core/EthernetClient.o -MMD -MP -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -DMY_RADIO_RF24DMY_DEBUG -DLINUX_SPI_SPIDEV -DMY_LINUX_SERIAL_PORT=\"COM2\" -DMY_CONTROLLER_IP_ADDRESS=192,168,1,75:8123 -Ofast -g -Wall -Wextra -std=c++11 -I. -I./cure/Linux/drivers/core -c hal/architecture/Linux/drivers/core/EthernetClient.cpp -o build/hal/architecture/Linux/drivers/core/EthernetClient.o
g++ -MT build/hal/architecture/Linux/drivers/core/SerialPort.o -MMD -MP -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_SPIDEV -DMY_LINUX_SERIAL_PORT=\"COM2\" -DMY_CONTROLLER_IP_ADDRESS=192,168,1,75:8123 -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -c hal/architecture/Linux/drivers/core/SerialPort.cpp -o build/hal/architecture/Linux/drivers/core/SerialPort.o
g++ -MT build/hal/architecture/Linux/drivers/core/Stream.o -MMD -MP -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_SPIDEV -DMY_LINUX_SERIAL_PORT=\"COM2\" -DMY_CONTROLLER_IP_ADDRESS=192,168,1,75:8123 -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -c hal/architecture/Linux/drivers/core/Stream.cpp -o build/hal/architecture/Linux/drivers/core/Stream.o
g++ -MT build/hal/architecture/Linux/drivers/core/IPAddress.o -MMD -MP -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_SPIDEV -DMY_LINUX_SERIAL_PORT=\"COM2\" -DMY_CONTROLLER_IP_ADDRESS=192,168,1,75:8123 -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -c hal/architecture/Linux/drivers/core/IPAddress.cpp -o build/hal/architecture/Linux/drivers/core/IPAddress.o
g++ -MT build/hal/architecture/Linux/drivers/core/compatibility.o -MMD -MP -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_SPIDEV -DMY_LINUX_SERIAL_PORT=\"COM2\" -DMY_CONTROLLER_IP_ADDRESS=192,168,1,75:8123 -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -c hal/architecture/Linux/drivers/core/compatibility.cpp -o build/hal/architecture/Linux/drivers/core/compatibility.o
g++ -MT build/hal/architecture/Linux/drivers/core/interrupt.o -MMD -MP -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_SPIDEV -DMY_LINUX_SERIAL_PORT=\"COM2\" -DMY_CONTROLLER_IP_ADDRESS=192,168,1,75:8123 -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -c hal/architecture/Linux/drivers/core/interrupt.cpp -o build/hal/architecture/Linux/drivers/core/interrupt.o
g++ -MT build/hal/architecture/Linux/drivers/core/SoftEeprom.o -MMD -MP -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_SPIDEV -DMY_LINUX_SERIAL_PORT=\"COM2\" -DMY_CONTROLLER_IP_ADDRESS=192,168,1,75:8123 -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -c hal/architecture/Linux/drivers/core/SoftEeprom.cpp -o build/hal/architecture/Linux/drivers/core/SoftEeprom.o
g++ -MT build/hal/architecture/Linux/drivers/core/EthernetServer.o -MMD -MP -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_SPIDEV -DMY_LINUX_SERIAL_PORT=\"COM2\" -DMY_CONTROLLER_IP_ADDRESS=192,168,1,75:8123 -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -c hal/architecture/Linux/drivers/core/EthernetServer.cpp -o build/hal/architecture/Linux/drivers/core/EthernetServer.o
g++ -MT build/examples_linux/mysgw.o -MMD -MP -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_SPIDEV -DMY_LINUX_SERIAL_PORT=\"COM2\" -DMY_CONTROLLER_IP_ADDRESS=192,168,1,75:8123 -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -c examples_linux/mysgw.cpp -o build/examples_linux/mysgw.o
In file included from ./MySensors.h:244,
from examples_linux/mysgw.cpp:82:
./core/MyGatewayTransportEthernet.cpp: In function ‘bool gatewayTransportInit()’:
./core/MyGatewayTransportEthernet.cpp:57:40: error: expected primary-expression before ‘(’ token
#define _ethernetControllerIP IPAddress(MY_CONTROLLER_IP_ADDRESS)
^
./core/MyGatewayTransportEthernet.cpp:223:21: note: in expansion of macro ‘_ethernetControllerIP’
if (client.connect(_ethernetControllerIP, MY_PORT)) {
^~~~~~~~~~~~~~~~~~~~~
<command-line>: error: expected ‘)’ before ‘:’ token
./core/MyGatewayTransportEthernet.cpp:57:41: note: in expansion of macro ‘MY_CONTROLLER_IP_ADDRESS’
#define _ethernetControllerIP IPAddress(MY_CONTROLLER_IP_ADDRESS)
^~~~~~~~~~~~~~~~~~~~~~~~
./core/MyGatewayTransportEthernet.cpp:223:21: note: in expansion of macro ‘_ethernetControllerIP’
if (client.connect(_ethernetControllerIP, MY_PORT)) {
^~~~~~~~~~~~~~~~~~~~~
In file included from ./MySensors.h:244,
from examples_linux/mysgw.cpp:82:
./core/MyGatewayTransportEthernet.cpp:57:40: note: to match this ‘(’
#define _ethernetControllerIP IPAddress(MY_CONTROLLER_IP_ADDRESS)
^
./core/MyGatewayTransportEthernet.cpp:223:21: note: in expansion of macro ‘_ethernetControllerIP’
if (client.connect(_ethernetControllerIP, MY_PORT)) {
^~~~~~~~~~~~~~~~~~~~~
./core/MyGatewayTransportEthernet.cpp: In function ‘bool gatewayTransportSend(MyMessage&)’:
./core/MyGatewayTransportEthernet.cpp:57:40: error: expected primary-expression before ‘(’ token
#define _ethernetControllerIP IPAddress(MY_CONTROLLER_IP_ADDRESS)
^
./core/MyGatewayTransportEthernet.cpp:272:22: note: in expansion of macro ‘_ethernetControllerIP’
if (client.connect(_ethernetControllerIP, MY_PORT)) {
^~~~~~~~~~~~~~~~~~~~~
<command-line>: error: expected ‘)’ before ‘:’ token
./core/MyGatewayTransportEthernet.cpp:57:41: note: in expansion of macro ‘MY_CONTROLLER_IP_ADDRESS’
#define _ethernetControllerIP IPAddress(MY_CONTROLLER_IP_ADDRESS)
^~~~~~~~~~~~~~~~~~~~~~~~
./core/MyGatewayTransportEthernet.cpp:272:22: note: in expansion of macro ‘_ethernetControllerIP’
if (client.connect(_ethernetControllerIP, MY_PORT)) {
^~~~~~~~~~~~~~~~~~~~~
In file included from ./MySensors.h:244,
from examples_linux/mysgw.cpp:82:
./core/MyGatewayTransportEthernet.cpp:57:40: note: to match this ‘(’
#define _ethernetControllerIP IPAddress(MY_CONTROLLER_IP_ADDRESS)
^
./core/MyGatewayTransportEthernet.cpp:272:22: note: in expansion of macro ‘_ethernetControllerIP’
if (client.connect(_ethernetControllerIP, MY_PORT)) {
^~~~~~~~~~~~~~~~~~~~~
./core/MyGatewayTransportEthernet.cpp: In function ‘bool gatewayTransportAvailable()’:
./core/MyGatewayTransportEthernet.cpp:57:40: error: expected primary-expression before ‘(’ token
#define _ethernetControllerIP IPAddress(MY_CONTROLLER_IP_ADDRESS)
^
./core/MyGatewayTransportEthernet.cpp:398:22: note: in expansion of macro ‘_ethernetControllerIP’
if (client.connect(_ethernetControllerIP, MY_PORT)) {
^~~~~~~~~~~~~~~~~~~~~
<command-line>: error: expected ‘)’ before ‘:’ token
./core/MyGatewayTransportEthernet.cpp:57:41: note: in expansion of macro ‘MY_CONTROLLER_IP_ADDRESS’
#define _ethernetControllerIP IPAddress(MY_CONTROLLER_IP_ADDRESS)
^~~~~~~~~~~~~~~~~~~~~~~~
./core/MyGatewayTransportEthernet.cpp:398:22: note: in expansion of macro ‘_ethernetControllerIP’
if (client.connect(_ethernetControllerIP, MY_PORT)) {
^~~~~~~~~~~~~~~~~~~~~
In file included from ./MySensors.h:244,
from examples_linux/mysgw.cpp:82:
./core/MyGatewayTransportEthernet.cpp:57:40: note: to match this ‘(’
#define _ethernetControllerIP IPAddress(MY_CONTROLLER_IP_ADDRESS)
^
./core/MyGatewayTransportEthernet.cpp:398:22: note: in expansion of macro ‘_ethernetControllerIP’
if (client.connect(_ethernetControllerIP, MY_PORT)) {
^~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:99: build/examples_linux/mysgw.o] Error 1
Configure command was:
./configure --my-debug=enable --my-gateway=ethernet --my-controller-ip-address=192.168.1.75:8123 --my-serial-port=COM2