Bug 1200475

Summary: [ESXi][RHEL7]open-vm-tools FTBFS with current glib2 in RHEL 7.1
Product: Red Hat Enterprise Linux 7 Reporter: Pat Riehecky <riehecky>
Component: open-vm-toolsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.1CC: csieh, hhei, jingli, ldu, leiwang, misterbonnie, ravindrakumar, shwang, tis, yacao
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: open-vm-tools-9.10.0-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 09:00:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1172833    
Bug Blocks:    

Description Pat Riehecky 2015-03-10 16:04:10 UTC
Description of problem:
BuildRequires lists glib2-devel, however the package cannot be rebuilt on glib2-2.40.0

Version-Release number of selected component (if applicable):open-vm-tools-9.4.0-6.el7


How reproducible:100%


Steps to Reproduce:
1.attempt to rebuild with latest glib2
2.
3.

Actual results:
/builddir/build/BUILD/open-vm-tools-9.4.0-1280544/lib/include/vmware/tools/log.h:137:0: error: "g_info" redefined [-Werror]
 #define g_info(fmt, ...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, fmt, ## __VA_ARGS__)
 ^
In file included from /usr/include/glib-2.0/glib.h:62:0,
                 from /builddir/build/BUILD/open-vm-tools-9.4.0-1280544/lib/include/vmware/tools/log.h:116,
                 from hgfsclient.c:38:
/usr/include/glib-2.0/glib/gmessages.h:165:0: note: this is the location of the previous definition
 #define g_info(...)     g_log (G_LOG_DOMAIN,         \
 ^
cc1: all warnings being treated as errors
make[1]: Leaving directory `/builddir/build/BUILD/open-vm-tools-9.4.0-1280544/hgfsclient'
make[1]: *** [vmware_hgfsclient-hgfsclient.o] Error 1
make: *** [all-recursive] Error 1

Expected results:
BuildRequires: glib2 < 2.40.0

Additional info:

Comment 1 Richard W.M. Jones 2015-03-10 16:15:19 UTC
I've just looked at our build logs and open-vm-tools-9.4.0-6.el7
was built with glib2-2.36.3-5.el7.

Also note we will rebase open-vm-tools again in RHEL 7.2 (bug 1172833).

Comment 2 Ravindra Kumar 2015-03-10 18:35:45 UTC
You could also use the patch from https://bugzilla.redhat.com/show_bug.cgi?id=1063847, if you don't want to wait for rebase.

Comment 4 Ravindra Kumar 2015-05-03 22:44:53 UTC
FYI, open-vm-tools version 9.10.0 with the fix for this bug has been updated in Fedora 22 under bug https://bugzilla.redhat.com/show_bug.cgi?id=1217864.

This new version of open-vm-tools brings some new configurations, details in bug 1172833.

Comment 6 ldu 2015-09-09 08:45:20 UTC
After the bug 1172833 had been fixed, so verified this bug on the new version of open-vm-tools.
the new version of open-vm-tools-9.10.2-3.el7.x86_64 was built with glib2-2.42.2-4.el7.x86_64.

Comment 7 errata-xmlrpc 2015-11-19 09:00:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2246.html