[Bug 248726] devel/cmake: fails to build on GCC architectures

[email protected]
Newsgroups gmane.os.freebsd.devel.ppc
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248726

--- Comment #2 from [email protected] ---
A commit references this bug:

Author: pkubaj
Date: Tue Aug 18 15:10:09 UTC 2020
New revision: 545234
URL: https://svnweb.freebsd.org/changeset/ports/545234

Log:
  devel/cmake: fix build on GCC architectures

  Manually define __BSD_VISIBLE to make timespec_get() available:
  In file included from /usr/local/lib/gcc9/include/c++/chrono:41,
                   from
/wrkdirs/usr/ports/devel/cmake/work/cmake-3.18.1/Source/cmDuration.h:5,
                   from
/wrkdirs/usr/ports/devel/cmake/work/cmake-3.18.1/Source/cmSystemTools.h:19,
                   from
/wrkdirs/usr/ports/devel/cmake/work/cmake-3.18.1/Source/cmSystemTools.cxx:13:
  /usr/local/lib/gcc9/include/c++/ctime:80:11: error: '::timespec_get' has not
been declared
     80 |   using ::timespec_get;
        |           ^~~~~~~~~~~~

  PR:           248726

Changes:
  head/devel/cmake/Makefile

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.