Bug 923468 - ARM preprocessor handling needed to build package
Summary: ARM preprocessor handling needed to build package
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: filebench
Version: 19
Hardware: arm
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Hushan Jia
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ARMTracker
TreeView+ depends on / blocked
 
Reported: 2013-03-19 23:17 UTC by William Henry
Modified: 2013-03-19 23:41 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-19 23:41:41 UTC


Attachments (Terms of Use)
diff to ioprio.c (390 bytes, patch)
2013-03-19 23:17 UTC, William Henry
no flags Details | Diff

Description William Henry 2013-03-19 23:17:41 UTC
Created attachment 712993 [details]
diff to ioprio.c

Description of problem:

filebench package does not build because it is missing a preprocessor define for ARM.  

Interestingly the two #defines it needs are defined for ARM elsewhere (/usr/include/asm/unistd.h) so it only needed to define a handler in ioprio.c to get over the no arch issue.

So just added the following lines. 

#elif defined(__arm__)
#ifndef __NR_ioprio_set
#define __NR_ioprio_set         314
#define __NR_ioprio_get         315
#endif

That got the build working. 

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Peter Robinson 2013-03-19 23:41:41 UTC
Fixed. Thanks for the patch


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