NetXMS Support Forum

Please login or register.

Login with username, password and session length

Author Topic: Error libpcre32 on CentOS 6  (Read 69 times)

jfjunior

  • Newbie
  • *
  • Posts: 2
    • View Profile
Error libpcre32 on CentOS 6
« on: September 16, 2019, 03:10:15 am »

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
Logged

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 6713
    • View Profile
Re: Error libpcre32 on CentOS 6
« Reply #1 on: September 16, 2019, 10:53:47 am »

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
Logged

jfjunior

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Error libpcre32 on CentOS 6
« Reply #2 on: September 17, 2019, 04:19:14 am »

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
Logged

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 6713
    • View Profile
Re: Error libpcre32 on CentOS 6
« Reply #3 on: September 17, 2019, 11:54:01 am »

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

Best regards,
Victor
Logged