This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
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+1
Last edited by Dominik Riebeling (bluebrother) - Wednesday, 16 July 2008, 19:39 GMT+1
Opened by Paul Ripke (stix) - Sunday, 18 May 2008, 08:15 GMT+1
Last edited by Dominik Riebeling (bluebrother) - Wednesday, 16 July 2008, 19:39 GMT+1
|
Detailsr17553 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+1
Reason for closing: Fixed
Wednesday, 16 July 2008, 19:39 GMT+1
Reason for closing: Fixed
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.
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.
Thanks that works like a treat. Hopefully someone can fix this in the official branch, asap.
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.
Try this patch, it's still a sort of workaround but after all it's Apple who decided to not include elf.h ...