Bug 43558

Summary: goo/PNGWriter.cc incorrectly relies on png.h to #include <string.h>
Product: poppler Reporter: John Bowler <jbowler>
Component: generalAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description John Bowler 2011-12-06 14:15:20 UTC
The summary says it all; here's the error with libpng 1.6.0:

/PNGWriter.cc: In member function ‘void PNGWriter::setICCProfile(const char*, unsigned char*, int)’:
/home/work-tmp/root/portage/app-text/poppler-0.18.1/work/poppler-0.18.1/goo/PNGWriter.cc:47:29: error: ‘memcpy’ was not declared in this scope
/home/work-tmp/root/portage/app-text/poppler-0.18.1/work/poppler-0.18.1/goo/PNGWriter.cc:49:24: error: ‘strdup’ was not declared in this scope

libpng 1.6.0 is in alpha development but can be obtained from the sourceforge GIT archive (branch libpng16)
Comment 1 Albert Astals Cid 2011-12-06 14:22:12 UTC
Will be fixed in next poppler version, thanks for the report

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.