Error libpcre32 on CentOS 6
-
-
Hi,
you have to manually install newer libpcre and configure it with libpcre32 enabled. You can use this version: https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz and configure it as following:
./configure --prefix=/opt/pcre --disable-static --disable-dependency-tracking --enable-pcre16 --enable-pcre32 --disable-cpp --enable-utf --enable-unicode-properties --disable-stack-for-recursion
It will install correct pcre into /opt/pcre (you can choose different prefix of course). Then add option --with-pcre=/opt/pcre to NetXMS configure.
Best regards,
Victor -
Hello Victor, thank you so much for your help.
Now the following error occurs during make:
../../../include/nms_util.h:1930: error: address of overloaded function with no contextual type information
../../../include/nms_util.h: In member function ‘EnumerationCallbackResult SynchronizedSharedHashMap<K, V>::forEach(EnumerationCallbackResult (*)(const K*, const V*, C*), C*) const [with C = std::pair<wchar_t*, wchar_t*>, K = unsigned int, V = Action]’:
actions.cpp:657: instantiated from here
../../../include/nms_util.h:1918: error: address of overloaded function with no contextual type information
../../../include/nms_util.h: In member function ‘EnumerationCallbackResult SynchronizedSharedHashMap<K, V>::forEach(EnumerationCallbackResult (*)(const K*, const V*, C*), C*) const [with C = wchar_t, K = unsigned int, V = Action]’:
actions.cpp:677: instantiated from here
../../../include/nms_util.h:1918: error: address of overloaded function with no contextual type information
../../../include/nms_util.h: In member function ‘EnumerationCallbackResult SynchronizedSharedHashMap<K, V>::forEach(EnumerationCallbackResult (*)(const K*, const V*, C*), C*) const [with C = SendActionData, K = unsigned int, V = Action]’:
actions.cpp:711: instantiated from here
../../../include/nms_util.h:1918: error: address of overloaded function with no contextual type information
../../../include/nms_util.h: In member function ‘const shared_ptr<U>& SynchronizedSharedHashMap<K, V>::findElement(bool (*)(const K*, const V*, C*), C*) const [with C = const uuid, K = unsigned int, V = Action]’:
actions.cpp:795: instantiated from here
../../../include/nms_util.h:1930: error: address of overloaded function with no contextual type information
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-format-truncation"
cc1plus: warning: unrecognized command line option "-Wno-unused-result"
make[4]: *** [libnxcore_la-actions.lo] Error 1
make[4]: Leaving directory `/usr/local/src/netxms-3.0.2258/src/server/core'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/netxms-3.0.2258/src/server'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/netxms-3.0.2258/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/netxms-3.0.2258'
make: *** [all] Error 2 -
I suspect that compiler shipped with CentOS 6 may be too old. My recommendation is to upgrade platform to CentOS 7.
Best regards,
Victor
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login