Michal Hocko | 21 Sep 2011 10:06
Picon

Re: PDFedit 0.4.5 comile failure on gcc/g++ 4.1.2

On Tue, Sep 20, 2011 at 03:08:18PM -0500, Bollinger, John C wrote:
> Hello All,

Hi,

> 
> I am attempting to build PDFedit v 0.4.5 on CentOS 5, using the
> distro's provided GCC 4.1.2 toolchain.  I am encountering a cluster
> of related compilation errors that appear the same as, or at least
> closely related to, the one discussed in this previous thread:
>
> http://sourceforge.net/mailarchive/forum.php?thread_name=20100521074048.GG4000%40tiehlicka.suse.cz&forum_name=pdfedit-support
> 
> I encounter exactly the same compiler error that the OP in that thread reported, plus a few more:
> 
> g++ -c -g -O2   -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -fexceptions  
-fstack-protector -pipe -posix -ansi -std=c++98 -pedantic -I.
-I/home/jbolling/rpm/BUILD/pdfedit-0.4.5/src
-I/home/jbolling/rpm/BUILD/pdfedit-0.4.5/src/xpdf/  -I/usr/include -I/usr/include/freetype2 
-I/usr/include -o cpagecontents.o cpagecontents.cc
> cpagecontents.cc: In member function 'void pdfobjects::CPageContents::addInlineImage(const
std::vector<char, std::allocator<char> >&, const libs::Point&, const libs::Point&)':
> cpagecontents.cc:543: warning: passing 'const double' for argument 1 to
'pdfobjects::CObjectSimple<Tp>::CObjectSimple(const typename
pdfobjects::PropertyTraitSimple<Tp>::value&) [with pdfobjects::PropertyType Tp = pInt]'
> /usr/include/boost/noncopyable.hpp: In copy constructor
'pdfobjects::CObjectSimple<pInt>::CObjectSimple(const pdfobjects::CObjectSimple<pInt>&)':
> /usr/include/boost/noncopyable.hpp:27: error:
'boost::noncopyable_::noncopyable::noncopyable(const boost::noncopyable_::noncopyable&)' is private
> /home/jbolling/rpm/BUILD/pdfedit-0.4.5/src/kernel/cobjectsimple.h:104: error: within this context
(Continue reading)

Bollinger, John C | 21 Sep 2011 16:37

Re: PDFedit 0.4.5 comile failure on gcc/g++ 4.1.2 . .

On Wednesday, September 21, 2011 3:06 AM, Michal Hocko
[mailto:mstsxfx@...] wrote:

[...]

> No. Arguments are deep copied (we are using clone method). Have a
> look
> at CDict::addProperty method.

[...]

> Does the deep copying answers your concern?

After parsing the CDict code and the CInt typdef a bit more, yes it does.  Thank you.  My apologies if I sounded alarmist.

Thanks,

John

Email Disclaimer:  www.stjude.org/emaildisclaimer

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1

Gmane