LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-05-2019, 10:09 AM   #1
1337_powerslacker
Member
 
Registered: Nov 2009
Distribution: Slackware64-current
Posts: 741
Blog Entries: 7

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Cluster software - pacemaker compile not successful


As some of you may be aware, I have assembled several Mac Pro 1,1 computers inexpensively to use as my cluster. As I explained in my series of blog posts, I was primarily using it for icecream. Now I have begun to think about expanding its utility, and perhaps using it for practice in maintaining my own small Linux-HA (high-availability) cluster, as I am interested in becoming a Linux sysadmin, should such a job become available in the near future; such skills would be a definite boon, among other skills.

The problem, as alluded to in the title, is that pacemaker is not compiling successfully. I have already compiled several dependency packages, and there was no problem whatsoever. However, this was not the case for pacemaker. This is the error that was displayed:

Code:
/bin/sh: line 1:  5865 Aborted                 /tmp/SBo/pacemaker-Pacemaker-2.0.2/daemons/schedulerd/pacemaker-schedulerd metadata > pacemaker-schedulerd.xml
make[3]: *** [Makefile:1027: pacemaker-schedulerd.xml] Error 134
rm pacemaker-schedulerd.xml
make[3]: Leaving directory '/tmp/SBo/pacemaker-Pacemaker-2.0.2/daemons/schedulerd'
make[2]: *** [Makefile:497: all-recursive] Error 1
make[2]: Leaving directory '/tmp/SBo/pacemaker-Pacemaker-2.0.2/daemons'
make[1]: *** [Makefile:1174: core] Error 1
make[1]: Leaving directory '/tmp/SBo/pacemaker-Pacemaker-2.0.2'
make: *** [GNUmakefile:75: build] Error 2
NOTE: I tried the newest version of pacemaker, as the one on SBo, 2.0.0-rc5, would not compile successfully, either.

If anyone with experience in this kind of compile error would be willing to give me some assistance in resolving this issue, I would be most grateful. (Hint: I have already Googled for anything regarding this, and have come up with nothing useful).

Thanks, and happy Slacking!
 
Old 11-05-2019, 10:45 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 5,048

Rep: Reputation: Disabled
I just sent the following mail to the libqb and pacemaker maintainers:

Quote:
Hi Jan and Pierre,
someone today reported on LQ having problems in building pacemaker

https://www.linuxquestions.org/quest...ul-4175663716/

I tried it myself and saw this
Code:
libtool: link: gcc -shared  -fPIC -DPIC .libs/libcrmcommon_la-compat.o .libs/libcrmcommon_la-digest.o .libs/libcrmcommon_la-ipc.o .libs/libcrmcommon_la-io.o .libs/libcrmcommon_la-procfs.o .libs/libcrmcommon_la-utils.o .libs/libcrmcommon_la-xml.o .libs/libcrmcommon_la-iso8601.o .libs/libcrmcommon_la-remote.o .libs/libcrmcommon_la-mainloop.o .libs/libcrmcommon_la-logging.o .libs/libcrmcommon_la-watchdog.o .libs/libcrmcommon_la-schemas.o .libs/libcrmcommon_la-strings.o .libs/libcrmcommon_la-xpath.o .libs/libcrmcommon_la-attrd_client.o .libs/libcrmcommon_la-alerts.o .libs/libcrmcommon_la-operations.o .libs/libcrmcommon_la-pid.o .libs/libcrmcommon_la-results.o ../gnu/.libs/libcrmcommon_la-md5.o   -Wl,-rpath -Wl,/usr/lib64/../lib64 -Wl,-rpath -Wl,/usr/lib64/../lib64 /usr/lib64/libgnutls.so /usr/lib64/libp11-kit.so /usr/lib64/../lib64/libffi.so /usr/lib64/libunistring.so -lnettle -lhogweed /usr/lib64/libgmp.so /usr/lib64/libqb.so -lbz2 /usr/lib64/libxslt.so /usr/lib64/libuuid.so -lrt /usr/lib64/libglib-2.0.so -lpthread /usr/lib64/libxml2.so -ldl -lz /usr/lib64/liblzma.so -lm  -O2 -ggdb -fstack-protector-strong -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--as-needed   -pthread -Wl,/tmp/sbopkg.BrZc5j/libqb-1.0.5/lib/qblog_script.ld -Wl,-soname -Wl,libcrmcommon.so.13 -o .libs/libcrmcommon.so.13.1.0
/usr/lib64/gcc/x86_64-slackware-linux/5.5.0/../../../../x86_64-slackware-linux/bin/ld: warning: /usr/lib64/libqb.so contains output sections; did you forget -T?
/usr/lib64/gcc/x86_64-slackware-linux/5.5.0/../../../../x86_64-slackware-linux/bin/ld: cannot find /tmp/sbopkg.BrZc5j/libqb-1.0.5/lib/qblog_script.ld: No such file or directory
collect2: error: ld returned 1 exit status
Makefile:636: recipe for target 'libcrmcommon.la' failed
gmake[2]: *** [libcrmcommon.la] Error 1
gmake[2]: Leaving directory '/tmp/SBo/pacemaker-Pacemaker-2.0.0-rc5/lib/common'
Makefile:555: recipe for target 'all-recursive' failed
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory '/tmp/SBo/pacemaker-Pacemaker-2.0.0-rc5/lib'
Makefile:1161: recipe for target 'core' failed
make: *** [core] Error 1
it seems the this happens because of the libqb update to version 1.0.5

https://git.slackbuilds.org/slackbui...bqb?id=889f114

reverting this to the previous 1.0.2 fixes building of pacemaker.

I don't know if reverting to 1.0.2 is an option as 1.0.4 had been a security release (see https://github.com/ClusterLabs/libqb/releases)...

could please the two of you interact to provide a solution for this?

Thanks in advance!

Matteo
 
1 members found this post helpful.
Old 11-05-2019, 11:35 AM   #3
1337_powerslacker
Member
 
Registered: Nov 2009
Distribution: Slackware64-current
Posts: 741

Original Poster
Blog Entries: 7

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Ponce - Thanks for responding.

The current 1.0.5 version of libqb was indeed the culprit, the reversion of which to 1.0.2 corrected the issue. I re-initiated the compile of the most current version of pacemaker, 2.0.3-rc2, after downgrading libqb, and it compiled successfully. Thanks again.

I fully recommend all packages relating to the Linux-HA cluster, except for libqb, which should be downgraded, be updated to their latest versions.

Happy Slacking!
 
1 members found this post helpful.
Old 11-05-2019, 12:10 PM   #4
1337_powerslacker
Member
 
Registered: Nov 2009
Distribution: Slackware64-current
Posts: 741

Original Poster
Blog Entries: 7

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
The issue regarding pacemaker has been resolved; however, there is a new issue with cluster-glue.

As always, I make it a practice to download the latest version of whatever package I am compiling; in the case of cluster-glue, that would be 1.0.12. I modified the SlackBuild accordingly, as the newer version is organized differently.

This is the error that was displayed:

Code:
ipctest.c: In function ‘s_send_msg’:                                                                                                              
ipctest.c:1144:13: error: g_main_loop_quit [-Werror]
 1144 |    g_main_quit(loop);
      |             ^~~~~~~~~         
ipctest.c: In function ‘s_rcv_msg’:
ipctest.c:1202:13: error: g_main_loop_quit [-Werror]
 1202 |   g_main_quit(loop);
      |             ^~~~~~~~          
ipctest.c: In function ‘s_echo_msg’:
ipctest.c:1320:13: error: g_main_loop_quit [-Werror]
 1320 |   g_main_quit(loop);
      |             ^~~~~~~~          
ipctest.c: In function ‘mainloop_server’:
ipctest.c:1343:13: error: g_main_loop_new [-Werror]
 1343 |  loop = g_main_new(FALSE);
      |             ^~~~~~~~~~~~~~   
ipctest.c:1355:13: error: g_main_loop_run [-Werror]
 1355 |  g_main_run(loop);
      |             ^~~~~~           
ipctest.c:1356:13: error: g_main_loop_unref [-Werror]
 1356 |  g_main_destroy(loop);
      |             ^~~~~~~~~~         
ipctest.c: In function ‘mainloop_client’:
ipctest.c:1366:13: error: g_main_loop_new [-Werror]
 1366 |  loop = g_main_new(FALSE);
      |             ^~~~~~~~~~~~~~   
ipctest.c:1371:13: error: g_main_loop_run [-Werror]
 1371 |  g_main_run(loop);
      |             ^~~~~~           
ipctest.c:1372:13: error: g_main_loop_unref [-Werror]
 1372 |  g_main_destroy(loop);
      |             ^~~~~~~~~~         
cc1: all warnings being treated as errors
gmake[2]: *** [Makefile:789: ipctest.o] Error 1
gmake[2]: Leaving directory '/tmp/SBo/cluster-glue-glue-1.0.12/lib/clplumbing'
gmake[1]: *** [Makefile:451: all-recursive] Error 1
gmake[1]: Leaving directory '/tmp/SBo/cluster-glue-glue-1.0.12/lib'
make: *** [Makefile:487: all-recursive] Error 1
Any help would be greatly appreciated. Thanks!

Happy Slacking!
Attached Files
File Type: txt cluster-glue.SlackBuild.txt (3.5 KB, 0 views)
 
Old 11-05-2019, 12:19 PM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 5,048

Rep: Reputation: Disabled
1.0.12 is not the latest version, it is from 2014

https://github.com/ClusterLabs/cluster-glue/releases

if you want the latest version you have to create yourself a snapshot from the latest master branch on git (not that it will change much: there are only five more commits): be aware that the SlackBuild has not been tested with it, nor are the other components of the cluster noted in its README (not necessarily the latest version is the best one).

Last edited by ponce; 11-05-2019 at 12:21 PM.
 
Old 11-05-2019, 01:04 PM   #6
1337_powerslacker
Member
 
Registered: Nov 2009
Distribution: Slackware64-current
Posts: 741

Original Poster
Blog Entries: 7

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
I recently discovered that cluster-glue is not vital to setting up a Linux-HA cluster; therefore, although I would be interested in a solution for this issue, I can proceed without its installation. I will re-mark this as [SOLVED].
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pacemaker Cluster Resource not starting on secondary node pradeepspa Linux - Newbie 2 07-07-2017 06:28 PM
Apache resource not starting - Pacemaker Cluster pradeepspa Linux - Newbie 1 07-01-2017 08:40 PM
Not able to add two nodes in Pacemaker Cluster z_haseeb Debian 4 04-16-2014 01:57 PM
Building some sort of cluster: slurm, pacemaker, cluster-glue or .... kaz2100 Linux - Software 2 07-21-2011 01:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration