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)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: vladimir.sukhoy, Assigned: taras.mozilla)

References

Details

Attachments

(1 file, 1 obsolete file)

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
Attached patch proposed patch (obsolete) — Splinter Review
Vlad can this not be done in cp-tree-jsapi-workaround.h?
(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?
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.
Forward decl would work given that we take out libgen.h include.
I'll just get rid of dirname
Attached patch manual dirnameSplinter Review
Assignee: nobody → tglek
Attachment #318076 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #318243 - Flags: review?(dmandelin)
Attachment #318243 - Flags: review?(dmandelin) → review+
pushed
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Product: Core → Firefox Build System
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: