RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1165784 - Fail to build binary from srpm
Summary: Fail to build binary from srpm
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: spice-xpi
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Christophe Fergeau
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks: 1170226
TreeView+ depends on / blocked
 
Reported: 2014-11-19 17:09 UTC by Vaclav Ehrlich
Modified: 2015-03-05 07:59 UTC (History)
3 users (show)

Fixed In Version: spice-xpi-2.8-8.el7
Doc Type: Bug Fix
Doc Text:
No doc needed
Clone Of:
: 1170226 (view as bug list)
Environment:
Last Closed: 2015-03-05 07:59:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0355 0 normal SHIPPED_LIVE spice-xpi bug fix and enhancement update 2015-03-05 12:26:46 UTC

Description Vaclav Ehrlich 2014-11-19 17:09:34 UTC
Description of problem:
When try to build a binary from srpm, process ends with error.

Version-Release number of selected component (if applicable):
spice-xpi-2.8-7.el7

How reproducible:
Always

Steps to Reproduce:
1.get srpm and try to build binary

Actual results:
Build process ends with error:

In file included from nsScriptablePeer.cpp:54:0:
/usr/include/xulrunner-31.2.0/nsError.h:187:1: warning: identifier 'static_assert' is a keyword in C++11 [-Wc++0x-compat]
static_assert(((nsresult)0) < ((nsresult)-1),
^
In file included from nsScriptablePeer.cpp:54:0:
/usr/include/xulrunner-31.2.0/nsError.h:187:14: error: expected constructor, destructor, or type conversion before '(' token
static_assert(((nsresult)0) < ((nsresult)-1),
            ^
/usr/include/xulrunner-31.2.0/nsError.h:189:14: error: expected constructor, destructor, or type conversion before '(' token
static_assert(sizeof(nsresult) == sizeof(uint32_t),
make[5]: *** [libnsISpicec_la-nsScriptablePeer.lo] Error 1

Expected results:
build process is finished without errors and new binary is built 

Additional info:
Build process launched on TPS servers

Comment 2 Christophe Fergeau 2014-11-20 10:48:26 UTC
Couple of issues here. With xulrunner 31, this patch is needed (but it's not related to your problem, just dropping it here for the record):

diff --git a/SpiceXPI/src/plugin/Makefile.am b/SpiceXPI/src/plugin/Makefile.am
index 08d89d7..6ad8384 100644
--- a/SpiceXPI/src/plugin/Makefile.am
+++ b/SpiceXPI/src/plugin/Makefile.am
@@ -61,10 +61,10 @@ nsISpicec.xpt: nsISpicec.idl
 	$(AM_V_GEN)$(XPIDL) -m typelib -I $(SDK_INCLUDE_DIR) $<
 else
 nsISpicec.h: nsISpicec.idl
-	$(AM_V_GEN)$(PYTHON) `pkg-config --variable=sdkdir libxul`/sdk/bin/header.py --cachedir . -I $(SDK_INCLUDE_DIR) $< -o $@
+	$(AM_V_GEN)$(PYTHON) `pkg-config --variable=libdir libxul`/header.py --cachedir . -I $(SDK_INCLUDE_DIR) $< -o $@
 
 nsISpicec.xpt: nsISpicec.idl
-	$(AM_V_GEN)$(PYTHON) `pkg-config --variable=sdkdir libxul`/sdk/bin/typelib.py --cachedir . -I $(SDK_INCLUDE_DIR) $< -o $@
+	$(AM_V_GEN)$(PYTHON) `pkg-config --variable=libdir libxul`/typelib.py --cachedir . -I $(SDK_INCLUDE_DIR) $< -o $@
 endif
 
 BUILT_SOURCES =					\
diff --git a/configure.ac b/configure.ac
index e49e683..d251a2c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -67,8 +67,8 @@ AC_SUBST(XPIDL)
 
 if ! test -x "$XPIDL"; then
   AM_PATH_PYTHON
-  AC_CHECK_FILE([`pkg-config --variable=sdkdir libxul`/sdk/bin/header.py])
-  AC_CHECK_FILE([`pkg-config --variable=sdkdir libxul`/sdk/bin/typelib.py])
+  AC_CHECK_FILE([`pkg-config --variable=libdir libxul`/header.py])
+  AC_CHECK_FILE([`pkg-config --variable=libdir libxul`/typelib.py])
 fi
 
 XUL_INCLUDEDIR=`pkg-config --variable=includedir libxul`

Then you need to have -std=gnu++1y added to your CXXFLAGS to avoid the static_assert errors you mention.

Comment 10 errata-xmlrpc 2015-03-05 07:59:19 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-0355.html


Note You need to log in before you can comment on or make changes to this bug.