Closed Bug 536184 Opened 15 years ago Closed 15 years ago

Fails to build with libpng 1.4 betas

Categories

(Core :: Graphics: ImageLib, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.9.3a1

People

(Reporter: bero, Assigned: glennrp+bmo)

References

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux; en-US) AppleWebKit/532.4 (KHTML, like Gecko) Arora/0.10.1 Safari/532.4 Build Identifier: Firefox 3.6b5 libpr0n/encoders/png/nsPNGEncoder.cpp fails to build with libpng 1.4 betas because png_voidp_NULL is no longer defined. Given png_voidp_NULL has never been defined to anything but (void*)0, the obvious fix is safe and doesn't break building with older libpng versions. Reproducible: Always Steps to Reproduce: 1. Install libpng 1.4beta, apply apng patch 2. Configure firefox 3.6b5 for use with system libpng 3. make Actual Results: Errors out Expected Results: Compiles and works
Attached patch FixSplinter Review
Attachment #418652 - Flags: review?
Component: General → ImageLib
QA Contact: general → imagelib
OK except maybe better to change it to NULL instead of 0
Assignee: nobody → glennrp+bmo
(In reply to comment #2) > OK except maybe better to change it to NULL instead of 0 Better yet, to "nsnull" along with the other NULL in the file.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
I will include the fix (using nsnull) in the patch to upgrade to libpng-1.4.0 (bug #532645), which we expect to publish on January 3, 2010.
Depends on: 532645
Fixed by patch in bug 532645.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a1
Attachment #418652 - Flags: review?
Blocks: 532645
No longer depends on: 532645
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: