Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260003 - sys-block/lsiutil-1.60: compilation aborts
Summary: sys-block/lsiutil-1.60: compilation aborts
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Wolfram Schlich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-23 13:06 UTC by Michael Rhyner
Modified: 2009-09-02 02:13 UTC (History)
0 users

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


Attachments
patch I created to circumvent the problem (typedef_uint64_t.patch,315 bytes, text/plain)
2009-02-23 13:10 UTC, Michael Rhyner
Details
Patch for ebuild to include the typedef patch (lsiutil-1.6.0.ebuild.patch,553 bytes, patch)
2009-02-23 13:12 UTC, Michael Rhyner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rhyner 2009-02-23 13:06:50 UTC
>>> Compiling source in /var/tmp/portage/sys-block/lsiutil-1.60/work ...
In file included from /usr/include/inttypes.h:28,
                 from /usr/include/linux/types.h:5,
                 from lsiutil.c:382:
/usr/include/stdint.h:56: error: conflicting types for ‘uint64_t’
lsiutil.c:261: error: previous declaration of ‘uint64_t’ was here


Reproducible: Always

Steps to Reproduce:
1.emerge -v sys-block/lsiutil
2.
3.

Actual Results:  
 * 
 * ERROR: sys-block/lsiutil-1.60 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line  774:  Called die
 * The specific snippet of code:
 *       $(tc-getCC) ${CFLAGS} -o ${PN} ${PN}.c || die "emake failed."
 *  The die message:
 *   emake failed.
 * 


Expected Results:  
lsiutil can be built
Comment 1 Michael Rhyner 2009-02-23 13:10:05 UTC
Created attachment 182885 [details]
patch I created to circumvent the problem

this patch simply comments out the duplicated (and wrong) typedef for uint64_t on 64-bit platforms
Comment 2 Michael Rhyner 2009-02-23 13:12:13 UTC
Created attachment 182887 [details, diff]
Patch for ebuild to include the typedef patch

And here the changes I had to make do the lsiutil ebuild. Source Code Patch goes into the files directory beneath the ebuild, e.g. /usr/local/portage/sys-block/lsiutil/files
Comment 3 Łukasz Damentko (RETIRED) gentoo-dev 2009-02-24 16:40:38 UTC
Thanks for your patches. Reassigning to maintainer.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-09-02 02:13:05 UTC
I fixed this in a different way. Tested with 53c1030 hardware.