Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: called object type 'unsigned int' is not a function or function pointer #220

Open
yurivict opened this issue Sep 22, 2020 · 1 comment

Comments

@yurivict
Copy link

In file included from /wrkdirs/usr/ports/graphics/photoflow/work/PhotoFlow-8472024f/src/vips/gmic/gmic/src/gmic.cpp:1964:
In file included from /wrkdirs/usr/ports/graphics/photoflow/work/PhotoFlow-8472024f/src/vips/gmic/gmic/src/gmic.h:152:
In file included from /usr/include/c++/v1/locale:181:
In file included from /usr/include/c++/v1/__locale:14:
In file included from /usr/include/c++/v1/string:506:
In file included from /usr/include/c++/v1/string_view:175:
In file included from /usr/include/c++/v1/__string:57:
/usr/include/c++/v1/algorithm:2626:12: error: called object type 'unsigned int' is not a function or function pointer
    return __comp(__a, __b) ? __b : __a;
           ^~~~~~
/wrkdirs/usr/ports/graphics/photoflow/work/PhotoFlow-8472024f/src/vips/gmic/gmic/src/./CImg.h:32846:63: note: in instantiation of function template specialization 'std::__1::max<unsigned int, unsigned int>' requested here
      const float nboxsize = boxsize>=0?boxsize:-boxsize*std::max(_width,_height,_depth)/100;
                                                              ^
1 error generated.

Log: http://beefy18.nyi.freebsd.org/data/head-amd64-default/p549547_s365984/logs/photoflow-0.2.8.20200828.log (IPv6 URL)

Revision 8472024
FreeBSD 12.2
clang-10

@yurivict
Copy link
Author

You've bundled the old GMIC, version 1.7.1, when the latest GMIC is 2.9.2. clang-10 breaks on GMIC-1.7.1.

Could you please allow to use the external GMIC because it is packaged for virtually all systems: https://repology.org/project/gmic/versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant