Zanshin on FreeBSD

Adriaan de Groot groot at kde.org
Mon Dec 28 21:52:38 UTC 2015


On Monday 28 December 2015 21:41:51 Kevin Ottens wrote:
> Hello,
> 
> On Monday 28 December 2015 20:12:55 Adriaan de Groot wrote:
> > I've built Zanshin 0.3-rc1 on FreeBSD 10.1, amd64. It uses clang 3.4. I
...
> > compiler to core out; Using clang 3.6 compiles without the patch, so I
> > guess it's a compiler issue.
> 
> That would be my guess as well. Do you have this issue only on this
> particular std::transform call?

Yes, only that one.

> I'd be tempted to propose you to wrap the
> "&QSortFilterProxyModel::mapToSource" part in Utils::mem_fn. We had issues
> with mem_fn on Mac in the past, that might be something similar and bind in
> that case tries to do some of mem_fn job.

I spent some time futzing with std::mem_fn and variations on std::bind, no 
joy. Everything that compiled had the same linker error, and things that 
seemed sensible to me, like std::bind1st(std::mem_fn(&mapToSource), 
proxyModel()) didn't compile (but I'm not much of a functional-C++-programmer, 
so it may just *seem* sensible).

Anyway, knowing that the problem goes away with clang 3.6, and is patched away 
easily enough, I wouldn;t bother with it further.

> That's an issue we found in user testing as well. You can workaround that by
> selecting a collection as default collection, or you can pull the changes I
> pushed just now which contain a fix for that particular issue.

I can confirm that's fixed in git master (still with my std::transform patch 
applied).

[ade]


More information about the Zanshin-devel mailing list