Bug 593762

Summary: Including <sys/timex.h> results in a compilation error
Product: [Fedora] Fedora Reporter: Pavel K. <pavel.kalaidin>
Component: glibcAssignee: Andreas Schwab <schwab>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: jakub, schwab
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glibc-2.12-2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-06-07 22:29:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
a test file none

Description Pavel K. 2010-05-19 16:20:14 UTC
Created attachment 415188 [details]
a test file

Description of problem:
 
The following code:
 
<test.cpp>
#include <sys/timex.h>
int main(int argc, char argv[])
{
 return 0;
}
results in a compilation error when compiling with g++:
 
g++ -c test.cpp
In file included from test.cpp:2:
/usr/include/sys/timex.h:145: error: expected initializer before "throw"
 
In the meantime, it works with gcc (gcc -c test.c).
 
On fc12 it works with both gcc and g++.



Version-Release number of selected component (if applicable):
glibc-headers-2.12-1.i686


How reproducible:
compile the attached file with g++



Steps to Reproduce:
1. g++ -c test.cpp
  


Actual results:
g++ -c test.cpp
In file included from test.cpp:2:
/usr/include/sys/timex.h:145: error: expected initializer before "throw"



Expected results:
no compilation errors



Additional info:
#gcc (GCC) 4.4.4 20100503 (Red Hat 4.4.4-2)

Comment 1 Fedora Update System 2010-06-02 08:36:23 UTC
glibc-2.12-2 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/glibc-2.12-2

Comment 2 Fedora Update System 2010-06-02 18:13:32 UTC
glibc-2.12-2 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update glibc'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/glibc-2.12-2

Comment 3 Fedora Update System 2010-06-07 22:29:10 UTC
glibc-2.12-2 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.