Okay, so ripped apart the code and removed references to the fence_amt_ws
module. Configure worked. Make got really close, but not quite:
PYTHONPATH=/home/ec2-user/pcs/fence-agents/fence/agents/lib:/home/ec2-user/pcs/fence-agents/fence/agents/../lib:/home/ec2-user/pcs/fence-agents/fence/agents/lib
\
/usr/bin/python eps/fence_eps -o metadata >
eps/.fence_eps.8.tmp && \
xmllint --noout --relaxng
/home/ec2-user/pcs/fence-agents/fence/agents/lib/metadata.rng
eps/.fence_eps.8.tmp && \
xsltproc ../../fence/agents/lib/fence2man.xsl
eps/.fence_eps.8.tmp > eps/fence_eps.8
Traceback (most recent call last):
File "eps/fence_eps", line 14, in <module>
if sys.version_info.major > 2:
AttributeError: 'tuple' object has no attribute 'major'
make[3]: *** [eps/fence_eps.8] Error 1
make[3]: Leaving directory `/home/ec2-user/pcs/fence-agents/fence/agents'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/ec2-user/pcs/fence-agents/fence'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ec2-user/pcs/fence-agents'
make: *** [all] Error 2
Any ideas on this? Also, do you have any recommendations on making this into an
RPM?
--
[ jR ]
M: +1 (703) 628-2621
@: [email protected]<mailto:[email protected]>
there is no path to greatness; greatness is the path
From: Marek Grac <[email protected]>
Reply-To: Cluster Labs - All topics related to open-source clustering welcomed
<[email protected]>
Date: Wednesday, August 10, 2016 at 7:30 AM
To: Cluster Labs - All topics related to open-source clustering welcomed
<[email protected]>
Subject: Re: [ClusterLabs] Unable to Build fence-agents from Source on RHEL6
Hi,
* pywsman is required only for fence_amt_ws so if you don't need it, feel free
to remove this dependency (and agent)
* python2.6 (and RHEL6) is no longer a platform that we support at upstream. We
aim for python 2.7 and 3.x currently. But it might work on python2.6 (and
Oyvind accepts patches that fixes it)
* for RHEL6 you might want to use our branch 'RHEL6' that have to work with
python2.6. Maybe you won't get latest features but it should be enough for most
of the installations.
m,
On Tue, Aug 9, 2016 at 10:20 PM, Jason A Ramsey
<[email protected]<mailto:[email protected]>> wrote:
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<http://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<http://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 ]
@: [email protected]<mailto:[email protected]>
there is no path to greatness; greatness is the path
_______________________________________________
Users mailing list: [email protected]<mailto:[email protected]>
http://clusterlabs.org/mailman/listinfo/users
Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org
_______________________________________________
Users mailing list: [email protected]
http://clusterlabs.org/mailman/listinfo/users
Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org