[Bug 287514] devel/boost-libs: 1.88.0 installs the broken function program_location_impl in include/boost/dll/detail/posix/program_location_impl.hpp

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 13 Jun 2025 21:04:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287514

            Bug ID: 287514
           Summary: devel/boost-libs: 1.88.0 installs the broken function
                    program_location_impl in
                    include/boost/dll/detail/posix/program_location_impl.h
                    pp
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: office@FreeBSD.org
          Reporter: yuri@freebsd.org
             Flags: maintainer-feedback?(office@FreeBSD.org)
          Assignee: office@FreeBSD.org

The "buf" symbol in the following BSD-specific code is not defined anywhere:

> namespace boost { namespace dll { namespace detail {
>     inline boost::dll::fs::path program_location_impl(std::error_code& ec) {
>         ec.clear();
> 
>         int mib[4];
>         mib[0] = CTL_KERN;
>         mib[1] = KERN_PROC;
>         mib[2] = KERN_PROC_PATHNAME;
>         mib[3] = -1;
>         char path[1024];
>         size_t size = sizeof(buf);
>         if (sysctl(mib, 4, path, &size, nullptr, 0) == 0)
>             return boost::dll::fs::path(path);

"buf" should be replaced with "path".

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