Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
10-10-2012, 04:38 PM
#1
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Rep:
Problems building pacemaker-mgmt
Hi!
I'd like to build pacemaker-mgmt from source on a ubuntu 10.04 box.
When I call make I get this error:
Code:
make[2]: Entering directory `/home/cps/ha/Pacemaker-Python-GUI-4186ac0c02b5/lib/mgmt'
python pymgmt.i
File "pymgmt.i", line 1
%module pymgmt
^
SyntaxError: invalid syntax
make[2]: [pymgmt_wrap.c] Error 1 (ignored)
/bin/bash ../../libtool --tag=CC --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../include -I../../include -I../../include -I../../linux-ha -I../../linux-ha -I../../libltdl -I../../libltdl -I../.. -I../.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I../../include -w -L/usr/local/ha/lib -I/usr/local/ha/include -I/usr/local/ha/include/heartbeat -I/usr/local/ha/include/pacemaker -fgnu89-inline -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror -ansi -D_GNU_SOURCE -DANSI_ONLY -ggdb3 -funsigned-char -MT _pymgmt_la-pymgmt_wrap.lo -MD -MP -MF .deps/_pymgmt_la-pymgmt_wrap.Tpo -c -o _pymgmt_la-pymgmt_wrap.lo `test -f 'pymgmt_wrap.c' || echo './'`pymgmt_wrap.c
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../include -I../../include -I../../include -I../../linux-ha -I../../linux-ha -I../../libltdl -I../../libltdl -I../.. -I../.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I../../include -w -L/usr/local/ha/lib -I/usr/local/ha/include -I/usr/local/ha/include/heartbeat -I/usr/local/ha/include/pacemaker -fgnu89-inline -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror -ansi -D_GNU_SOURCE -DANSI_ONLY -ggdb3 -funsigned-char -MT _pymgmt_la-pymgmt_wrap.lo -MD -MP -MF .deps/_pymgmt_la-pymgmt_wrap.Tpo -c ./pymgmt_wrap.c -fPIC -DPIC -o .libs/_pymgmt_la-pymgmt_wrap.o
gcc: ./pymgmt_wrap.c: No such file or directory
gcc: no input files
make[2]: *** [_pymgmt_la-pymgmt_wrap.lo] Error 1
make[2]: Leaving directory `/home/cps/ha/Pacemaker-Python-GUI-4186ac0c02b5/lib/mgmt'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cps/ha/Pacemaker-Python-GUI-4186ac0c02b5/lib'
make: *** [all-recursive] Error 1
Perhaps the problem comes from pymgmt.i. What am I missing here? Thanks in advance.
10-10-2012, 04:57 PM
#2
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Original Poster
Rep:
I just downloaded version 2.1 of pacemaker mgmt gui and I see the same problem:
Code:
make[2]: Entering directory `/home/cps/ha/Pacemaker-Python-GUI-pacemaker-mgmt-2.1.0/lib/mgmt'
python pymgmt.i
File "pymgmt.i", line 1
%module pymgmt
^
SyntaxError: invalid syntax
make[2]: [pymgmt_wrap.c] Error 1 (ignored)
/bin/bash ../../libtool --tag=CC --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../include -I../../include -I../../include -I../../linux-ha -I../../linux-ha -I../../libltdl -I../../libltdl -I../.. -I../.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I../../include -w -L/usr/local/ha/lib -I/usr/local/ha/include -I/usr/local/ha/include/heartbeat -I/usr/local/ha/include/pacemaker -fgnu89-inline -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror -ansi -D_GNU_SOURCE -DANSI_ONLY -ggdb3 -funsigned-char -MT _pymgmt_la-pymgmt_wrap.lo -MD -MP -MF .deps/_pymgmt_la-pymgmt_wrap.Tpo -c -o _pymgmt_la-pymgmt_wrap.lo `test -f 'pymgmt_wrap.c' || echo './'`pymgmt_wrap.c
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../include -I../../include -I../../include -I../../linux-ha -I../../linux-ha -I../../libltdl -I../../libltdl -I../.. -I../.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I../../include -w -L/usr/local/ha/lib -I/usr/local/ha/include -I/usr/local/ha/include/heartbeat -I/usr/local/ha/include/pacemaker -fgnu89-inline -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror -ansi -D_GNU_SOURCE -DANSI_ONLY -ggdb3 -funsigned-char -MT _pymgmt_la-pymgmt_wrap.lo -MD -MP -MF .deps/_pymgmt_la-pymgmt_wrap.Tpo -c ./pymgmt_wrap.c -fPIC -DPIC -o .libs/_pymgmt_la-pymgmt_wrap.o
gcc: ./pymgmt_wrap.c: No such file or directory
gcc: no input files
make[2]: *** [_pymgmt_la-pymgmt_wrap.lo] Error 1
make[2]: Leaving directory `/home/cps/ha/Pacemaker-Python-GUI-pacemaker-mgmt-2.1.0/lib/mgmt'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cps/ha/Pacemaker-Python-GUI-pacemaker-mgmt-2.1.0/lib'
make: *** [all-recursive] Error 1
10-10-2012, 05:02 PM
#3
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Original Poster
Rep:
Well.... pymgmt.i certainly has a bad python syntax if you ask me:
Code:
%module pymgmt
%newobject mgmt_recvmsg;
%newobject mgmt_sendmsg;
%newobject mgmt_thread_sendmsg;
%{
#include "../../include/mgmt/mgmt_client.h"
char* mgmt_thread_sendmsg(const char* msg)
{
char* ret_msg;
Py_BEGIN_ALLOW_THREADS
ret_msg = mgmt_sendmsg(msg);
Py_END_ALLOW_THREADS
return ret_msg;
}
%}
int mgmt_connect(const char* server, const char* user, const char* passwd, const char* port);
char* mgmt_sendmsg(const char* msg);
char* mgmt_recvmsg(void);
char* mgmt_thread_sendmsg(const char* msg);
int mgmt_inputfd(void);
int mgmt_disconnect(void);
I bet I'm missing something, what is it?
All times are GMT -5. The time now is 01:11 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News