Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3908: using boost::gil fails when upgrading to libpng-1.4.0
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-03-07 09:01:42
#3908: using boost::gil fails when upgrading to libpng-1.4.0
--------------------------------------+-------------------------------------
Reporter: greg.r.rogers@⦠| Owner: hljin
Type: Bugs | Status: reopened
Milestone: Boost 1.47.0 | Component: GIL
Version: Boost 1.46.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------------+-------------------------------------
Comment (by anonymous):
Hi,
When using boost-1.49.0 with libpng-1.5.9 I also get this:
{{{
/xxxxx/w/slc5_amd64_gcc461/external/boost/1.49.0/include/boost/gil/extension/io/png_io_private.hpp:
I
n member function 'void
boost::gil::detail::png_reader_color_convert<CC>::apply(const View&)':
/xxxxx/w/slc5_amd64_gcc461/external/boost/1.49.0/include/boost/gil/extension/io/png_io_private.hpp:22
8:22: error: 'int_p_NULL' was not declared in this scope
}}}
Grepping the boost tree also finds other occurrences:
{{{
$ egrep -r 'png_infopp_NULL|int_p_NULL'
w/BUILD/slc5_amd64_gcc461/external/boost/1.49.0
w/BUILD/slc5_amd64_gcc461/external/boost/1.49.0/boost_1_49_0/libs/gil/doc/html/g_i_l_0250.html:<a
name="l00091"></a>00091 int_p_NULL, int_p_NULL);
w/BUILD/slc5_amd64_gcc461/external/boost/1.49.0/boost_1_49_0/libs/gil/doc/html/g_i_l_0253.html:<a
name="l00155"></a>00155
png_destroy_read_struct(&_png_ptr,png_infopp_NULL,png_infopp_NULL);
w/BUILD/slc5_amd64_gcc461/external/boost/1.49.0/boost_1_49_0/libs/gil/doc/html/g_i_l_0253.html:<a
name="l00160"></a>00160 png_destroy_read_struct(&_png_ptr,
&_info_ptr, png_infopp_NULL);
w/BUILD/slc5_amd64_gcc461/external/boost/1.49.0/boost_1_49_0/libs/gil/doc/html/g_i_l_0253.html:<a
name="l00174"></a>00174
png_destroy_read_struct(&_png_ptr,&_info_ptr,png_infopp_NULL);
w/BUILD/slc5_amd64_gcc461/external/boost/1.49.0/boost_1_49_0/libs/gil/doc/html/g_i_l_0253.html:<a
name="l00186"></a>00186 int_p_NULL, int_p_NULL);
w/BUILD/slc5_amd64_gcc461/external/boost/1.49.0/boost_1_49_0/libs/gil/doc/html/g_i_l_0253.html:<a
name="l00228"></a>00228 int_p_NULL, int_p_NULL);
w/BUILD/slc5_amd64_gcc461/external/boost/1.49.0/boost_1_49_0/libs/gil/doc/html/g_i_l_0253.html:<a
name="l00317"></a>00317
png_destroy_write_struct(&_png_ptr,png_infopp_NULL);
w/BUILD/slc5_amd64_gcc461/external/boost/1.49.0/boost_1_49_0/boost/gil/extension/io/png_io_private.hpp:
int_p_NULL, int_p_NULL);
}}}
Could you please confirm that the change {{{png_infopp_NULL|int_p_NULL}}}
to {{{NULL}}} would fix the problem?
Cheers,
Diego Gomes.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3908#comment:6> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC