[ClusterLabs] Unable to Build fence-agents from Source on RHEL6

Jason A Ramsey jason at eramsey.org
Tue Aug 9 16:20:10 EDT 2016


So, I’ve managed to wade through the majority of dependency hell issues I’ve encountered trying to get RPMs built of Pacemaker and its ancillary packages. That is, of course, with the exception of the fence-agents source tree (grabbed from github). Autogen.sh works great, but when it comes to configure’ing the tree, it bombs out on a missing pywsman module. Great, so I need to install that. pip install pywsman doesn’t work because of missing openwsman libraries, etc. so I go ahead and install the packages I’m pretty sure I need using yum (openwsman-client, openwsman-server, libwsman). pip install still craps out, so I figure out that the build is looking for the openwsman headers. Cool, find (it’s not in the default yum repos) libwsman-devel, which ends up requiring sblim-sfcc-devel and probably some other stuff I can’t remember any more because my brain is mostly jelly at this point… Anyway, finally get the libwsman-devel rpm. Yay! Everything should work now, right? Wrong. Here’s the output I now get out of pip install pywsman:

< stupiderrormessage >

# pip install pywsman
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
Collecting pywsman
/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Using cached pywsman-2.5.2-1.tar.gz
Building wheels for collected packages: pywsman
  Running setup.py bdist_wheel for pywsman ... error
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-bvG1Jf/pywsman/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmp3R7Zz5pip-wheel- --python-tag cp26:
  No version.i.in file found -- Building from sdist.
  /usr/lib/python2.6/site-packages/setuptools/dist.py:364: UserWarning: Normalizing '2.5.2-1' to '2.5.2.post1'
    normalized_version,
  running bdist_wheel
  running build
  running build_ext
  building '_pywsman' extension
  swigging openwsman.i to openwsman_wrap.c
  swig -python -I/tmp/pip-build-bvG1Jf/pywsman -I/usr/include/openwsman -features autodoc -o openwsman_wrap.c openwsman.i
  wsman-client.i:44: Warning(504): Function _WsManClient must have a return type.
  wsman-client.i:61: Warning(504): Function _WsManClient must have a return type.
  creating build
  creating build/temp.linux-x86_64-2.6
  gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/tmp/pip-build-bvG1Jf/pywsman -I/usr/include/openwsman -I/usr/include/python2.6 -c openwsman.c -o build/temp.linux-x86_64-2.6/openwsman.o
  gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/tmp/pip-build-bvG1Jf/pywsman -I/usr/include/openwsman -I/usr/include/python2.6 -c openwsman_wrap.c -o build/temp.linux-x86_64-2.6/openwsman_wrap.o
  openwsman_wrap.c: In function ‘_WsXmlDoc_string’:
  openwsman_wrap.c:3225: warning: implicit declaration of function ‘ws_xml_dump_memory_node_tree_enc’
  openwsman_wrap.c: In function ‘__WsXmlNode_size’:
  openwsman_wrap.c:3487: warning: implicit declaration of function ‘ws_xml_get_child_count_by_qname’
  openwsman_wrap.c: In function ‘epr_t_cmp’:
  openwsman_wrap.c:3550: warning: passing argument 2 of ‘epr_cmp’ discards qualifiers from pointer target type
  /usr/include/openwsman/wsman-epr.h:163: note: expected ‘struct epr_t *’ but argument is of type ‘const struct epr_t *’
  openwsman_wrap.c: In function ‘epr_t_string’:
  openwsman_wrap.c:3556: warning: implicit declaration of function ‘epr_to_string’
  openwsman_wrap.c:3556: warning: return makes pointer from integer without a cast
  openwsman_wrap.c: In function ‘epr_t_selector_names’:
  openwsman_wrap.c:3575: error: ‘key_value_t’ undeclared (first use in this function)
  openwsman_wrap.c:3575: error: (Each undeclared identifier is reported only once
  openwsman_wrap.c:3575: error: for each function it appears in.)
  openwsman_wrap.c:3575: error: ‘p’ undeclared (first use in this function)
  openwsman_wrap.c: In function ‘_WS_CONTEXT_parse_enum_request’:
  openwsman_wrap.c:3821: error: too many arguments to function ‘wsman_parse_enum_request’
  openwsman_wrap.c: In function ‘WsManTransport_get_username’:
  openwsman_wrap.c:3917: warning: implicit declaration of function ‘wsman_transport_get_userName’
  openwsman_wrap.c:3917: warning: return makes pointer from integer without a cast
  openwsman_wrap.c: In function ‘WsManTransport_get_password’:
  openwsman_wrap.c:3923: warning: implicit declaration of function ‘wsman_transport_get_password’
  openwsman_wrap.c:3923: warning: return makes pointer from integer without a cast
  openwsman_wrap.c: In function ‘WsManTransport_get_proxy_username’:
  openwsman_wrap.c:3929: warning: implicit declaration of function ‘wsman_transport_get_proxy_username’
  openwsman_wrap.c:3929: warning: return makes pointer from integer without a cast
  openwsman_wrap.c: In function ‘WsManTransport_get_proxy_password’:
  openwsman_wrap.c:3935: warning: implicit declaration of function ‘wsman_transport_get_proxy_password’
  openwsman_wrap.c:3935: warning: return makes pointer from integer without a cast
  openwsman_wrap.c: In function ‘client_opt_t_get_flags’:
  openwsman_wrap.c:4063: warning: implicit declaration of function ‘wsmc_get_action_option’
  openwsman_wrap.c: In function ‘client_opt_t_set_fragment’:
  openwsman_wrap.c:4090: warning: implicit declaration of function ‘wsmc_set_fragment’
  openwsman_wrap.c: In function ‘client_opt_t_set_cim_namespace’:
  openwsman_wrap.c:4096: warning: implicit declaration of function ‘wsmc_set_cim_ns’
  openwsman_wrap.c: In function ‘client_opt_t_set_reference’:
 openwsman_wrap.c:4102: warning: implicit declaration of function ‘wsmc_set_reference’
  openwsman_wrap.c: In function ‘client_opt_t_add_option’:
  openwsman_wrap.c:4109: warning: implicit declaration of function ‘wsmc_add_option’
  openwsman_wrap.c: In function ‘client_opt_t_add_property__SWIG_1’:
  openwsman_wrap.c:4118: warning: implicit declaration of function ‘wsmc_add_property_epr’
  openwsman_wrap.c: In function ‘init_pywsman’:
  openwsman_wrap.c:14963: error: ‘_WS_PASS_AUTH’ undeclared (first use in this function)
  error: command 'gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for pywsman
  Running setup.py clean for pywsman
Failed to build pywsman
Installing collected packages: pywsman
  Running setup.py install for pywsman ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-bvG1Jf/pywsman/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Od8BWz-record/install-record.txt --single-version-externally-managed --compile:
    No version.i.in file found -- Building from sdist.
    /usr/lib/python2.6/site-packages/setuptools/dist.py:364: UserWarning: Normalizing '2.5.2-1' to '2.5.2.post1'
      normalized_version,
    running install
    running build
    running build_ext
    building '_pywsman' extension
    swigging openwsman.i to openwsman_wrap.c
    swig -python -I/tmp/pip-build-bvG1Jf/pywsman -I/usr/include/openwsman -features autodoc -o openwsman_wrap.c openwsman.i
    wsman-client.i:44: Warning(504): Function _WsManClient must have a return type.
    wsman-client.i:61: Warning(504): Function _WsManClient must have a return type.
    creating build
    creating build/temp.linux-x86_64-2.6
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/tmp/pip-build-bvG1Jf/pywsman -I/usr/include/openwsman -I/usr/include/python2.6 -c openwsman.c -o build/temp.linux-x86_64-2.6/openwsman.o
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/tmp/pip-build-bvG1Jf/pywsman -I/usr/include/openwsman -I/usr/include/python2.6 -c openwsman_wrap.c -o build/temp.linux-x86_64-2.6/openwsman_wrap.o
    openwsman_wrap.c: In function ‘_WsXmlDoc_string’:
    openwsman_wrap.c:3225: warning: implicit declaration of function ‘ws_xml_dump_memory_node_tree_enc’
    openwsman_wrap.c: In function ‘__WsXmlNode_size’:
    openwsman_wrap.c:3487: warning: implicit declaration of function ‘ws_xml_get_child_count_by_qname’
    openwsman_wrap.c: In function ‘epr_t_cmp’:
    openwsman_wrap.c:3550: warning: passing argument 2 of ‘epr_cmp’ discards qualifiers from pointer target type
    /usr/include/openwsman/wsman-epr.h:163: note: expected ‘struct epr_t *’ but argument is of type ‘const struct epr_t *’
    openwsman_wrap.c: In function ‘epr_t_string’:
    openwsman_wrap.c:3556: warning: implicit declaration of function ‘epr_to_string’
    openwsman_wrap.c:3556: warning: return makes pointer from integer without a cast
    openwsman_wrap.c: In function ‘epr_t_selector_names’:
    openwsman_wrap.c:3575: error: ‘key_value_t’ undeclared (first use in this function)
    openwsman_wrap.c:3575: error: (Each undeclared identifier is reported only once
    openwsman_wrap.c:3575: error: for each function it appears in.)
    openwsman_wrap.c:3575: error: ‘p’ undeclared (first use in this function)
    openwsman_wrap.c: In function ‘_WS_CONTEXT_parse_enum_request’:
    openwsman_wrap.c:3821: error: too many arguments to function ‘wsman_parse_enum_request’
    openwsman_wrap.c: In function ‘WsManTransport_get_username’:
    openwsman_wrap.c:3917: warning: implicit declaration of function ‘wsman_transport_get_userName’
    openwsman_wrap.c:3917: warning: return makes pointer from integer without a cast
    openwsman_wrap.c: In function ‘WsManTransport_get_password’:
    openwsman_wrap.c:3923: warning: implicit declaration of function ‘wsman_transport_get_password’
    openwsman_wrap.c:3923: warning: return makes pointer from integer without a cast
    openwsman_wrap.c: In function ‘WsManTransport_get_proxy_username’:
    openwsman_wrap.c:3929: warning: implicit declaration of function ‘wsman_transport_get_proxy_username’
    openwsman_wrap.c:3929: warning: return makes pointer from integer without a cast
    openwsman_wrap.c: In function ‘WsManTransport_get_proxy_password’:
    openwsman_wrap.c:3935: warning: implicit declaration of function ‘wsman_transport_get_proxy_password’
    openwsman_wrap.c:3935: warning: return makes pointer from integer without a cast
    openwsman_wrap.c: In function ‘client_opt_t_get_flags’:
    openwsman_wrap.c:4063: warning: implicit declaration of function ‘wsmc_get_action_option’
    openwsman_wrap.c: In function ‘client_opt_t_set_fragment’:
    openwsman_wrap.c:4090: warning: implicit declaration of function ‘wsmc_set_fragment’
    openwsman_wrap.c: In function ‘client_opt_t_set_cim_namespace’:
    openwsman_wrap.c:4096: warning: implicit declaration of function ‘wsmc_set_cim_ns’
    openwsman_wrap.c: In function ‘client_opt_t_set_reference’:
    openwsman_wrap.c:4102: warning: implicit declaration of function ‘wsmc_set_reference’
    openwsman_wrap.c: In function ‘client_opt_t_add_option’:
    openwsman_wrap.c:4109: warning: implicit declaration of function ‘wsmc_add_option’
    openwsman_wrap.c: In function ‘client_opt_t_add_property__SWIG_1’:
    openwsman_wrap.c:4118: warning: implicit declaration of function ‘wsmc_add_property_epr’
    openwsman_wrap.c: In function ‘init_pywsman’:
    openwsman_wrap.c:14963: error: ‘_WS_PASS_AUTH’ undeclared (first use in this function)
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-bvG1Jf/pywsman/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Od8BWz-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-bvG1Jf/pywsman/

< /stupiderrormessage >

Now, I realize that this isn’t a python/openwsman support list, but I was hoping that perhaps someone had run across this or could guide me toward a solution. Oh, and I should mention that I did also try installing the openwsman-python.x86_64 rpm, but the fence-agents configure script doesn’t seem to recognize that the package has been installed. Thanks in advance!

--

[ jR ]

  @: jason at eramsey.org<mailto:jason at eramsey.org>

  there is no path to greatness; greatness is the path
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/users/attachments/20160809/31849d23/attachment-0002.html>


More information about the Users mailing list