Your message dated Sun, 15 May 2016 13:49:05 +0000
with message-id <[email protected]>
and subject line Bug#733231: fixed in png++ 0.2.9-1
has caused the Debian Bug report #733231,
regarding libpng++-dev fails to compile, but patch is available upstream...
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
733231: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=733231
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libpng++-dev
Version: 0.2.5-1

When trying to compile https://github.com/Malvineous/libgamegraphics I got an 
error during configure:

checking if png++ is new enough... configure: error: png++ is too old.
Please download and install png++ newer than 0.2.5.

However when I checked I did have png++ 0.2.5 or newer:

host$ dpkg -l libpng++-dev | tail -1
ii  libpng++-dev                0.2.5-1            all                C++ 
interface to the PNG (Portable Network Graphics) library

So I went about digging through config.log and found that the program configure 
was compiling to determine if the installed png++ was>= 0.2.5 caused ae error.
I distilled the program further and arrived at this:

host$ cat bug.cpp
#include <png++/png.hpp>
int main ()
{
    std::string fn;
    png::image<png::index_pixel> png(fn);
    return 0;
}

When I try to compile this I get an error message:

host$ g++ -o bug -I/usr/include/libpng12 bug.cpp -lpng
In file included from /usr/include/png++/png.hpp:55:0,
                 from bug.cpp:1:
/usr/include/png++/consumer.hpp: In instantiation of ‘void png::consumer<pixel, 
pixcon, info_holder, interlacing_supported>::read(istream&, const 
transformation&) [with istream = std::basic_ifstream<char>; transformation = 
png::convert_color_space<png::index_pixel>; pixel
/usr/include/png++/image.hpp:240:13:   required from ‘void 
png::image<pixel>::read_stream(istream&, const transformation&) [with istream = 
std::basic_ifstream<char>; transformation = 
png::convert_color_space<png::index_pixel>; pixel = png::index_pixel]’
/usr/include/png++/image.hpp:200:42:   required from ‘void 
png::image<pixel>::read(const char*, const transformation&) [with 
transformation = png::convert_color_space<png::index_pixel>; pixel = 
png::index_pixel]’
/usr/include/png++/image.hpp:175:45:   required from ‘void 
png::image<pixel>::read(const string&, const transformation&) [with 
transformation = png::convert_color_space<png::index_pixel>; pixel = 
png::index_pixel; std::string = std::basic_string<char>]’
/usr/include/png++/image.hpp:107:47:   required from 
‘png::image<pixel>::image(const string&) [with pixel = png::index_pixel; 
std::string = std::basic_string<char>]’
bug.cpp:5:40:   required from here
/usr/include/png++/consumer.hpp:162:25: error: no match for call to ‘(const 
png::convert_color_space<png::index_pixel>) 
(png::reader<std::basic_ifstream<char>>&)’
             transform(rd);
                         ^

At this point I started browsing the patches applied to png++ after 0.2.5 was
released to see if there was anything that could solve my problem. After some
digging I found that r120 indeed contained a patch that resolved the error:

http://svn.savannah.nongnu.org/viewvc?view=rev&root=pngpp&revision=120
http://svn.savannah.nongnu.org/viewvc/trunk/convert_color_space.hpp?root=pngpp&r1=109&r2=120&pathrev=120

I applied these changes and afterwards I could compile the program without 
errors:

host$ g++ -o bug -I/usr/include/libpng12 bug.cpp -lpng
host$ echo $?
0

Running the program still fails, but configure never actually links the program,
so this is expected:
host$ ./bug
terminate called after throwing an instance of 'png::std_error'
  what():  : No such file or directory
Aborted

For your reference I'm using this version of g++:
host$ dpkg -l g++ | tail -1
ii  g++                         4:4.8.1-3          amd64              GNU C++ 
compiler

I would appreciate if at least the patch in r120 was applied in Debians repo
and released as 0.2.5-2 or similar. This would mean that I would no longer
encounter an error. Thanks! :)

 / Sebastian                                      

--- End Message ---
--- Begin Message ---
Source: png++
Source-Version: 0.2.9-1

We believe that the bug you reported is fixed in the latest version of
png++, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Tobias Frost <[email protected]> (supplier of updated png++ package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 15 May 2016 15:33:07 +0200
Source: png++
Binary: libpng++-dev
Architecture: source all
Version: 0.2.9-1
Distribution: unstable
Urgency: medium
Maintainer: Jonas Smedegaard <[email protected]>
Changed-By: Tobias Frost <[email protected]>
Description:
 libpng++-dev - C++ interface to the PNG (Portable Network Graphics) library
Closes: 733231
Changes:
 png++ (0.2.9-1) unstable; urgency=medium
 .
   * New upstream release. (Closes: #733231)
   * Add myself to Uploaders, thanks Jonas for the offer.
   * Also adding myself to d/copyright.
   * Refresh patch 1001_avoid_MAKEFLAGS.patch.
   * Remove patch 1002-libpng16.patch, no longer needed.
   * Changing to short debhelper format:
     - refactor d/rules.
     - drop B-D on cdbs and dh_buildinfo.
     - introduce d/clean, /*.install, d/*.docs and d/*.examples.
     - drop d/README.source, d/copyright_hints and d/control.in.
   * Bump S-V to 3.9.6, no changes required.
   * Fix also VCS-Git to canonical format.
   * New patch 1004-use-imagemagick-compare-for-testsuite.patch, avoiding
     rounding errors in the testsuite by allowing some fuzz. This requires
     imagemagick as new B-D.
   * Add a lintian override for doxygen's jquery.
Checksums-Sha1:
 8db604e955a9eddacac116a639d79cf95cab8027 1895 png++_0.2.9-1.dsc
 024ce64b0a473984637ab2be1ef535cc744488e9 592770 png++_0.2.9.orig.tar.gz
 481c7652c11c3e33a9d4b5a9e3f9c0b27138e23a 5200 png++_0.2.9-1.debian.tar.xz
 d85f7767ee0f552a96be60506c06d314a69f7244 252660 libpng++-dev_0.2.9-1_all.deb
Checksums-Sha256:
 c18c8d61bdebdd9c838b8ec76d3603c0dbb9fcacb228bceaa47e301ae30c8d38 1895 
png++_0.2.9-1.dsc
 abbc6a0565122b6c402d61743451830b4faee6ece454601c5711e1c1b4238791 592770 
png++_0.2.9.orig.tar.gz
 31170f872c7b69f637a3456683fed0ad4f2155f7697b4241bfbec687cf17d1e2 5200 
png++_0.2.9-1.debian.tar.xz
 72976bb414de8a1e51de436b2f1e098d1618f816e9be7c6281de92ef35af8319 252660 
libpng++-dev_0.2.9-1_all.deb
Files:
 89d492bd47d8c671b0be6587cf89fe2a 1895 libs optional png++_0.2.9-1.dsc
 92863df3bee625d707cebc0e749c10df 592770 libs optional png++_0.2.9.orig.tar.gz
 2c5c090e731efe12d651d0d1c307b753 5200 libs optional png++_0.2.9-1.debian.tar.xz
 9d792c86b7cb24042a2ee69866e01b8f 252660 libdevel optional 
libpng++-dev_0.2.9-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJXOHxLAAoJEJFk+h0XvV024wYP/1d9zKQTfH7gfsggrMQxIpUE
qYncdsmF8G5w3TKyGvJ9YmvUYuUno8UZkZV5yXAvBdMvh0+GNOIcnxL/Jmg4xuwS
bvGsLlPfxrh7ccWHQ8noX+Zq/ppvtF8/0uzyKZb809vYM3tLDXmOCNyQwARyuhi2
++pwTGlRWs5VB726b57aKqWBcw+D2z5X1PK0IGPXDPK4nE/ml4KsnEeJtUVoulwc
0HzG5wvqNJAsw6BRXiyTKLqq/u24xlOoT1raGUxxtF6iGoBBK1UUp2AOg+UQFWAg
PMbb7RRkaLLsKfHKrzsTcygLLK9SDg6Xo7NJLBTmP7u9AIPpG5388pwT8TBmuVeb
dnIxLodmn+GsspgOTZhj00EcrZDwZZeQThb4YRALojjcJIS/dY/i2CpWlN2e0Y4z
LwS6j0TvnGaAdR7YFXsGg/or/ghG5lLQq3hUWQmb9xo4N+/SJx5WkaFJ3spa77XP
d2j/tRcY3eEaeKMD7aCF8iYgNSNz7Xvllb3x2a5xQXcaZSIpd0GQjQfaV2znkNb3
ARCTW6Pa4cm40YPCapFhSF1O9Au3bpsQyrd1vfW0y9cZDAvU3TG1a3IocT9xaRny
4qkVeiCT+eZJaHl2fEWGhDw6hq1B3OUGl6ZPh09jNU7j9FUeGnqymwX/wAX+crde
NoYstQZOEBFX37D6L3Bv
=jcdP
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to