Bug 189527

Summary: libaio.h is not friendly to C++ compilers
Product: Red Hat Enterprise Linux 3 Reporter: Jeff Moyer <jmoyer>
Component: libaioAssignee: Jeff Moyer <jmoyer>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2006-0467 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-07-20 15:07:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 181405    
Attachments:
Description Flags
Fix libaio.h so it will compile with c++ compilers
none
simple aio program to test that g++ compiles work none

Description Jeff Moyer 2006-04-20 18:46:07 UTC
Compiler error is as follows:

/usr/include/libaio.h: In function `void io_set_callback(iocb*, void
(*)(io_context*, iocb*, long int, long int))':
/usr/include/libaio.h:142: invalid conversion from `void (*)(io_context*,
iocb*, long int, long int)' to `void*'

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

Comment 2 Jeff Moyer 2006-04-27 15:38:42 UTC
Created attachment 128310 [details]
Fix libaio.h so it will compile with c++ compilers

I tested the attached patch by installing the modified rpm, and performing a
build of a simple program which utilizes aio.  I then downgraded the library
version to taht shipped with RHEL 3 GA (0.3.96-3), and ran the program.  I
verified that the program worked as expected.

I believe Sybase is interested in this particular case, since they will be
building their applications against this version of the library, but deploying
on potentially older versions of RHEL.

Comment 6 Jeff Moyer 2006-05-19 14:40:52 UTC
Created attachment 129602 [details]
simple aio program to test that g++ compiles work

safe file aio-pipe.c
g++ aio-pipe.c -laio -o aio-pipe

Comment 9 Red Hat Bugzilla 2006-07-20 15:07:55 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2006-0467.html