edgexfoundry / device-bacnet-c

Owner: Device WG
Apache License 2.0
12 stars 15 forks source link

Compilation error, compilation is not reproducible. #92

Open xuegege5290 opened 6 months ago

xuegege5290 commented 6 months ago

🐞 Bug Report

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'

Affected Services [REQUIRED]

The issue is located in: ### Is this a regression? Yes, the previous version in which this bug was not present was: .... ### Description and Minimal Reproduction [**REQUIRED**] ## 🔥 Exception or Error



🌍 Your Environment

Deployment Environment: ubuntu or centos meet the same error: ubuntu:

root@singlexxx:/home/syx/go/src/device-bacnet-c-3.0.0# uname -a
Linux singlexxx 5.4.0-177-generic #197-Ubuntu SMP Thu Mar 28 22:45:47 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
root@singlexxx:/home/syx/go/src/device-bacnet-c-3.0.0# cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

centos:

[root@localhost ~]# cat /etc/os-release 
NAME="CentOS Stream"
VERSION="9"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="9"
PLATFORM_ID="platform:el9"
PRETTY_NAME="CentOS Stream 9"
ANSI_COLOR="0;31"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:centos:centos:9"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 9"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"
[root@localhost ~]# uname -a
Linux localhost.localdomain 5.14.0-171.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Oct 1 12:56:27 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

EdgeX Version [REQUIRED]:

Anything else relevant?

M0hanrajp commented 2 months ago

Before executing ./scripts/build.sh have you exported installed device-sdk-c path to environment variable CSDK_DIR ?

Building the BACnet Device Service Before building the BACnet device service, please ensure that you have the EdgeX C-SDK installed and make sure that the current directory is the BACnet device service directory (device-bacnet-c).

Please install device-sdk-c & after installing please export the installed path to CSDK_DIR in device-bacnet-c directory something like:

~/device-bacnet-c$ export CSDK_DIR= path/to/your/device-sdk-c/build/release/_CPack_Packages/Linux/TGZ/csdk-3.x.x