Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103427 - dev-util/strace-4.5.12 fails to build if libaio installed
Summary: dev-util/strace-4.5.12 fails to build if libaio installed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://sourceforge.net/tracker/index....
Whiteboard:
Keywords:
: 112914 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-23 03:08 UTC by Mathieu Seigneurin
Modified: 2005-11-19 23:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix iocb in desc.c (strace-4.5.12-libaio.patch,613 bytes, patch)
2005-08-23 03:12 UTC, Mathieu Seigneurin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Seigneurin 2005-08-23 03:08:34 UTC
strace-4.5.12 does not build if it finds libaio-0.3.15 installed.  
Seems that there is a mismatch between the declaration of iocb 
in libaio.h and what desc.c is expecting. 
libaio.h defines iocb.aio_data (and .aio_key) 
desc.c expects   iocb.data     (and .key) 

Reproducible: Always
Steps to Reproduce:
1. emerge libaio (0.3.15) 
2. emerge strace 
 
Actual Results:  
Error compiling desc.c: 
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -Ilinux/x86_64 
-I./linux/x86_64 -Ilinux -I./linux   -Wall -pipe -O2 -mtune=athlon64 -MT ipc.o 
-MD -MP -MF ".deps/ipc.Tpo" -c -o ipc.o ipc.c; \ 
then mv -f ".deps/ipc.Tpo" ".deps/ipc.Po"; else rm -f ".deps/ipc.Tpo"; exit 1; 
fi 
desc.c: In function `sys_io_submit': 
desc.c:770: error: structure has no member named `data' 
desc.c:770: error: structure has no member named `key' 
desc.c: In function `sys_io_cancel': 
desc.c:796: error: structure has no member named `data' 
desc.c:796: error: structure has no member named `key' 
desc.c:811: warning: format argument is not a pointer (arg 2) 
desc.c:811: warning: format argument is not a pointer (arg 3) 
desc.c:811: warning: long int format, __s64 arg (arg 4) 
desc.c:811: warning: long int format, __s64 arg (arg 5) 
desc.c: In function `sys_io_getevents': 
desc.c:848: warning: format argument is not a pointer (arg 2) 
desc.c:848: warning: format argument is not a pointer (arg 3) 
desc.c:848: warning: long int format, __s64 arg (arg 4) 
desc.c:848: warning: long int format, __s64 arg (arg 5) 
 

Expected Results:  
Smoooth compile. 

Not sure if this is amd64 related, actually, but I don't have an x86 handy. 
Tentative patch will be attached.
Comment 1 Mathieu Seigneurin 2005-08-23 03:12:56 UTC
Created attachment 66634 [details, diff]
fix iocb in desc.c

This is probably dependant on a recent libaio version...
Comment 2 SpanKY gentoo-dev 2005-08-23 19:11:05 UTC
fixed in cvs, thanks
Comment 3 Volker Hemmann 2005-11-13 18:30:51 UTC
Hi, 
 
I got hit by the problem tonight. 
 
So when does the fix goes from cvs into the life portage tree ? ;) 
Comment 4 SpanKY gentoo-dev 2005-11-13 20:53:44 UTC
it's already in portage
Comment 5 Erik Zeek 2005-11-17 11:30:43 UTC
This patch breaks x86 strace ebuild with libaio-0.3.104.  This version of libaio
has the iocb.data and iocb.key members.
Comment 6 SpanKY gentoo-dev 2005-11-18 07:15:34 UTC
*** Bug 112914 has been marked as a duplicate of this bug. ***
Comment 7 SpanKY gentoo-dev 2005-11-19 23:01:24 UTC
*** Bug 112914 has been marked as a duplicate of this bug. ***
Comment 8 SpanKY gentoo-dev 2005-11-19 23:01:47 UTC
should update configure to detect the proper member name of aio
Comment 9 SpanKY gentoo-dev 2005-11-19 23:34:25 UTC
patch now checks to see what version of libaio it is building against and uses
the appropriate structure members