[Bug 234180] getrandom linking problem due to missing macros in sys/random.h

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Dec 19 21:03:36 UTC 2018


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

            Bug ID: 234180
           Summary: getrandom linking problem due to missing macros in
                    sys/random.h
           Product: Base System
           Version: 12.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: tremere at cainites.net

Created attachment 200284
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=200284&action=edit
Add missing macros for C++ linking

While testing a new version of an application I ran into a linking error. It
appears c++ sources including sys/random.h fail linking due to a missing
reference to getrandom. This is caused by missing __BEGIN_DECLS/__END_DECLS in
sys/random.h

Supplied patch remedies the problem, but it might need review by a C++ guru
(which I'm not).

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


More information about the freebsd-bugs mailing list