Hi Team, We are trying to build libguestfs-1.34.6 on RHEL7 host. We have installed all the dependencies which is showing while running ./configure command in inside the source code of libguestfs. But while running make we are facing below issue: /usr/include/pango-1.0/pango/pango-version-macros.h:251:60: error: missing binary operator before token "(" #define PANGO_VERSION_CUR_STABLE (G_ENCODE_VERSION (PANGO_VERSION_MAJOR, PANGO_VERSION_MINOR)) ^ /usr/include/pango-1.0/pango/pango-version-macros.h:313:42: note: in expansion of macro 'PANGO_VERSION_CUR_STABLE' # define PANGO_VERSION_MAX_ALLOWED (PANGO_VERSION_CUR_STABLE) ^ /usr/include/pango-1.0/pango/pango-version-macros.h:623:5: note: in expansion of macro 'PANGO_VERSION_MAX_ALLOWED' #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_42 ^ make[2]: *** [virt_p2v-main.o] Error 1 make[2]: Leaving directory `/root/rpmbuild/BUILD/libguestfs-1.34.6/p2v' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/rpmbuild/BUILD/libguestfs-1.34.6' make: *** [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.DQIKk5 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.DQIKk5 (%build) Can anyone help me and let me know why the issue is coming. Regards, Abinaya sandhiya The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
On Tue, Aug 29, 2017 at 01:16:00PM +0000, abinaya.manikandan@wipro.com wrote:
Hi Team,
We are trying to build libguestfs-1.34.6 on RHEL7 host. We have installed all the dependencies which is showing while running ./configure command in inside the source code of libguestfs. But while running make we are facing below issue:
/usr/include/pango-1.0/pango/pango-version-macros.h:251:60: error: missing binary operator before token "(" #define PANGO_VERSION_CUR_STABLE (G_ENCODE_VERSION (PANGO_VERSION_MAJOR, PANGO_VERSION_MINOR)) ^ /usr/include/pango-1.0/pango/pango-version-macros.h:313:42: note: in expansion of macro 'PANGO_VERSION_CUR_STABLE' # define PANGO_VERSION_MAX_ALLOWED (PANGO_VERSION_CUR_STABLE) ^ /usr/include/pango-1.0/pango/pango-version-macros.h:623:5: note: in expansion of macro 'PANGO_VERSION_MAX_ALLOWED' #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_42 ^ make[2]: *** [virt_p2v-main.o] Error 1 make[2]: Leaving directory `/root/rpmbuild/BUILD/libguestfs-1.34.6/p2v' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/rpmbuild/BUILD/libguestfs-1.34.6' make: *** [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.DQIKk5 (%build)
This could really be a bug, but which version of Pango are you using? Is it the one from RHEL 7 (eg pango-devel-1.40.4-1.el7.x86_64) Try doing: rpm -qf /usr/include/pango-1.0/pango/pango-version-macros.h Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
[root@euca-10-254-11-189 rpmbuild]# rpm -qf /usr/include/pango-1.0/pango/pango-version-macros.h
Hi, Yes, We are using pango-devel-1.40.4-1.el7.x86_64. Please find details below: pango-devel-1.40.4-1.el7.x86_64 Somehow the issue fixed if we remove the pango-devel, but now the issue is different,
/opt/autoconf/x86_64/2.69/bin/autoconf: line 505: /opt/autoconf/x86_64/2.69/bin/autom4te:/opt/autoconf/x86_64/2.69/bin/autom4te:: No such file or directory automake-1.15: error: autoconf failed with exit status: 127 WARNING: 'automake-1.15' is missing on your system. You should only need it if you modified 'Makefile.am' or 'configure.ac' or m4 files included by 'configure.ac'. The 'automake' program is part of the GNU Automake package: <http://www.gnu.org/software/automake> It also requires GNU Autoconf, GNU m4 and Perl in order to run: <http://www.gnu.org/software/autoconf> <http://www.gnu.org/software/m4/> <http://www.perl.org/> make[2]: *** [Makefile.in] Error 127 make[2]: Leaving directory `/ephemeral/rpmbuild/BUILD/libguestfs-1.32.10/java' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/ephemeral/rpmbuild/BUILD/libguestfs-1.32.10' make: *** [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.S7jxBC (%build)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.S7jxBC (%build) Please let me know why this is coming. Regards, Abinaya -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Tuesday, August 29, 2017 7:47 PM To: Abinaya Sandhiya Manikandan (GIS) <abinaya.manikandan@wipro.com> Cc: libguestfs@redhat.com; Emlyn Jose (GIS) <emlyn.jose@wipro.com> Subject: Pango error when compiling virt-p2v on RHEL 7 (was: Re: [Libguestfs] Regarding libguestfs) ** This mail has been sent from an external source ** On Tue, Aug 29, 2017 at 01:16:00PM +0000, abinaya.manikandan@wipro.com wrote:
Hi Team,
We are trying to build libguestfs-1.34.6 on RHEL7 host. We have installed all the dependencies which is showing while running ./configure command in inside the source code of libguestfs. But while running make we are facing below issue:
/usr/include/pango-1.0/pango/pango-version-macros.h:251:60: error: missing binary operator before token "(" #define PANGO_VERSION_CUR_STABLE (G_ENCODE_VERSION (PANGO_VERSION_MAJOR, PANGO_VERSION_MINOR)) ^ /usr/include/pango-1.0/pango/pango-version-macros.h:313:42: note: in expansion of macro 'PANGO_VERSION_CUR_STABLE' # define PANGO_VERSION_MAX_ALLOWED (PANGO_VERSION_CUR_STABLE) ^ /usr/include/pango-1.0/pango/pango-version-macros.h:623:5: note: in expansion of macro 'PANGO_VERSION_MAX_ALLOWED' #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_42 ^ make[2]: *** [virt_p2v-main.o] Error 1 make[2]: Leaving directory `/root/rpmbuild/BUILD/libguestfs-1.34.6/p2v' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/rpmbuild/BUILD/libguestfs-1.34.6' make: *** [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.DQIKk5 (%build)
This could really be a bug, but which version of Pango are you using? Is it the one from RHEL 7 (eg pango-devel-1.40.4-1.el7.x86_64) Try doing: rpm -qf /usr/include/pango-1.0/pango/pango-version-macros.h Rich. -- Richard Jones, Virtualization Group, Red Hat https://clicktime.symantec.com/a/1/FY-DG37UBTMKgQUQVXsK70IL5LZseQceq6roqDjHpUg=?d=t7EDoO_stmaz267sEObzXebuUpdxuuC1-SHwFc_8pSDYvUwuYHjRoAf3oIT7Nj3VqacmFfDucRES6nM-oehUu5ARDEWGBFGRkJK2L2qF6iTizNXr9lyMHdZd4KTaNclandQPZ-Q5B1y4BMs3X3YuTqAGmG_Vgd9lBBoUIFbNQ60J3N1fMDQvWd0OSs-9xpRLoN1_8vQAYdI1Ji5_37oSeAyVI7hwnSKUHpt3cAenBqcFHFzHJR8BmQ8ytqwA15U1oGoosHB2lMB29gMKJ8Lsp168g982psRU8JvnkLG--HZ_MYwns18B4xkGpGGfq3X2pIGuxCYGP5FJ8bmEFx6J9w-yyJcVRe3oQFxOJrGQMtM9C8FF2U37V9DnkfUx1_3nBXg_YghZKCLW2AdmJVOpG6z0ut3Jffdv_SGTxUEJgmRwlw%3D%3D&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones Read my programming and virtualization blog: https://clicktime.symantec.com/a/1/HzYfPa_j0aKC6_0uTaxtBiUqsvYnLJOHsDybQR1rQeI=?d=t7EDoO_stmaz267sEObzXebuUpdxuuC1-SHwFc_8pSDYvUwuYHjRoAf3oIT7Nj3VqacmFfDucRES6nM-oehUu5ARDEWGBFGRkJK2L2qF6iTizNXr9lyMHdZd4KTaNclandQPZ-Q5B1y4BMs3X3YuTqAGmG_Vgd9lBBoUIFbNQ60J3N1fMDQvWd0OSs-9xpRLoN1_8vQAYdI1Ji5_37oSeAyVI7hwnSKUHpt3cAenBqcFHFzHJR8BmQ8ytqwA15U1oGoosHB2lMB29gMKJ8Lsp168g982psRU8JvnkLG--HZ_MYwns18B4xkGpGGfq3X2pIGuxCYGP5FJ8bmEFx6J9w-yyJcVRe3oQFxOJrGQMtM9C8FF2U37V9DnkfUx1_3nBXg_YghZKCLW2AdmJVOpG6z0ut3Jffdv_SGTxUEJgmRwlw%3D%3D&u=http%3A%2F%2Frwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. https://clicktime.symantec.com/a/1/I87Est9Mna8nIKlWEVbXlshGPiOAZvWpyAss71ySxoc=?d=t7EDoO_stmaz267sEObzXebuUpdxuuC1-SHwFc_8pSDYvUwuYHjRoAf3oIT7Nj3VqacmFfDucRES6nM-oehUu5ARDEWGBFGRkJK2L2qF6iTizNXr9lyMHdZd4KTaNclandQPZ-Q5B1y4BMs3X3YuTqAGmG_Vgd9lBBoUIFbNQ60J3N1fMDQvWd0OSs-9xpRLoN1_8vQAYdI1Ji5_37oSeAyVI7hwnSKUHpt3cAenBqcFHFzHJR8BmQ8ytqwA15U1oGoosHB2lMB29gMKJ8Lsp168g982psRU8JvnkLG--HZ_MYwns18B4xkGpGGfq3X2pIGuxCYGP5FJ8bmEFx6J9w-yyJcVRe3oQFxOJrGQMtM9C8FF2U37V9DnkfUx1_3nBXg_YghZKCLW2AdmJVOpG6z0ut3Jffdv_SGTxUEJgmRwlw%3D%3D&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones%2Fvirt-top ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
On Tue, Aug 29, 2017 at 02:20:47PM +0000, abinaya.manikandan@wipro.com wrote:
Hi,
Yes, We are using pango-devel-1.40.4-1.el7.x86_64. Please find details below:
[root@euca-10-254-11-189 rpmbuild]# rpm -qf /usr/include/pango-1.0/pango/pango-version-macros.h pango-devel-1.40.4-1.el7.x86_64
Somehow the issue fixed if we remove the pango-devel,
Removing pango-devel most likely disables gtk, thus disabling compilation of virt-p2v. Which is one way to fix it, but I suppose it depends on if you need virt-p2v ...
but now the issue is different,
/opt/autoconf/x86_64/2.69/bin/autoconf: line 505: /opt/autoconf/x86_64/2.69/bin/autom4te:/opt/autoconf/x86_64/2.69/bin/autom4te:: No such file or directory automake-1.15: error: autoconf failed with exit status: 127 WARNING: 'automake-1.15' is missing on your system.
As the error message says, automake is missing. I suppose removing pango also removed automake for whatever reason, or you removed or changed the version of automake while you were removing pango. I cannot reproduce the original problem right now, but I'm looking at it. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
Hi Richard, Would like to know the importance of p2v directory in libguestfs. Because we could successfully run the build in rhel6 but in rhel7 it throws all kinds of minor errors. So is it a good idea to remove gtk+pango thus removing p2v directory? Please suggest the best way to exclude this pango error.
usr/include/pango-1.0/pango/pango-version-macros.h:251:60: error: missing binary operator before token "(" #define PANGO_VERSION_CUR_STABLE (G_ENCODE_VERSION (PANGO_VERSION_MAJOR, PANGO_VERSION_MINOR))
Regards, Abinaya -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Tuesday, August 29, 2017 7:56 PM To: Abinaya Sandhiya Manikandan (GIS) <abinaya.manikandan@wipro.com> Cc: libguestfs@redhat.com; Emlyn Jose (GIS) <emlyn.jose@wipro.com> Subject: Re: Pango error when compiling virt-p2v on RHEL 7 (was: Re: [Libguestfs] Regarding libguestfs) ** This mail has been sent from an external source ** On Tue, Aug 29, 2017 at 02:20:47PM +0000, abinaya.manikandan@wipro.com wrote:
Hi,
Yes, We are using pango-devel-1.40.4-1.el7.x86_64. Please find details below:
[root@euca-10-254-11-189 rpmbuild]# rpm -qf /usr/include/pango-1.0/pango/pango-version-macros.h pango-devel-1.40.4-1.el7.x86_64
Somehow the issue fixed if we remove the pango-devel,
Removing pango-devel most likely disables gtk, thus disabling compilation of virt-p2v. Which is one way to fix it, but I suppose it depends on if you need virt-p2v ...
but now the issue is different,
/opt/autoconf/x86_64/2.69/bin/autoconf: line 505: /opt/autoconf/x86_64/2.69/bin/autom4te:/opt/autoconf/x86_64/2.69/bi n/autom4te:: No such file or directory automake-1.15: error: autoconf failed with exit status: 127 WARNING: 'automake-1.15' is missing on your system.
As the error message says, automake is missing. I suppose removing pango also removed automake for whatever reason, or you removed or changed the version of automake while you were removing pango. I cannot reproduce the original problem right now, but I'm looking at it. Rich. -- Richard Jones, Virtualization Group, Red Hat https://clicktime.symantec.com/a/1/RfaWKpJjiitkZvrcQ55iIzI7QAy9m0tPN52hu7NpHz8=?d=xUZgS7Ezdo0EgCG6x0kIWMGCvuMfUuJKjaEOi4SjsgibfDJ7taBQBpy3kUl_9o7FzGYBlHHcrO1DH3SS3H1WaPw5qsOYoS6q4x9RE42Ya2ct-hdYqqCLAPpZAQ_KZiy2nHESDgMzB6NSlbxIWq02KEOg-LfMxQY4qU94qPLvlcSwePFiz42s26ii5WYc4VwkZrV3BOfQGPoEbURypaeKlxeNwjPcW6V_GgxKVSYsdtAb3TSZqq6rhL-u5Yp4JaxcJc8g8UTRAhaYIcHMW4nBDXZvx7MsjYzFRV1nd020n83lTAO9SRtFsgXFe-NP3DJ2PkYEU790e-xRyaQbjybes3t3jUeuL3z06nTAeyP_qjEc5DB0LMTF9Q8oVaHYBRbz5OszHdIaSbUABMDWcB2vmgSCw1kVqq1A92nRqaXDdMuJgwifK8Y%3D&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones Read my programming and virtualization blog: https://clicktime.symantec.com/a/1/MS_Vt_w0A9fkbbXBBANKg9ZLqDbmOPA-PncG2XszflI=?d=xUZgS7Ezdo0EgCG6x0kIWMGCvuMfUuJKjaEOi4SjsgibfDJ7taBQBpy3kUl_9o7FzGYBlHHcrO1DH3SS3H1WaPw5qsOYoS6q4x9RE42Ya2ct-hdYqqCLAPpZAQ_KZiy2nHESDgMzB6NSlbxIWq02KEOg-LfMxQY4qU94qPLvlcSwePFiz42s26ii5WYc4VwkZrV3BOfQGPoEbURypaeKlxeNwjPcW6V_GgxKVSYsdtAb3TSZqq6rhL-u5Yp4JaxcJc8g8UTRAhaYIcHMW4nBDXZvx7MsjYzFRV1nd020n83lTAO9SRtFsgXFe-NP3DJ2PkYEU790e-xRyaQbjybes3t3jUeuL3z06nTAeyP_qjEc5DB0LMTF9Q8oVaHYBRbz5OszHdIaSbUABMDWcB2vmgSCw1kVqq1A92nRqaXDdMuJgwifK8Y%3D&u=http%3A%2F%2Frwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. https://clicktime.symantec.com/a/1/PHy2CxdtLV8q_hJJQHgxNWUP1Pzqdx7qHTUIucbB_VY=?d=xUZgS7Ezdo0EgCG6x0kIWMGCvuMfUuJKjaEOi4SjsgibfDJ7taBQBpy3kUl_9o7FzGYBlHHcrO1DH3SS3H1WaPw5qsOYoS6q4x9RE42Ya2ct-hdYqqCLAPpZAQ_KZiy2nHESDgMzB6NSlbxIWq02KEOg-LfMxQY4qU94qPLvlcSwePFiz42s26ii5WYc4VwkZrV3BOfQGPoEbURypaeKlxeNwjPcW6V_GgxKVSYsdtAb3TSZqq6rhL-u5Yp4JaxcJc8g8UTRAhaYIcHMW4nBDXZvx7MsjYzFRV1nd020n83lTAO9SRtFsgXFe-NP3DJ2PkYEU790e-xRyaQbjybes3t3jUeuL3z06nTAeyP_qjEc5DB0LMTF9Q8oVaHYBRbz5OszHdIaSbUABMDWcB2vmgSCw1kVqq1A92nRqaXDdMuJgwifK8Y%3D&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones%2Fvirt-df%2F ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
On Thu, Aug 31, 2017 at 06:53:39AM +0000, abinaya.manikandan@wipro.com wrote:
Hi Richard,
Would like to know the importance of p2v directory in libguestfs. Because we could successfully run the build in rhel6 but in rhel7 it throws all kinds of minor errors. So is it a good idea to remove gtk+pango thus removing p2v directory?
See: http://libguestfs.org/virt-p2v.1.html
Please suggest the best way to exclude this pango error.
As I said last time, you will need to include the full log of the ./configure and make steps, not excerpts. I cannot help you without the full log. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
On Tue, Aug 29, 2017 at 01:16:00PM +0000, abinaya.manikandan@wipro.com wrote:
Hi Team,
We are trying to build libguestfs-1.34.6 on RHEL7 host. We have installed all the dependencies which is showing while running ./configure command in inside the source code of libguestfs. But while running make we are facing below issue:
/usr/include/pango-1.0/pango/pango-version-macros.h:251:60: error: missing binary operator before token "(" #define PANGO_VERSION_CUR_STABLE (G_ENCODE_VERSION (PANGO_VERSION_MAJOR, PANGO_VERSION_MINOR)) ^ /usr/include/pango-1.0/pango/pango-version-macros.h:313:42: note: in expansion of macro 'PANGO_VERSION_CUR_STABLE' # define PANGO_VERSION_MAX_ALLOWED (PANGO_VERSION_CUR_STABLE) ^ /usr/include/pango-1.0/pango/pango-version-macros.h:623:5: note: in expansion of macro 'PANGO_VERSION_MAX_ALLOWED' #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_42 ^ make[2]: *** [virt_p2v-main.o] Error 1 make[2]: Leaving directory `/root/rpmbuild/BUILD/libguestfs-1.34.6/p2v' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/rpmbuild/BUILD/libguestfs-1.34.6' make: *** [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.DQIKk5 (%build)
I couldn't reproduce this error. If you see it again, please post the *complete log* from compilation, not just parts of it. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
participants (2)
-
abinaya.manikandan@wipro.com -
Richard W.M. Jones