libpng 1.2.5 runtime error

Hi, I upgraded to libpng v1.2.5 from v1.0.14. ( on a

    > linux box, using Agg backend and matplotlib v0.54.2 ) Now
    > I get this Runtime error thrown at _backend_agg.cpp line
    > 948

    > png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING,
    > NULL, NULL, NULL); if (png_ptr == NULL) { fclose(fp);
    > throw Py::RuntimeError("could not create write struct");
    > }

    > Has anyone seen this?

I just tried a built both matplotlib 0.54.2 and CVS against
libpng1.2.5 and was able to save an agg png w/o incident. Make sure
you are not getting old png headers, have a clean matplotlib build,
run ldconfig, etc...