updated libpng to 1.5.4 - last link was broken. #23

merged 1 commit into from Jul 12, 2011

2 participants


Updated libpng to 1.5.4

I ran into an error making the libgd libraries for libwmf- on OSX 10.5.8

Undefined symbols:
"_png_check_sig", referenced from:
_gdImageCreateFromPngCtx in libgd.a(gd_png.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *\ [libwmf.la] Error 1
make[1]: *\ [check-recursive] Error 1
make: *\ [check-recursive] Error 1


the problem above is caused by the removal of the long-deprecated _png_check_sig from libpng as described in the release notes, here.

Changing line 139 in libwmf- from

```if (!png_check_sig (sig, 8))
return NULL; /* bad signature */


```if (!png_sig_cmp (sig, 0, 8) == 0){
     return NULL;   /* bad signature */

fixed the problem for me.

@maddox maddox merged commit 9f79b32 into maddox:master Jul 12, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment