Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

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, 08:15 GMT+2
Last edited by Dominik Riebeling (bluebrother) - Wednesday, 16 July 2008, 19:39 GMT+2
Task Type Bugs
Category Build environment
Status Closed
Assigned To No-one
Player Type All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
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, 19:39 GMT+2
Reason for closing:  Fixed
Comment by Rainer Sinsch (myth) - Wednesday, 21 May 2008, 14:37 GMT+2
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, 21:23 GMT+2
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, 21:34 GMT+2
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, 03:01 GMT+2
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, 21:49 GMT+2
Try this patch, it's still a sort of workaround but after all it's Apple who decided to not include elf.h ...
   mac-elf.diff (5.4 KiB)
 tools/creative.c |    4 +
 tools/mac-elf.h  |  111 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 115 insertions(+)

Loading...