maintainer-feedback requested: [Bug 228443] devel/cmake: cmake fails to find the 'clog' function (using check_function_exists) in 12
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed May 23 18:43:42 UTC 2018
Bugzilla Automation <bugzilla at FreeBSD.org> has asked kde at FreeBSD.org for
maintainer-feedback:
Bug 228443: devel/cmake: cmake fails to find the 'clog' function (using
check_function_exists) in 12
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228443
--- Description ---
'clog' has been recently added in 12 @ /usr/include/complex.h:104.
However, cmake's check_function_exists doesn't find it, see this log:
http://beefy11.nyi.freebsd.org/data/head-i386-default/p470591_s333820/logs/moon
y-lv2-0.22.0.log
This port's CMakeLists.txt has "check_function_exists(clog
FreeBSD_CLOG_EXISTS)".
The log says that it isn't found (in libraries):
> -- Looking for clog
> -- Looking for clog - not found
But the build later fails because 'clog' is present in the headers:
> lcomplex/lcomplex.c:84:16: error: static declaration of 'clog' follows
non-static declaration
> static Complex clog(Complex z) {return log(cabs(z)) + I * carg(z);}
^
> /usr/include/complex.h:104:16: note: previous declaration is here
> double complex clog(double complex);
> ^
More information about the kde-freebsd
mailing list