Closed Bug 615528 Opened 14 years ago Closed 14 years ago

gfx/ots/src/Makefile.in randomly clobbers VISIBILITY_FLAGS ifndef MOZ_ENABLE_LIBXUL instead of using config/system-headers

Categories

(Core :: Graphics, defect)

x86_64
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b8

People

(Reporter: timeless, Assigned: timeless)

Details

Attachments

(1 file, 1 obsolete file)

ld: warning: ots::OTSStream::Write(void const*, unsigned long)has different visibility (default) in ../../gfx/ots/src/libmozots.a(vdmx.o) and (hidden) in gfxUserFontSet.o
[lots of these]

ld: warning: unsigned long const& std::min<unsigned long>(unsigned long const&, unsigned long const&)has different visibility (default) in ../../gfx/ots/src/libmozots.a(ots.o) and (hidden) in gfxUserFontSet.o
[a handful of these]

this crude patch "fixed" the above warnings:
diff --git a/gfx/ots/include/opentype-sanitiser.h b/gfx/ots/include/opentype-sanitiser.h
--- a/gfx/ots/include/opentype-sanitiser.h
+++ b/gfx/ots/include/opentype-sanitiser.h
@@ -7,2 +7,4 @@
 
+#pragma GCC visibility push(default)
+
 #if defined(_MSC_VER)

@@ -185,2 +190,4 @@ void DisableDebugOutput();
 
+#pragma GCC visibility pop
+
 #endif  // OPENTYPE_SANITISER_H_

I'll post the more correct patch to config/system-headers after i get off battery power and can verify it works
ok, glandium figured this out, it happens ifndef MOZ_ENABLE_LIBXUL, because of a random block in the Makefile.
Summary: opentype-sanitiser.h needs to be added to config/system-headers → gfx/ots/src/Makefile.in randomly clobbers VISIBILITY_FLAGS ifndef MOZ_ENABLE_LIBXUL
Summary: gfx/ots/src/Makefile.in randomly clobbers VISIBILITY_FLAGS ifndef MOZ_ENABLE_LIBXUL → gfx/ots/src/Makefile.in randomly clobbers VISIBILITY_FLAGS ifndef MOZ_ENABLE_LIBXUL instead of using config/system-headers
Attached patch this fixes disable-libxul (obsolete) — Splinter Review
Assignee: nobody → timeless
Status: NEW → ASSIGNED
Attachment #494062 - Flags: review?(khuey)
Attachment #494062 - Flags: feedback?(mh+mozilla)
Comment on attachment 494062 [details] [diff] [review]
this fixes disable-libxul

Well, apparently the system wrapper is not even necessary.
Attachment #494062 - Flags: feedback?(mh+mozilla) → feedback-
Attached patch patchSplinter Review
Attachment #494062 - Attachment is obsolete: true
Attachment #494973 - Flags: review?(khuey)
Attachment #494973 - Flags: approval2.0?
Attachment #494973 - Flags: approval2.0? → approval2.0+
Keywords: checkin-needed
http://hg.mozilla.org/mozilla-central/rev/56dd675c96f3
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b8
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: