[Pacemaker] error when build pacemaker 1.1.10-rc5 and corosync-2.3.0

Andrew Beekhof andrew at beekhof.net
Tue Jun 25 03:37:09 UTC 2013


On 25/06/2013, at 1:20 PM, Takatoshi MATSUO <matsuo.tak at gmail.com> wrote:

> 2013/6/25 Andrew Beekhof <andrew at beekhof.net>:
>> 
>> On 25/06/2013, at 12:12 PM, Takatoshi MATSUO <matsuo.tak at gmail.com> wrote:
>> 
>>> 2013/6/25 Andrew Beekhof <andrew at beekhof.net>:
>>>> 
>>>> On 24/06/2013, at 3:03 PM, Takatoshi MATSUO <matsuo.tak at gmail.com> wrote:
>>>> 
>>>>> Hi Andrew
>>>>> 
>>>>> 2013/6/24 Andrew Beekhof <andrew at beekhof.net>:
>>>>>> 
>>>>>> On 24/06/2013, at 12:46 PM, Takatoshi MATSUO <matsuo.tak at gmail.com> wrote:
>>>>>> 
>>>>>>> Hi Andrew
>>>>>>> 
>>>>>>> I received similar error using 6ea4b7e(HEAD) under RHEL6.
>>>>>>> ---------
>>>>>>> # export WITH='--without cman --without heartbeat'; make rpm-dep
>>>>>>> (snip)
>>>>>>> --> Finished Dependency Resolution
>>>>>>> Error: Package: clusterlib-3.0.12.1-32.el6.x86_64 (sl)
>>>>>>>        Requires: libconfdb.so.4(COROSYNC_CONFDB_1.0)(64bit)
>>>>>>> Error: Package: clusterlib-3.0.12.1-32.el6.x86_64 (sl)
>>>>>>>        Requires: libconfdb.so.4()(64bit)
>>>>>>> You could try using --skip-broken to work around the problem
>>>>>>> You could try running: rpm -Va --nofiles --nodigest
>>>>>>> make: *** [rpm-dep] Error 1
>>>>>>> ---------
>>>>>>> 
>>>>>>> So I removed all references to clusterlib-devel from pacemaker.spec.in
>>>>>>> as follows.
>>>>>>> ----
>>>>>>> # If you want to build for unofficial installs of corosync-2 on RHEL < 7
>>>>>>> # or fedora < 17, remove all references to clusterlib-devel below
>>>>>>> 
>>>>>>> #%if 0%{?fedora} > 0
>>>>>>> #%if 0%{?fedora} < 17
>>>>>>> #BuildRequires: clusterlib-devel
>>>>>>> #%endif
>>>>>>> #%endif
>>>>>>> #
>>>>>>> #%if 0%{?rhel} > 0
>>>>>>> #%if 0%{?rhel} < 7
>>>>>>> #BuildRequires: clusterlib-devel
>>>>>>> #%endif
>>>>>>> #%endif
>>>>>>> -----
>>>>>> 
>>>>>> The reason for this is that I'm trying to streamline the spec file.
>>>>>> It had become an unreadable mess trying to cater to everyone.
>>>>>> 
>>>>>> Since cman is available for RHEL6, have you thought about installing it from RH or CentOS?
>>>>> 
>>>>> Does cman require High Availability add-on license under RHEL6 ?
>>>> 
>>>> Yes, but there are other sources for compatible rpms :)
>>>> 
>>>>> 
>>>>>>> 
>>>>>>> But I received another error.
>>>>>>> -----
>>>>>>> # export WITH='--without cman --without heartbeat'; make rpm
>>>>>> 
>>>>>> The cman and heartbeat conditionals also went in the cleanup, so they'll be having no effect here.
>>>>> 
>>>>> How about not requiring clusterlib-devel when using "--without cman" ?
>>>>> Is it go against  streamlining the spec file ?
>>>> 
>>>> I guess I could put it back.
>>> 
>>> Thank you.
>>> I'll test building rpm after putting it back.
>> 
>> Try:  https://github.com/beekhof/pacemaker/commit/f9e9989
> 
> I succeed in built without clusterlib-devel.
> But "make rpm-dep" is failed. Is it no problem ?

No, you don't need to run it every time.
Just once on a new machine that doesn't have the needed packages installed.

Perhaps yum-builddep isn't as smart as it thinks it is.

> 
> # export WITH='--without cman'; make rpm-dep
> (snip)
> --> Finished Dependency Resolution
> Error: Package: clusterlib-3.0.12.1-32.el6.x86_64 (sl)
>           Requires: libconfdb.so.4(COROSYNC_CONFDB_1.0)(64bit)
> Error: Package: clusterlib-3.0.12.1-32.el6.x86_64 (sl)
>           Requires: libconfdb.so.4()(64bit)
> You could try using --skip-broken to work around the problem
> You could try running: rpm -Va --nofiles --nodigest
> make: *** [rpm-dep] Error 1
> 
>> 
>>> 
>>>>> 
>>>>>>> (snip)
>>>>>>> Processing files: pacemaker-debuginfo-1.1.10-1.el6.x86_64
>>>>>>> Checking for unpackaged file(s): /usr/lib/rpm/check-files
>>>>>>> /root/rpmbuild/BUILDROOT/pacemaker-1.1.10-1.fedora.x86_64
>>>>>>> error: Installed (but unpackaged) file(s) found:
>>>>>>> /usr/lib64/heartbeat/attrd
>>>>>>> /usr/lib64/heartbeat/cib
>>>>>>> /usr/lib64/heartbeat/crmd
>>>>>>> /usr/lib64/heartbeat/pengine
>>>>>>> /usr/lib64/heartbeat/stonithd
>>>>>>> /usr/sbin/crm_uuid
>>>>>> 
>>>>>> It looks like the machine you're building on has heartbeat installed which is confusing configure.
>>>>>> Any reason to not just remove it?
>>>>> 
>>>>> I just built Pacemaker 1.0.x which supports heartbeat under same
>>>>> machine a short time ago
>>>>> I succeed in built after removing it.
>>>>> Thank you for the advice,
>>>>> 
>>>>>>> 
>>>>>>> RPM build errors:
>>>>>>> Installed (but unpackaged) file(s) found:
>>>>>>> /usr/lib64/heartbeat/attrd
>>>>>>> /usr/lib64/heartbeat/cib
>>>>>>> /usr/lib64/heartbeat/crmd
>>>>>>> /usr/lib64/heartbeat/pengine
>>>>>>> /usr/lib64/heartbeat/stonithd
>>>>>>> /usr/sbin/crm_uuid
>>>>>>> make: *** [rpm] Error 1
>>>>>>> -----
>>>>>>> 
>>>>>>> Regards,
>>>>>>> Takatoshi MATSUO
>>>>>>> 
>>>>>>> 2013/6/21 Andrew Beekhof <andrew at beekhof.net>:
>>>>>>>> 
>>>>>>>> On 20/06/2013, at 11:22 PM, Andrey Groshev <greenx at yandex.ru> wrote:
>>>>>>>> 
>>>>>>>>> Hi, again.
>>>>>>>>> Still one week ago package normaly rebuilding.
>>>>>>>>> Today, I resive error:
>>>>>>>> 
>>>>>>>> Just remove all references to clusterlib-devel from pacemaker.spec.in
>>>>>>>> I'll see what I can do
>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> # make rpm-dep
>>>>>>>>> if [ x != x`which yum-builddep 2>/dev/null` ]; then                     \
>>>>>>>>>        echo "Installing with yum-builddep";                \
>>>>>>>>>        sudo yum-builddep pacemaker-fedora.spec;    \
>>>>>>>>>    elif [ x != x`which yum 2>/dev/null` ]; then                            \
>>>>>>>>>        echo -e "Installing:  python-curses python-xml  automake autoconf libtool pkgconfig python libtool-ltdl-devel  glib2-devel libxml2-devel libxslt-d
>>>>>>>>> evel libuuid-devel  pkgconfig python-devel gcc-c++ bzip2-devel pam-devel  resource-agents  libqb-devel   ncurses-devel openssl-devel libselinux-devel docbook-
>>>>>>>>> style-xsl  bison byacc flex help2man  systemd-devel   libgnutls-devel   gnutls-devel  clusterlib-devel  clusterlib-devel  corosynclib-devel  cluster-glue-libs
>>>>>>>>> -devel  publican inkscape asciidoc \n\n";       \
>>>>>>>>>        sudo yum install  python-curses python-xml  automake autoconf libtool pkgconfig python libtool-ltdl-devel  glib2-devel libxml2-devel libxslt-devel
>>>>>>>>> libuuid-devel  pkgconfig python-devel gcc-c++ bzip2-devel pam-devel  resource-agents  libqb-devel   ncurses-devel openssl-devel libselinux-devel docbook-styl
>>>>>>>>> e-xsl  bison byacc flex help2man  systemd-devel   libgnutls-devel   gnutls-devel  clusterlib-devel  clusterlib-devel  corosynclib-devel  cluster-glue-libs-dev
>>>>>>>>> el  publican inkscape asciidoc ;        \
>>>>>>>>>    elif [ x != x`which zypper` ]; then                     \
>>>>>>>>>        echo -e "Installing:  python-curses python-xml  automake autoconf libtool pkgconfig python libtool-ltdl-devel  glib2-devel libxml2-devel libxslt-d
>>>>>>>>> evel libuuid-devel  pkgconfig python-devel gcc-c++ bzip2-devel pam-devel  resource-agents  libqb-devel   ncurses-devel openssl-devel libselinux-devel docbook-
>>>>>>>>> style-xsl  bison byacc flex help2man  systemd-devel   libgnutls-devel   gnutls-devel  clusterlib-devel  clusterlib-devel  corosynclib-devel  cluster-glue-libs
>>>>>>>>> -devel  publican inkscape asciidoc \n\n";       \
>>>>>>>>>        sudo zypper install  python-curses python-xml  automake autoconf libtool pkgconfig python libtool-ltdl-devel  glib2-devel libxml2-devel libxslt-de
>>>>>>>>> vel libuuid-devel  pkgconfig python-devel gcc-c++ bzip2-devel pam-devel  resource-agents  libqb-devel   ncurses-devel openssl-devel libselinux-devel docbook-s
>>>>>>>>> tyle-xsl  bison byacc flex help2man  systemd-devel   libgnutls-devel   gnutls-devel  clusterlib-devel  clusterlib-devel  corosynclib-devel  cluster-glue-libs-
>>>>>>>>> devel  publican inkscape asciidoc ;\
>>>>>>>>>    else                                                    \
>>>>>>>>>        echo "I don't know how to install  python-curses python-xml  automake autoconf libtool pkgconfig python libtool-ltdl-devel  glib2-devel libxml2-de
>>>>>>>>> vel libxslt-devel libuuid-devel  pkgconfig python-devel gcc-c++ bzip2-devel pam-devel  resource-agents  libqb-devel   ncurses-devel openssl-devel libselinux-d
>>>>>>>>> evel docbook-style-xsl  bison byacc flex help2man  systemd-devel   libgnutls-devel   gnutls-devel  clusterlib-devel  clusterlib-devel  corosynclib-devel  clus
>>>>>>>>> ter-glue-libs-devel  publican inkscape asciidoc ";\
>>>>>>>>>    fi
>>>>>>>>> Installing with yum-builddep
>>>>>>>>> Loaded plugins: fastestmirror, rhnplugin
>>>>>>>>> Loading mirror speeds from cached hostfile
>>>>>>>>> Loading mirror speeds from cached hostfile
>>>>>>>>> Getting requirements for pacemaker-fedora.spec
>>>>>>>>> --> Already installed : automake-1.11.1-4.el6.noarch
>>>>>>>>> --> Already installed : autoconf-2.63-5.1.el6.noarch
>>>>>>>>> --> Already installed : libtool-2.2.6-15.5.el6.x86_64
>>>>>>>>> --> Already installed : 1:pkgconfig-0.23-9.1.el6.x86_64
>>>>>>>>> --> Already installed : python-2.6.6-36.el6.x86_64
>>>>>>>>> --> Already installed : libtool-ltdl-devel-2.2.6-15.5.el6.x86_64
>>>>>>>>> --> Already installed : glib2-devel-2.22.5-7.el6.x86_64
>>>>>>>>> --> Already installed : libxml2-devel-2.7.6-12.el6_4.1.x86_64
>>>>>>>>> --> Already installed : libxslt-devel-1.1.26-2.el6_3.1.x86_64
>>>>>>>>> --> Already installed : libuuid-devel-2.17.2-12.9.el6.x86_64
>>>>>>>>> --> Already installed : python-devel-2.6.6-36.el6.x86_64
>>>>>>>>> --> Already installed : gcc-c++-4.4.7-3.el6.x86_64
>>>>>>>>> --> Already installed : bzip2-devel-1.0.5-7.el6_0.x86_64
>>>>>>>>> --> Already installed : pam-devel-1.1.1-13.el6.x86_64
>>>>>>>>> --> Already installed : resource-agents-3.9.5-1.51.f7f96.el6.x86_64
>>>>>>>>> --> Already installed : libqb-devel-0.14.4-1.38.07c9.el6.x86_64
>>>>>>>>> --> Already installed : ncurses-devel-5.7-3.20090208.el6.x86_64
>>>>>>>>> --> Already installed : openssl-devel-1.0.0-27.el6_4.2.x86_64
>>>>>>>>> --> Already installed : libselinux-devel-2.0.94-5.3.el6.x86_64
>>>>>>>>> --> Already installed : docbook-style-xsl-1.75.2-6.el6.noarch
>>>>>>>>> --> Already installed : bison-2.4.1-5.el6.x86_64
>>>>>>>>> --> Already installed : byacc-1.9.20070509-7.el6.x86_64
>>>>>>>>> --> Already installed : flex-2.5.35-8.el6.x86_64
>>>>>>>>> --> Already installed : help2man-1.36.4-6.el6.noarch
>>>>>>>>> --> Already installed : gnutls-devel-2.8.5-10.el6_4.1.x86_64
>>>>>>>>> --> clusterlib-devel-3.0.12.1-49.el6.x86_64
>>>>>>>>> --> Already installed : corosynclib-devel-2.3.0-1.21.298a.el6.x86_64
>>>>>>>>> --> Already installed : publican-2.1-0.el6.x86_64
>>>>>>>>> --> Already installed : inkscape-0.47-6.el6.x86_64
>>>>>>>>> --> Already installed : asciidoc-8.4.5-4.1.el6.noarch
>>>>>>>>> There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
>>>>>>>>> --> Running transaction check
>>>>>>>>> ---> Package clusterlib-devel.x86_64 0:3.0.12.1-49.el6 will be installed
>>>>>>>>> --> Processing Dependency: clusterlib = 3.0.12.1-49.el6 for package: clusterlib-devel-3.0.12.1-49.el6.x86_64
>>>>>>>>> --> Processing Dependency: libdlm_lt.so.3()(64bit) for package: clusterlib-devel-3.0.12.1-49.el6.x86_64
>>>>>>>>> --> Processing Dependency: libfence.so.4()(64bit) for package: clusterlib-devel-3.0.12.1-49.el6.x86_64
>>>>>>>>> --> Processing Dependency: libccs.so.3()(64bit) for package: clusterlib-devel-3.0.12.1-49.el6.x86_64
>>>>>>>>> --> Processing Dependency: libdlmcontrol.so.3()(64bit) for package: clusterlib-devel-3.0.12.1-49.el6.x86_64
>>>>>>>>> --> Processing Dependency: liblogthread.so.3()(64bit) for package: clusterlib-devel-3.0.12.1-49.el6.x86_64
>>>>>>>>> --> Processing Dependency: libfenced.so.3()(64bit) for package: clusterlib-devel-3.0.12.1-49.el6.x86_64
>>>>>>>>> --> Processing Dependency: libdlm.so.3()(64bit) for package: clusterlib-devel-3.0.12.1-49.el6.x86_64
>>>>>>>>> --> Processing Dependency: libcman.so.3()(64bit) for package: clusterlib-devel-3.0.12.1-49.el6.x86_64
>>>>>>>>> --> Running transaction check
>>>>>>>>> ---> Package clusterlib.x86_64 0:3.0.12.1-49.el6 will be installed
>>>>>>>>> --> Processing Dependency: libconfdb.so.4(COROSYNC_CONFDB_1.0)(64bit) for package: clusterlib-3.0.12.1-49.el6.x86_64
>>>>>>>>> --> Processing Dependency: libconfdb.so.4()(64bit) for package: clusterlib-3.0.12.1-49.el6.x86_64
>>>>>>>>> --> Finished Dependency Resolution
>>>>>>>>> Error: Package: clusterlib-3.0.12.1-49.el6.x86_64 (centos-base6-x64)
>>>>>>>>>       Requires: libconfdb.so.4()(64bit)
>>>>>>>>>       Available: corosynclib-1.4.1-7.el6.x86_64 (centos-base6-x64)
>>>>>>>>>           libconfdb.so.4()(64bit)
>>>>>>>>>       Available: corosynclib-1.4.1-7.el6_3.1.x86_64 (centos-base6-x64)
>>>>>>>>>           libconfdb.so.4()(64bit)
>>>>>>>>>       Available: corosynclib-1.4.1-15.el6.x86_64 (centos-base6-x64)
>>>>>>>>>           libconfdb.so.4()(64bit)
>>>>>>>>>       Available: corosynclib-1.4.1-15.el6_4.1.x86_64 (centos-base6-x64)
>>>>>>>>>           libconfdb.so.4()(64bit)
>>>>>>>>>       Available: corosynclib-1.4.3-26.2.x86_64 (ha-clustering)
>>>>>>>>>           libconfdb.so.4()(64bit)
>>>>>>>>>       Available: corosynclib-1.4.5-35.1.x86_64 (ha-clustering)
>>>>>>>>>           libconfdb.so.4()(64bit)
>>>>>>>>>       Installed: corosynclib-2.3.0-1.21.298a.el6.x86_64 (installed)
>>>>>>>>>           Not found
>>>>>>>>> Error: Package: clusterlib-3.0.12.1-49.el6.x86_64 (centos-base6-x64)
>>>>>>>>>       Requires: libconfdb.so.4(COROSYNC_CONFDB_1.0)(64bit)
>>>>>>>>>       Available: corosynclib-1.4.1-7.el6.x86_64 (centos-base6-x64)
>>>>>>>>>           libconfdb.so.4(COROSYNC_CONFDB_1.0)(64bit)
>>>>>>>>>       Available: corosynclib-1.4.1-7.el6_3.1.x86_64 (centos-base6-x64)
>>>>>>>>>           libconfdb.so.4(COROSYNC_CONFDB_1.0)(64bit)
>>>>>>>>>       Available: corosynclib-1.4.1-15.el6.x86_64 (centos-base6-x64)
>>>>>>>>>           libconfdb.so.4(COROSYNC_CONFDB_1.0)(64bit)
>>>>>>>>>       Available: corosynclib-1.4.1-15.el6_4.1.x86_64 (centos-base6-x64)
>>>>>>>>>           libconfdb.so.4(COROSYNC_CONFDB_1.0)(64bit)
>>>>>>>>>       Available: corosynclib-1.4.3-26.2.x86_64 (ha-clustering)
>>>>>>>>>           libconfdb.so.4(COROSYNC_CONFDB_1.0)(64bit)
>>>>>>>>>       Available: corosynclib-1.4.5-35.1.x86_64 (ha-clustering)
>>>>>>>>>           libconfdb.so.4(COROSYNC_CONFDB_1.0)(64bit)
>>>>>>>>>       Installed: corosynclib-2.3.0-1.21.298a.el6.x86_64 (installed)
>>>>>>>>>           Not found
>>>>>>>>> You could try using --skip-broken to work around the problem
>>>>>>>>> You could try running: rpm -Va --nofiles --nodigest
>>>>>>>>> make: *** [rpm-dep] Error 1
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> As I understand, make want install clusterlib-devel.
>>>>>>>>> But this package depends from libconfdb.so.4.
>>>>>>>>> But this library exist only in corosync-1.x!
>>>>>>>>> But I can't install the system in two different versions corosync.
>>>>>>>>> Unfortunately, this week a lot of things happened.
>>>>>>>>> And I can't remember how to create a rpm and that changed this week.
>>>>>>>>> There is a way to remove this dependency?
>>>>>>>>> I still want to experiment with a pure corosync-2.x.
>>>>>>>>> Otherwise it turns out that the only working version: corosync-1.4+cman.
>>>>> 
>>>>> _______________________________________________
>>>>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>>>>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>>>> 
>>>>> Project Home: http://www.clusterlabs.org
>>>>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>>>>> Bugs: http://bugs.clusterlabs.org
>>>> 
>>>> 
>>>> _______________________________________________
>>>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>>>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>>> 
>>>> Project Home: http://www.clusterlabs.org
>>>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>>>> Bugs: http://bugs.clusterlabs.org
>>> 
>>> _______________________________________________
>>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>> 
>>> Project Home: http://www.clusterlabs.org
>>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>>> Bugs: http://bugs.clusterlabs.org
>> 
>> 
>> _______________________________________________
>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>> 
>> Project Home: http://www.clusterlabs.org
>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>> Bugs: http://bugs.clusterlabs.org
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org





More information about the Pacemaker mailing list