[sparc] <bits/fcntl.h> #define's FFSYNC to undeclared O_FSYNC

Bug #517212 reported by Kamal Mostafa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eglibc (Ubuntu)
New
Undecided
Unassigned

Bug Description

The attached program exposes an error in sparc's <bits/fcntl.h> header. It fails to
compile ...

  test_open_flags.c:35: error: ‘O_FSYNC’ undeclared

... because sparc's /usr/include/bits/fcntl.h #defines FFSYNC to O_FSYNC,
but does not supply O_FSYNC. (All the other remapped O_ macros defined in
the group with FFSYNC are supplied e.g. FASYNC to O_ASYNC).

Sparc's <bits/fcntl.h> should not define FFSYNC (or else must define O_FSYNC).

Notes:
 - libexplain is an example of a real-world package which breaks due this.
 - I tested this using the headers from libc6-dev_2.11.1-0ubuntu2_sparc.deb.

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :
Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :

This bug blocks libexplain from building, as detailed in LP: #511971.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.