Bug 173494 - /usr/include/sys/stat.h:239: error: expected initializer before 'throw'
/usr/include/sys/stat.h:239: error: expected initializer before 'throw'
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: glibc (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-11-17 11:20 EST by Orion Poplawski
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: 2.3.90-17
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-11-17 11:43:00 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Orion Poplawski 2005-11-17 11:20:53 EST
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.