Rockbox

Tasklist

FS#9006 - Build failure on eg Mac OS X - elf.h

Attached to Project: Rockbox
Opened by Paul Ripke (stix) - Sunday, 18 May 2008, 06:15 GMT
Last edited by Dominik Riebeling (bluebrother) - Wednesday, 16 July 2008, 17:39 GMT
Task Type Bugs
Category Build environment
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

r17553 introduced a dependency on <elf.h> in tools/creative.c, which is not present on all platforms (eg. Mac OS X, probably not too many others - AIX anyone?). I am assuming this is undesirable, and that we'd like to maintain fairly neutral build platform requirements?
This task depends upon

Closed by  Dominik Riebeling (bluebrother)
Wednesday, 16 July 2008, 17:39 GMT
Reason for closing:  Fixed
Comment by Rainer Sinsch (myth) - Wednesday, 21 May 2008, 12:37 GMT
I can confirm this. Rockbox can not be compiled anymore under OS X. Can someone please fix it, or is there at least a workaround available? Maybe someone can post the required elf.h in the meantime.
Comment by Tom Ross (midgey34) - Tuesday, 27 May 2008, 19:23 GMT
As a work around, change #include <elf.h> to #include "elf.h" on line 24 of creative.c. Then copy the attached file to the tools directory.
   elf.h (100.4 KiB)
Comment by Rainer Sinsch (myth) - Tuesday, 27 May 2008, 19:34 GMT
Thanks that works like a treat. Hopefully someone can fix this in the official branch, asap.
Comment by Paul Ripke (stix) - Wednesday, 28 May 2008, 01:01 GMT
I did the same thing - except I used the much smaller elf.h from NetBSD (attached). I should have put that in the initial comment.
   elf.h (32.2 KiB)
Comment by Maurus Cuelenaere (mcuelenaere) - Monday, 14 July 2008, 19:49 GMT
Try this patch, it's still a sort of workaround but after all it's Apple who decided to not include elf.h ...

Loading...