pan-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pan-users] Pan compilation issues with clang++


From: Heinrich Müller
Subject: Re: [Pan-users] Pan compilation issues with clang++
Date: Fri, 20 Dec 2013 16:32:02 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

I see what you mean. I'll fix this tomorrow if I can.

Cheers.

Am 19.12.2013 01:30, schrieb Rhialto:
On Thu 19 Dec 2013 at 01:14:43 +0100, Rhialto wrote:
Now the big question is: what to do about it?
I see that an attempt to provide patches to fix this was made, but it
was reverted because the fix wasn't correct.

Relevant comments from there were

    ISO C++ is explicit that deque requires a fully defined type, so it is
    not portable to embeded a deque in the same type.

and

    This commit breaks pan completely -- it dies during startup.
    Revert it. Bump PKGREVISION.

See here:
http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/news/pan/patches/?hideattic=0#dirlist

It seems to change the deque embedded in the Entry into a pointer to
such a deque. See
http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/news/pan/patches/Attic/patch-pan_general_log.h?rev=1.1&content-type=text/x-cvsweb-markup&hideattic=0

With that as starting point, can we provide a better fix?

I would naively think that it would need a deque<Entry *>, instead of a
deque<Entry> * (a double ended queue of pointers rather than a pointer
to a double ended queue), because even with a pointer to a deque, its
type parameter is still an incomplete type.

-Olaf.


_______________________________________________
Pan-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/pan-users


reply via email to

[Prev in Thread] Current Thread [Next in Thread]