Search Engine: Elastic

Article ID: 133281, created on Oct 11, 2018, last review on Oct 11, 2018

  • Applies to:
  • Business Automation 7.4


C++ Payment plugin cannot be compliled on RHEL 7, waf configure gives error:

Checking for library time_tool           : yes
Checking for TimeTool header             : /root/EcommercePlugins/MYTEST/wscript:77: error: not found

from config.log the following can be found:

        ['/usr/bin/g++', '-m64', '-fPIC', '-Wall', '-g', '-O0', '-Wextra', '-Wno-unused-parameter', '-Wnon-virtual-dtor', '-pthread', '-DBOOST_ALL_DYN_LINK', '-DBOOST_TEST_DYN_LINK', '-Idefault', '-I../../../../../../usr/local/platform/include', '-I../../../../../../usr/local/stellart/include', '-I../../../../../../usr/include/libxml2', '-I../../../../../../usr/local/bm/include/TimeTool', '-I../../../../../../usr/include', '-I/usr/include', '-I/usr/local/platform/include', '-I/usr/local/stellart/include', '-I/usr/include/libxml2', '-I/usr/local/bm/include/TimeTool', '../timetooltest.cpp', '-c', '-o', 'default/timetooltest_1.o']
command returned 'Traceback (most recent call last):\n File "/usr/local/platform/share/wafadmin/Tools/", line 379, in run_c_code\n bld.compile()\n File "/usr/local/platform/share/wafadmin/", line 171, in compile\n raise BuildError(self,self.task_manager.tasks_done)\nBuildError: Build failed: -> task failed (err #1): \n\t
{task: cxx timetooltest.cpp -> timetooltest_1.o} 


This behavior is caused by software-related issue #PBA-86216 (Unable to rebuild custom payment C++ plugin).


Please contact your Technical Account Manager or Pooled Technical Associates team ( to trace the status of the #PBA-86216.

The following workaround should be applied to fix the issue:

  1. Add C++11 support in TimeTool. Open file /usr/local/bm/share/waftools/ on host where plugin is being recompiled. Find the following lines:

    e.LIB_TIMETOOL = ['time_tool']
    e.CPPPATH_TIMETOOL = [os.path.join(e.CPPPATH_PBASDK[0], 'TimeTool')]
  2. Add line e.CXXFLAGS += ['-std=c++11'] so as result lines should look like:

    e.LIB_TIMETOOL = ['time_tool']
    e.CPPPATH_TIMETOOL = [os.path.join(e.CPPPATH_PBASDK[0], 'TimeTool')]
    e.CXXFLAGS += ['-std=c++11'] ----------------------->added line
  3. Remove LockHint from BM.lsa file. Open file /usr/local/bm/share/EcommerceSDK/BM/BM.lsa for editing and find the following lines:

    embed "ATTRIBUTE.lsa"
    embed "CEPREPORT.lsa"
    embed "GDPR.lsa"
    embed "lockHints/LOCKHINT.lsa" ------------------------------->should be removed
  4. Remove line embed "lockHints/LOCKHINT.lsa".As a result lines should look like:

    embed "ATTRIBUTE.lsa"
    embed "CEPREPORT.lsa"
    embed "GDPR.lsa
  5. Find line LockHint access granted all; in the same file (/usr/local/bm/share/EcommerceSDK/BM/BM.lsa) and remove it.

  6. Save changes and try to run waf configure command ones more.

198398b282069eaf2d94a6af87dcb3ff caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 67bf0c33402940a92c4c607f18ded5c9 b2c3b33425dfc50c7d41a2efaa7f84f3

Email subscription for changes to this article
Save as PDF