News:

We really need your input in this questionnaire

Main Menu

Error libpcre32 on CentOS 6

Started by jfjunior, September 16, 2019, 03:10:15 AM

Previous topic - Next topic

jfjunior

Hello everybody

When I try to compile version 3 from source on CentOS 6 I get the following error

checking for pcre32_compile in -lpcre32... no
configure: error: libpcre32 is requred

Victor Kirhenshtein

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

jfjunior

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

Victor Kirhenshtein

I suspect that compiler shipped with CentOS 6 may be too old. My recommendation is to upgrade platform to CentOS 7.

Best regards,
Victor