Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Aug 2019 20:26:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 239627] databases/mysql80-server: fix build with GCC-based architectures
Message-ID:  <bug-239627-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 239627
           Summary: databases/mysql80-server: fix build with GCC-based
                    architectures
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: mmokhi@freebsd.org
          Reporter: pkubaj@FreeBSD.org
          Assignee: mmokhi@freebsd.org
             Flags: maintainer-feedback?(mmokhi@freebsd.org)

Created attachment 206254
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D206254&action=
=3Dedit
patch

With GCC9, this patch is necessary because of:
/wrkdirs/usr/ports/databases/mysql80-server/work/mysql-8.0.16/router/src/ro=
uting/src/mysql_routing.cc:
In function 'int unix_getpeercred(int, pid_t&, uid_t&)':
/wrkdirs/usr/ports/databases/mysql80-server/work/mysql-8.0.16/router/src/ro=
uting/src/mysql_routing.cc:221:16:
error: aggregate 'unix_getpeercred(int, pid_t&, uid_t&)::ucred ucred' has
incomplete type and cannot be defined
  221 |   struct ucred ucred;
      |                ^~~~~
/wrkdirs/usr/ports/databases/mysql80-server/work/mysql-8.0.16/router/src/ro=
uting/src/mysql_routing.cc:224:36:
error: 'SO_PEERCRED' was not declared in this scope; did you mean
'SO_PEERLABEL'?

Since SO_PEERCRED is only available on Linux, don't use this code path.

--=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-239627-7788>