[Tellico-users] Re: Issues with compilation of tellico with new gcc?

Regis Boudin regis at boudin.name
Fri Feb 18 19:12:23 UTC 2011


Hi Alex,

On Fri, 2011-02-18 at 13:37 -0500, Alex Lancaster wrote:
> > On Thursday 17 February 2011, Alex Lancaster wrote:
> > > /builddir/build/BUILD/tellico-2.3.2/src/3rdparty/pilotdb/libpalm/Block.h
> > > :32:14: error: 'ptrdiff_t' does not name a type
> > >
> > > Is this a known problem with the newer GCC?
> > 
> > It appears to be an issue for multiple applications and libraries,
> > that GCC
> > 4.6 removed some include statements that were previouusly in library
> > headers.
> > 
> > I believe I'll just need to add
> > #include <cstddef>
> > to every file that uses ptrdiff_t
> > 
> > http://lists.fedoraproject.org/pipermail/devel/2011-February/148523.html
> > 
> > Can you give that a shot and let me know if it builds then? I doubt
> > I'll have gcc 4.6 available to me for a bit.
> 
> Sure, if you can send me a patch against the 2.3.2 sources, I'll give it
> a whirl on the Fedora build system.

I fixed the compile error in svn, and they seem to apply cleanly to
2.3.2, so feel free to try the attached patch.

Regis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-4.6-fix.diff
Type: text/x-patch
Size: 1015 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/tellico-users/attachments/20110218/8c74833c/attachment.diff>


More information about the tellico-users mailing list