Bug 173494 - /usr/include/sys/stat.h:239: error: expected initializer before 'throw'
Summary: /usr/include/sys/stat.h:239: error: expected initializer before 'throw'
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-11-17 16:20 UTC by Orion Poplawski
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version: 2.3.90-17
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-11-17 16:43:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Orion Poplawski 2005-11-17 16:20:53 UTC
Description of problem:
On current rawhide, the following code "test.cpp":

#include <sys/stat.h>

when compiled with the following give the error:

# g++  -D_FILE_OFFSET_BITS=64  -c test.cpp
/usr/include/sys/stat.h:239: error: expected initializer before 'throw'

Without -D_FILE_OFFSET_BITS=64 no complaints.

Version-Release number of selected component (if applicable):
glibc-headers-2.3.90-16

Diff (- = without -D_FILE_OFFSET_BITS=64, + = with) :

-extern int fstatat (int __fd, const char *__file, struct stat *__buf,
-      int __flag) throw () __attribute__ ((__nonnull__ (2, 3)));
-
-
+extern int stat64 (__const char *__restrict __file,
+     struct stat64 *__restrict __buf) throw () __attribute__ ((__nonnull__ (1,
2)));
+extern int fstat64 (int __fd, struct stat64 *__buf) throw () __attribute__
((__nonnull__
 (2)));
+# 239 "/usr/include/sys/stat.h" 3 4
+extern int fstatat (int __fd, const char *__file, struct stat *__buf, int
__flag) throw
() __asm__ ("" "fstatat64") throw () __attribute__ ((__nonnull__ (2, 3)));


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