Bug 189527 - libaio.h is not friendly to C++ compilers
libaio.h is not friendly to C++ compilers
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: libaio (Show other bugs)
3.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Moyer
:
Depends On:
Blocks: RHEL3U8CanFix
  Show dependency treegraph
 
Reported: 2006-04-20 14:46 EDT by Jeff Moyer
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version: RHBA-2006-0467
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-07-20 11:07:54 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Fix libaio.h so it will compile with c++ compilers (749 bytes, patch)
2006-04-27 11:38 EDT, Jeff Moyer
no flags Details | Diff
simple aio program to test that g++ compiles work (3.16 KB, text/plain)
2006-05-19 10:40 EDT, Jeff Moyer
no flags Details

  None (edit)
Description Jeff Moyer 2006-04-20 14:46:07 EDT
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 11:38:42 EDT
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 10:40:52 EDT
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 11:07:55 EDT
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

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