Unable to compile the corresponding executable file. Compilation error.
[root@singlexxx device-bacnet-c-3.1.0]# ./scripts/build.sh
++++ readlink -f ./scripts/build.sh
+++ dirname /device-bacnet-c-3.1.0/scripts/build.sh
++ dirname /device-bacnet-c-3.1.0/scripts
+ ROOT=/device-bacnet-c-3.1.0
+ echo /device-bacnet-c-3.1.0
/device-bacnet-c-3.1.0
+ cd /device-bacnet-c-3.1.0
+ '[' '!' -f /device-bacnet-c-3.1.0/lib/ip/libbacnet.a ']'
+ '[' '!' -f /device-bacnet-c-3.1.0/lib/mstp/libbacnet.a ']'
+ mkdir -p /device-bacnet-c-3.1.0/build/release/device-bacnet-ip
+ cd /device-bacnet-c-3.1.0/build/release/device-bacnet-ip
+ cmake -DDATALINK:STRING=BACDL_BIP=1 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Release /device-bacnet-c-3.1.0/src/c
-- Found IOT: /opt/iotech/iot/1.5/lib/libiot.so
-- /opt/iotech/iot/1.5/include
-- Configuring done
-- Generating done
-- Build files have been written to: /device-bacnet-c-3.1.0/build/release/device-bacnet-ip
+ make
+ tee release.log
[ 11%] Building C object CMakeFiles/bacnet_objects.dir/device-bacnet-c-3.1.0/bacnet-stack/demo/object/device-client.c.o
[ 22%] Linking C static library libbacnet_objects.a
[ 22%] Built target bacnet_objects
[ 33%] Building C object CMakeFiles/device-bacnet-c.dir/main.c.o
/device-bacnet-c-3.1.0/src/c/main.c: In function ‘bacnet_discover’:
/device-bacnet-c-3.1.0/src/c/main.c:392:59: warning: passing argument 4 of ‘edgex_add_device’ from incompatible pointer type [-Wincompatible-pointer-types]
392 | edgex_add_device (driver->service, name, description, labels, profile, protocols, false, NULL, &error);
| ^~~~~~
| |
| devsdk_strings *
In file included from /device-bacnet-c-3.1.0/src/c/main.c:12:
/usr/include/edgex/devices.h:43:15: note: expected ‘const char *’ but argument is of type ‘devsdk_strings *’
43 | const char *description,
| ~~~~~~~~~~~~^~~~~~~~~~~
/device-bacnet-c-3.1.0/src/c/main.c:392:67: warning: passing argument 5 of ‘edgex_add_device’ from incompatible pointer type [-Wincompatible-pointer-types]
392 | edgex_add_device (driver->service, name, description, labels, profile, protocols, false, NULL, &error);
| ^~~~~~~
| |
| char *
In file included from /device-bacnet-c-3.1.0/src/c/main.c:12:
/usr/include/edgex/devices.h:44:25: note: expected ‘const devsdk_strings *’ but argument is of type ‘char *’
44 | const devsdk_strings *labels,
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/device-bacnet-c-3.1.0/src/c/main.c:392:76: warning: passing argument 6 of ‘edgex_add_device’ from incompatible pointer type [-Wincompatible-pointer-types]
392 | edgex_add_device (driver->service, name, description, labels, profile, protocols, false, NULL, &error);
| ^~~~~~~~~
| |
| devsdk_protocols *
In file included from /device-bacnet-c-3.1.0/src/c/main.c:12:
/usr/include/edgex/devices.h:45:15: note: expected ‘const char *’ but argument is of type ‘devsdk_protocols *’
45 | const char *profile_name,
| ~~~~~~~~~~~~^~~~~~~~~~~~
/device-bacnet-c-3.1.0/src/c/main.c:392:100: warning: passing argument 9 of ‘edgex_add_device’ from incompatible pointer type [-Wincompatible-pointer-types]
392 | edgex_add_device (driver->service, name, description, labels, profile, protocols, false, NULL, &error);
| ^~~~~~
| |
| devsdk_error *
In file included from /device-bacnet-c-3.1.0/src/c/main.c:12:
/usr/include/edgex/devices.h:48:28: note: expected ‘edgex_device_autoevents *’ but argument is of type ‘devsdk_error *’
48 | edgex_device_autoevents *autos,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/device-bacnet-c-3.1.0/src/c/main.c:392:5: error: too few arguments to function ‘edgex_add_device’
392 | edgex_add_device (driver->service, name, description, labels, profile, protocols, false, NULL, &error);
| ^~~~~~~~~~~~~~~~
In file included from /device-bacnet-c-3.1.0/src/c/main.c:12:
/usr/include/edgex/devices.h:38:6: note: declared here
38 | void edgex_add_device
| ^~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/device-bacnet-c.dir/build.make:76: CMakeFiles/device-bacnet-c.dir/main.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/device-bacnet-c.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
+ mkdir -p /device-bacnet-c-3.1.0/build/release/device-bacnet-mstp
+ cd /device-bacnet-c-3.1.0/build/release/device-bacnet-mstp
+ cmake -DDATALINK:STRING=BACDL_MSTP=1 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Release /device-bacnet-c-3.1.0/src/c
-- The C compiler identification is GNU 11.3.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found IOT: /opt/iotech/iot/1.5/lib/libiot.so
-- /opt/iotech/iot/1.5/include
-- Configuring done
-- Generating done
-- Build files have been written to: /device-bacnet-c-3.1.0/build/release/device-bacnet-mstp
+ make
+ tee release.log
[ 11%] Building C object CMakeFiles/bacnet_objects.dir/device-bacnet-c-3.1.0/bacnet-stack/demo/object/device-client.c.o
[ 22%] Linking C static library libbacnet_objects.a
[ 22%] Built target bacnet_objects
[ 33%] Building C object CMakeFiles/device-bacnet-c.dir/main.c.o
/device-bacnet-c-3.1.0/src/c/main.c: In function ‘bacnet_discover’:
/device-bacnet-c-3.1.0/src/c/main.c:392:59: warning: passing argument 4 of ‘edgex_add_device’ from incompatible pointer type [-Wincompatible-pointer-types]
392 | edgex_add_device (driver->service, name, description, labels, profile, protocols, false, NULL, &error);
| ^~~~~~
| |
| devsdk_strings *
In file included from /device-bacnet-c-3.1.0/src/c/main.c:12:
/usr/include/edgex/devices.h:43:15: note: expected ‘const char *’ but argument is of type ‘devsdk_strings *’
43 | const char *description,
| ~~~~~~~~~~~~^~~~~~~~~~~
/device-bacnet-c-3.1.0/src/c/main.c:392:67: warning: passing argument 5 of ‘edgex_add_device’ from incompatible pointer type [-Wincompatible-pointer-types]
392 | edgex_add_device (driver->service, name, description, labels, profile, protocols, false, NULL, &error);
| ^~~~~~~
| |
| char *
In file included from /device-bacnet-c-3.1.0/src/c/main.c:12:
/usr/include/edgex/devices.h:44:25: note: expected ‘const devsdk_strings *’ but argument is of type ‘char *’
44 | const devsdk_strings *labels,
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/device-bacnet-c-3.1.0/src/c/main.c:392:76: warning: passing argument 6 of ‘edgex_add_device’ from incompatible pointer type [-Wincompatible-pointer-types]
392 | edgex_add_device (driver->service, name, description, labels, profile, protocols, false, NULL, &error);
| ^~~~~~~~~
| |
| devsdk_protocols *
In file included from /device-bacnet-c-3.1.0/src/c/main.c:12:
/usr/include/edgex/devices.h:45:15: note: expected ‘const char *’ but argument is of type ‘devsdk_protocols *’
45 | const char *profile_name,
| ~~~~~~~~~~~~^~~~~~~~~~~~
/device-bacnet-c-3.1.0/src/c/main.c:392:100: warning: passing argument 9 of ‘edgex_add_device’ from incompatible pointer type [-Wincompatible-pointer-types]
392 | edgex_add_device (driver->service, name, description, labels, profile, protocols, false, NULL, &error);
| ^~~~~~
| |
| devsdk_error *
In file included from /device-bacnet-c-3.1.0/src/c/main.c:12:
/usr/include/edgex/devices.h:48:28: note: expected ‘edgex_device_autoevents *’ but argument is of type ‘devsdk_error *’
48 | edgex_device_autoevents *autos,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/device-bacnet-c-3.1.0/src/c/main.c:392:5: error: too few arguments to function ‘edgex_add_device’
392 | edgex_add_device (driver->service, name, description, labels, profile, protocols, false, NULL, &error);
| ^~~~~~~~~~~~~~~~
In file included from /device-bacnet-c-3.1.0/src/c/main.c:12:
/usr/include/edgex/devices.h:38:6: note: declared here
38 | void edgex_add_device
| ^~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/device-bacnet-c.dir/build.make:76: CMakeFiles/device-bacnet-c.dir/main.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/device-bacnet-c.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
[root@singlexxx device-bacnet-c-3.1.0]# pwd
/device-bacnet-c-3.1.0
[root@singlexxx device-bacnet-c-3.1.0]# ls
Attribution.txt GOVERNANCE.md LICENSE OWNERS.md VERSION build lib sample-profiles src
CHANGELOG.md Jenkinsfile Makefile README.md bacnet-stack docs res scripts
[root@singlexxx device-bacnet-c-3.1.0]# make
scripts/build.sh
++++ readlink -f scripts/build.sh
+++ dirname /device-bacnet-c-3.1.0/scripts/build.sh
++ dirname /device-bacnet-c-3.1.0/scripts
+ ROOT=/device-bacnet-c-3.1.0
+ echo /device-bacnet-c-3.1.0
/device-bacnet-c-3.1.0
+ cd /device-bacnet-c-3.1.0
+ '[' '!' -f /device-bacnet-c-3.1.0/lib/ip/libbacnet.a ']'
+ '[' '!' -f /device-bacnet-c-3.1.0/lib/mstp/libbacnet.a ']'
+ mkdir -p /device-bacnet-c-3.1.0/build/release/device-bacnet-ip
+ cd /device-bacnet-c-3.1.0/build/release/device-bacnet-ip
+ cmake -DDATALINK:STRING=BACDL_BIP=1 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Release /device-bacnet-c-3.1.0/src/c
-- /opt/iotech/iot/1.5/include
-- Configuring done
-- Generating done
-- Build files have been written to: /device-bacnet-c-3.1.0/build/release/device-bacnet-ip
+ make
+ tee release.log
make[1]: Entering directory '/device-bacnet-c-3.1.0/build/release/device-bacnet-ip'
make[2]: Entering directory '/device-bacnet-c-3.1.0/build/release/device-bacnet-ip'
make[3]: Entering directory '/device-bacnet-c-3.1.0/build/release/device-bacnet-ip'
Consolidate compiler generated dependencies of target bacnet_objects
make[3]: Leaving directory '/device-bacnet-c-3.1.0/build/release/device-bacnet-ip'
[ 22%] Built target bacnet_objects
make[3]: Entering directory '/device-bacnet-c-3.1.0/build/release/device-bacnet-ip'
Consolidate compiler generated dependencies of target device-bacnet-c
make[3]: Leaving directory '/device-bacnet-c-3.1.0/build/release/device-bacnet-ip'
make[3]: Entering directory '/device-bacnet-c-3.1.0/build/release/device-bacnet-ip'
[ 33%] Building C object CMakeFiles/device-bacnet-c.dir/main.c.o
/device-bacnet-c-3.1.0/src/c/main.c: In function ‘bacnet_discover’:
/device-bacnet-c-3.1.0/src/c/main.c:392:59: warning: passing argument 4 of ‘edgex_add_device’ from incompatible pointer type [-Wincompatible-pointer-types]
392 | edgex_add_device (driver->service, name, description, labels, profile, protocols, false, NULL, &error);
| ^~~~~~
| |
| devsdk_strings *
In file included from /device-bacnet-c-3.1.0/src/c/main.c:12:
/usr/include/edgex/devices.h:43:15: note: expected ‘const char *’ but argument is of type ‘devsdk_strings *’
43 | const char *description,
| ~~~~~~~~~~~~^~~~~~~~~~~
/device-bacnet-c-3.1.0/src/c/main.c:392:67: warning: passing argument 5 of ‘edgex_add_device’ from incompatible pointer type [-Wincompatible-pointer-types]
392 | edgex_add_device (driver->service, name, description, labels, profile, protocols, false, NULL, &error);
| ^~~~~~~
| |
| char *
In file included from /device-bacnet-c-3.1.0/src/c/main.c:12:
/usr/include/edgex/devices.h:44:25: note: expected ‘const devsdk_strings *’ but argument is of type ‘char *’
44 | const devsdk_strings *labels,
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/device-bacnet-c-3.1.0/src/c/main.c:392:76: warning: passing argument 6 of ‘edgex_add_device’ from incompatible pointer type [-Wincompatible-pointer-types]
392 | edgex_add_device (driver->service, name, description, labels, profile, protocols, false, NULL, &error);
| ^~~~~~~~~
| |
| devsdk_protocols *
In file included from /device-bacnet-c-3.1.0/src/c/main.c:12:
/usr/include/edgex/devices.h:45:15: note: expected ‘const char *’ but argument is of type ‘devsdk_protocols *’
45 | const char *profile_name,
| ~~~~~~~~~~~~^~~~~~~~~~~~
/device-bacnet-c-3.1.0/src/c/main.c:392:100: warning: passing argument 9 of ‘edgex_add_device’ from incompatible pointer type [-Wincompatible-pointer-types]
392 | edgex_add_device (driver->service, name, description, labels, profile, protocols, false, NULL, &error);
| ^~~~~~
| |
| devsdk_error *
In file included from /device-bacnet-c-3.1.0/src/c/main.c:12:
/usr/include/edgex/devices.h:48:28: note: expected ‘edgex_device_autoevents *’ but argument is of type ‘devsdk_error *’
48 | edgex_device_autoevents *autos,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/device-bacnet-c-3.1.0/src/c/main.c:392:5: error: too few arguments to function ‘edgex_add_device’
392 | edgex_add_device (driver->service, name, description, labels, profile, protocols, false, NULL, &error);
| ^~~~~~~~~~~~~~~~
In file included from /device-bacnet-c-3.1.0/src/c/main.c:12:
/usr/include/edgex/devices.h:38:6: note: declared here
38 | void edgex_add_device
| ^~~~~~~~~~~~~~~~
make[3]: *** [CMakeFiles/device-bacnet-c.dir/build.make:76: CMakeFiles/device-bacnet-c.dir/main.c.o] Error 1
make[3]: Leaving directory '/device-bacnet-c-3.1.0/build/release/device-bacnet-ip'
make[2]: *** [CMakeFiles/Makefile2:85: CMakeFiles/device-bacnet-c.dir/all] Error 2
make[2]: Leaving directory '/device-bacnet-c-3.1.0/build/release/device-bacnet-ip'
make[1]: *** [Makefile:91: all] Error 2
make[1]: Leaving directory '/device-bacnet-c-3.1.0/build/release/device-bacnet-ip'
+ mkdir -p /device-bacnet-c-3.1.0/build/release/device-bacnet-mstp
+ cd /device-bacnet-c-3.1.0/build/release/device-bacnet-mstp
+ cmake -DDATALINK:STRING=BACDL_MSTP=1 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Release /device-bacnet-c-3.1.0/src/c
-- /opt/iotech/iot/1.5/include
-- Configuring done
-- Generating done
-- Build files have been written to: /device-bacnet-c-3.1.0/build/release/device-bacnet-mstp
+ make
+ tee release.log
make[1]: Entering directory '/device-bacnet-c-3.1.0/build/release/device-bacnet-mstp'
make[2]: Entering directory '/device-bacnet-c-3.1.0/build/release/device-bacnet-mstp'
make[3]: Entering directory '/device-bacnet-c-3.1.0/build/release/device-bacnet-mstp'
Consolidate compiler generated dependencies of target bacnet_objects
make[3]: Leaving directory '/device-bacnet-c-3.1.0/build/release/device-bacnet-mstp'
[ 22%] Built target bacnet_objects
make[3]: Entering directory '/device-bacnet-c-3.1.0/build/release/device-bacnet-mstp'
Consolidate compiler generated dependencies of target device-bacnet-c
make[3]: Leaving directory '/device-bacnet-c-3.1.0/build/release/device-bacnet-mstp'
make[3]: Entering directory '/device-bacnet-c-3.1.0/build/release/device-bacnet-mstp'
[ 33%] Building C object CMakeFiles/device-bacnet-c.dir/main.c.o
/device-bacnet-c-3.1.0/src/c/main.c: In function ‘bacnet_discover’:
/device-bacnet-c-3.1.0/src/c/main.c:392:59: warning: passing argument 4 of ‘edgex_add_device’ from incompatible pointer type [-Wincompatible-pointer-types]
392 | edgex_add_device (driver->service, name, description, labels, profile, protocols, false, NULL, &error);
| ^~~~~~
| |
| devsdk_strings *
In file included from /device-bacnet-c-3.1.0/src/c/main.c:12:
/usr/include/edgex/devices.h:43:15: note: expected ‘const char *’ but argument is of type ‘devsdk_strings *’
43 | const char *description,
| ~~~~~~~~~~~~^~~~~~~~~~~
/device-bacnet-c-3.1.0/src/c/main.c:392:67: warning: passing argument 5 of ‘edgex_add_device’ from incompatible pointer type [-Wincompatible-pointer-types]
392 | edgex_add_device (driver->service, name, description, labels, profile, protocols, false, NULL, &error);
| ^~~~~~~
| |
| char *
In file included from /device-bacnet-c-3.1.0/src/c/main.c:12:
/usr/include/edgex/devices.h:44:25: note: expected ‘const devsdk_strings *’ but argument is of type ‘char *’
44 | const devsdk_strings *labels,
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/device-bacnet-c-3.1.0/src/c/main.c:392:76: warning: passing argument 6 of ‘edgex_add_device’ from incompatible pointer type [-Wincompatible-pointer-types]
392 | edgex_add_device (driver->service, name, description, labels, profile, protocols, false, NULL, &error);
| ^~~~~~~~~
| |
| devsdk_protocols *
In file included from /device-bacnet-c-3.1.0/src/c/main.c:12:
/usr/include/edgex/devices.h:45:15: note: expected ‘const char *’ but argument is of type ‘devsdk_protocols *’
45 | const char *profile_name,
| ~~~~~~~~~~~~^~~~~~~~~~~~
/device-bacnet-c-3.1.0/src/c/main.c:392:100: warning: passing argument 9 of ‘edgex_add_device’ from incompatible pointer type [-Wincompatible-pointer-types]
392 | edgex_add_device (driver->service, name, description, labels, profile, protocols, false, NULL, &error);
| ^~~~~~
| |
| devsdk_error *
In file included from /device-bacnet-c-3.1.0/src/c/main.c:12:
/usr/include/edgex/devices.h:48:28: note: expected ‘edgex_device_autoevents *’ but argument is of type ‘devsdk_error *’
48 | edgex_device_autoevents *autos,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/device-bacnet-c-3.1.0/src/c/main.c:392:5: error: too few arguments to function ‘edgex_add_device’
392 | edgex_add_device (driver->service, name, description, labels, profile, protocols, false, NULL, &error);
| ^~~~~~~~~~~~~~~~
In file included from /device-bacnet-c-3.1.0/src/c/main.c:12:
/usr/include/edgex/devices.h:38:6: note: declared here
38 | void edgex_add_device
| ^~~~~~~~~~~~~~~~
make[3]: *** [CMakeFiles/device-bacnet-c.dir/build.make:76: CMakeFiles/device-bacnet-c.dir/main.c.o] Error 1
make[3]: Leaving directory '/device-bacnet-c-3.1.0/build/release/device-bacnet-mstp'
make[2]: *** [CMakeFiles/Makefile2:85: CMakeFiles/device-bacnet-c.dir/all] Error 2
make[2]: Leaving directory '/device-bacnet-c-3.1.0/build/release/device-bacnet-mstp'
make[1]: *** [Makefile:91: all] Error 2
make[1]: Leaving directory '/device-bacnet-c-3.1.0/build/release/device-bacnet-mstp'
Yes, the previous version in which this bug was not present was: ....