[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


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228443

            Bug ID: 228443
           Summary: devel/cmake: cmake fails to find the 'clog' function
                    (using check_function_exists) in 12
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: kde at FreeBSD.org
          Reporter: yuri at freebsd.org
             Flags: maintainer-feedback?(kde at FreeBSD.org)
          Assignee: kde at FreeBSD.org

'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/moony-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);
>                 ^

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the kde-freebsd mailing list