Closed
Bug 431100
Opened 17 years ago
Closed 17 years ago
Dehydra Mac port broken (header conflicts) introduced by changeset 235:9a125440ef7d
Categories
(Developer Infrastructure :: Source Code Analysis, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: vladimir.sukhoy, Assigned: taras.mozilla)
References
Details
Attachments
(1 file, 1 obsolete file)
1.01 KB,
patch
|
dmandelin
:
review+
|
Details | Diff | Splinter Review |
An attempt to build dehydra with most recent trunk produces the following error:
In file included from /Users/sukhoy/Mozilla/gcc-dehydra/gcc/gcc/system.h:533,
from dehydra.c:8:
/Users/sukhoy/Mozilla/gcc-dehydra/gcc/gcc/../include/libiberty.h:101: error: conflicting types for ‘basename’
/usr/include/libgen.h:40: error: previous declaration of ‘basename’ was here
Reporter | ||
Comment 1•17 years ago
|
||
Assignee | ||
Comment 2•17 years ago
|
||
Vlad can this not be done in cp-tree-jsapi-workaround.h?
Assignee | ||
Comment 3•17 years ago
|
||
(In reply to comment #1)
> Created an attachment (id=318076) [details]
> proposed patch
>
also while we are doing ugly code, why not just do a forward decl of dirname with a comment explaining why we do things that way?
Reporter | ||
Comment 4•17 years ago
|
||
Technically this is not a conflict between JS and GCC :( It looks like a problem with Apple gcc configure, the prototypes of basename in libiberty.h and in system header libgen.h are different (one has const and another does not) and libgen.h is not used at all, it seems, when building gcc, so configure doesn't see declaration from libgen.h and does not define the macro that turns off libiberty.h's declaration appropriately.
We could put this stuff in that file, but it would be no longer be just a "cp-tree VS jsapi workaround", but a collection of different mac workarounds, so we'd probably have to at least rename the file, I guess.
Reporter | ||
Comment 5•17 years ago
|
||
Forward decl would work given that we take out libgen.h include.
Assignee | ||
Comment 6•17 years ago
|
||
I'll just get rid of dirname
Assignee | ||
Comment 7•17 years ago
|
||
Assignee: nobody → tglek
Attachment #318076 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #318243 -
Flags: review?(dmandelin)
Updated•17 years ago
|
Attachment #318243 -
Flags: review?(dmandelin) → review+
Assignee | ||
Comment 8•17 years ago
|
||
pushed
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Core → Firefox Build System
Updated•3 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•