Bug 43558 - goo/PNGWriter.cc incorrectly relies on png.h to #include <string.h>
Summary: goo/PNGWriter.cc incorrectly relies on png.h to #include <string.h>
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-06 14:15 UTC by John Bowler
Modified: 2011-12-06 14:22 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.