Closed Bug 1129718 Opened 9 years ago Closed 9 years ago

Build error in Factory.cpp when using --enable-debug and --disable-logging

Categories

(Core :: Graphics, defect)

33 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38
Tracking Status
firefox38 --- fixed

People

(Reporter: cajbir, Assigned: cajbir)

Details

Attachments

(1 file)

When building with the following in .mozconfig I have an error in Factor.cpp:

ac_add_options --enable-tests
ac_add_options --enable-gstreamer
ac_add_options --enable-debug
ac_add_options --disable-logging

The error is:

In file included from obj-x86_64-unknown-linux-gnu/gfx/2d/Unified_cpp_gfx_2d0.cpp:92:0:
 gfx/2d/Factory.cpp:56:2: error: ‘PRLogModuleInfo’ does not name a type
 GFX2D_API PRLogModuleInfo *
    ^
 In the directory  obj-x86_64-unknown-linux-gnu/gfx/2d
Attached patch FixSplinter Review
Use PR_LOGGING only to determine whether to use logging. This is the same conditional define used in gfx/2d/Logging.h to include the declaration of the function.
Assignee: nobody → cajbir.bugzilla
Status: NEW → ASSIGNED
Attachment #8559501 - Flags: review?(bas)
Attachment #8559501 - Flags: review?(bas) → review+
https://hg.mozilla.org/mozilla-central/rev/6aa2335b0f0f
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
TWIMC: the same build error pops up with seamonkey-2.38 given --disable-logging (it's also --disable-debug over here at the moment); the trivially updated patch along with a similar hunk for gfx/2d/Logging.h didn't quite suffice so my current workaround is --enable-logging.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: