Skip site navigation (1)Skip section navigation (2)
Message-ID:  <bug-278560-28929@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278560

            Bug ID: 278560
           Summary: www/chromium 124.0.6367.60 on 13.2-RELEASE-p10 compile
                    failure
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: chromium@FreeBSD.org
          Reporter: george@m5p.com
             Flags: maintainer-feedback?(chromium@FreeBSD.org)
          Assignee: chromium@FreeBSD.org

../../third_party/ffmpeg/libavutil/thread.h:228:19: error: call to undeclar=
ed
function 'pthread_setname_np'; ISO C99 and later do not support implicit
function declarations [-Wimplicit-function-declaration]
  228 |     ret =3D AVERROR(pthread_setname_np(pthread_self(), name));
      |                   ^
m../../third_party/ffmpeg/libavutil/thread.h:228:19: note: did you mean
'pthread_set_name_np'?
/usr/include/pthread_np.h:67:6: note: 'pthread_set_name_np' declared here
   67 | void pthread_set_name_np(pthread_t, const char *);
      |      ^
1 error generated.


In short, the problem seems to be that HAVE_PTHREAD_SETNAME_NP was set duri=
ng
the configuration phase of things instead HAVE_PTHREAD_SET_NAME_NP.  In ord=
er
to be able to compile, I changed lines 225 and following of
third_party/ffmpeg/libavutil/thread.h to:

static inline int ff_thread_setname(const char *name)
{
    int ret =3D 0;

    pthread_set_name_np(pthread_self(), name);

    return ret;
}


Clearly not the right fix!  But I'm testing right now (i.e. for at least the
next couple of hours) to see if it lets me finish the compile.  Perhaps an
expert on the configuration phase can point me in the right direction.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-278560-28929>