libexplain FTBFS on sparc: O_FSYNC undeclared

Bug #511971 reported by Kamal Mostafa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libexplain (Debian)
Fix Released
Unknown
libexplain (Ubuntu)
Won't Fix
Undecided
Kamal Mostafa

Bug Description

http://launchpadlibrarian.net/37672023/buildlog_ubuntu-lucid-sparc.libexplain_0.16.D001-1ubuntu1_FAILEDTOBUILD.txt.gz

libtool: compile: gcc -Wall -g -fno-strict-aliasing -O2 -Wall -Wextra -Wl,--as-needed -Werror -I. -c libexplain/buffer/open_flags.c -fPIC -DPIC -o libexplain/buffer/.libs/open_flags.o
libexplain/buffer/open_flags.c:62: error: 'O_FSYNC' undeclared here (not in a function)

Changed in libexplain (Debian):
status: Unknown → New
Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :

The attached branch fixes some (maybe all) of the sparc-specific build failure issues in libexplain's own source:

    - open_flags.c: #ifdef guard more flags (O_FSYNC, FFSYNC, O_ASYNC, FFASYNC)
    - readv.c/writev.c: fix misuse of size_t to avoid fatal compiler warnings

However, a problem in the libc6 <bits/fcntl.h> header (LP: #517212) still prevents libexplain from compiling. That header file problem also (coincidentally) results in the error 'O_FSYNC' undeclared -- but a few lines later. Note that this new failure is actually the result of an improper definition of FFSYNC to O_FSYNC in the fcntl.h header which tricks libexplain despite the correct #ifdef guards in the patched libexplain.

Therefore, this package cannot compile on sparc until LP: #517212 gets resolved.

Changed in libexplain (Ubuntu):
assignee: nobody → Kamal Mostafa (kamalmostafa)
status: New → Incomplete
Changed in libexplain (Debian):
status: New → Fix Released
Revision history for this message
Stefano Rivera (stefanor) wrote :

Sparc was dropped in maverick

Changed in libexplain (Ubuntu):
status: Incomplete → Won't Fix
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.