Opened 13 years ago

Closed 13 years ago

#3762 closed defect (fixed)

mapimageio.c contains a call to deprecated (and in libpng-1.4.0 removed) function png_check_sig

Reported by: ejn Owned by: tbonfort
Priority: normal Milestone: 6.0 release
Component: MapServer C Library Version: svn-trunk (development)
Severity: normal Keywords: mapimageio, libpng
Cc:

Description

png_check_sig is deprecated since libpng 0.9, and removed in libpng 1.4.0 so that mapserver can't be built against libpng 1.4.0.

The suggested alternative function is png_sig_cmp.

The attached patch (against r11298) updates mapimageio.c to use png_sig_cmp instead of png_check_sig. After applying this patch, mapserver builds fine with libpng 1.4.0

Attachments (1)

ms-svn-patch_png_check_sig-png_sig_cmp.patch (405 bytes ) - added by ejn 13 years ago.
Patch to use png_sig_cmp instead of png_check_sig

Download all attachments as: .zip

Change History (3)

by ejn, 13 years ago

Patch to use png_sig_cmp instead of png_check_sig

comment:1 by tbonfort, 13 years ago

Owner: changed from sdlime to tbonfort
Status: newassigned

I'll apply it for beta3.

thanks for the patch!

comment:2 by tbonfort, 13 years ago

Resolution: fixed
Status: assignedclosed

fixed in r11311

Note: See TracTickets for help on using tickets.