Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Unable to build the sdk
February 10, 2021
16:48, EET
Avatar
UlrichFM
Member
Members
Forum Posts: 4
Member Since:
February 10, 2021
sp_UserOfflineSmall Offline

Hello,
Please i get an error coming from the sdk files and don’t know the cause.
I am using the ansi C client SDK on linux and i make the command ./buildExamples.sh on the sdk repertory but it did not go as planned because an error occured.
I think I have done what is supposed to be done.
Can you explain to me what’s going wrong and how to fix this error?

//———————————————————————————————————————-

No config was set – setting up the config to default build CONFIGURATIONS=Debug Release
Setting up default to static libraries BUILD_SHARED_LIBS=ON
— The C compiler identification is GNU 4.8.5
— Check for working C compiler: /usr/bin/gcc
— Check for working C compiler: /usr/bin/gcc — works
— Detecting C compiler ABI info
— Detecting C compiler ABI info – done
— Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version “1.0.2k”)
— Detected GCC version: 4.8.5
CMake Error at /cmake/ConfigureCompiler.cmake:285 (cmake_dependent_option):
Syntax error in cmake code at

/sdk/cmake/ConfigureCompiler.cmake:288

when parsing string

CMAKE_BUILD_TYPE STREQUAL Debug AND \
NOT ENABLE_${COMPILER_NAME}_SANITIZER_ADDRESS AND \
NOT ENABLE_${COMPILER_NAME}_SANITIZER_THREAD AND \
NOT ENABLE_${COMPILER_NAME}_SANITIZER_MEMORY AND \
NOT ENABLE_${COMPILER_NAME}_SANITIZER_UB AND \
NOT ENABLE_${COMPILER_NAME}_SANITIZER_INTEGER AND \
NOT ENABLE_${COMPILER_NAME}_SANITIZER_UINT_OVERFLOW AND \
NOT ENABLE_${COMPILER_NAME}_PROFILING AND \
NOT ENABLE_${COMPILER_NAME}_LTO

syntax error, unexpected cal_SYMBOL, expecting $end (82)
Call Stack (most recent call first):
/sdk/cmake/ConfigureCompiler.cmake:439 (configure_warnings)
CMakeLists.txt:16 (include)

— Configuring incomplete, errors occurred!
See also “/opt/magma/main_opc/PrjStandard/SiteStd/convCom/sdk/buildExamplesDebug/oversampling/CMakeFiles/CMakeOutput.log”.
cmake failed.

//———————————————————————————————————————————————————————–

February 11, 2021
16:55, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 865
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

It looks like the changes to the default configuration were made in a bit incorrect manner.

Any changes to the default configuration should be made through CMake curses interface as detailed in the documentation available at:
https://documentation.unified-automation.com/uasdkc/1.9.0/html/CompileSdkLinux.html

February 16, 2021
11:47, EET
Avatar
UlrichFM
Member
Members
Forum Posts: 4
Member Since:
February 10, 2021
sp_UserOfflineSmall Offline

Hello, i have know a new error.
I included all the libs needed but i still have this error :

//———————————————————————————————————
undefined reference to `SetupClientPKIInfrastructure’
//———————————————————————————————————

Please do you know which library contains this function ? I think i don’t have it can you forward it to me or send me a link to where i could download it.

Thank’s

February 17, 2021
17:04, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 865
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

‘SetupClientPKIInfrastructure’ is part of the example code.
It is defined in sdk\examples\common\common_util.c

February 17, 2021
17:19, EET
Avatar
UlrichFM
Member
Members
Forum Posts: 4
Member Since:
February 10, 2021
sp_UserOfflineSmall Offline

ok I will try to fix it

Also I don’t know why but my subscriptions are sudently not working .
When i create my monitored items, I have an error after some call back of the function.
The error is :

//———————————————————————————————————
Segmentation fault (core dumped)
//———————————————————————————————————

Please do yo know what is the cause ?

February 17, 2021
17:23, EET
Avatar
UlrichFM
Member
Members
Forum Posts: 4
Member Since:
February 10, 2021
sp_UserOfflineSmall Offline

Excuse, I made a mistake the cause was from my nodeID which was not existing.

February 17, 2021
21:01, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 865
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Yeah, segmentation fault is usually a result of incorrect memory access, meaning one of your pointers in not initialised or something like that.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 267

Currently Online:
8 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 109

pramanj: 86

ibrahim: 71

kapsl: 57

gjevremovic: 49

TimK: 41

fred: 41

Fransua33: 39

Xavier: 34

Thomas Reuther: 33

Member Stats:

Guest Posters: 0

Members: 1221

Moderators: 15

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1089

Posts: 4591

Newest Members:

aravindj, Deniz.Turan, DenizT, igonzalez, lavonwinters963, felicapurdy9, shoshanastopford, UlrichFM, majaba, Yash_Joshi_Pratiti

Moderators: Jouni Aro: 865, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 620, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Teppo Uimonen: 21, Markus Johansson: 30, Matti Siponen: 92, Lusetti: 0

Administrators: admin: 1