Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Mar 2024 18:59:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 277995] devel/p4: fails to build after SHUT_RD and friend were changed to enum
Message-ID:  <bug-277995-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 277995
           Summary: devel/p4: fails to build after SHUT_RD and friend were
                    changed to enum
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: dim@FreeBSD.org
                CC: antonfb@hesiod.org
             Flags: maintainer-feedback?(antonfb@hesiod.org)
                CC: antonfb@hesiod.org

In https://cgit.freebsd.org/src/commit/?id=3Dc3276e02beab8, the SHUT_RD, SH=
UT_WR
and SHUT_RDWR constants were changed from #defines to enum values.

This breaks devel/p4:

net/nettcptransport.cc:821:16: error: use of undeclared identifier 'SD_SEND'
  821 |                 shutdown( t, SD_SEND );
      |                              ^

The code does:

#if defined(SHUT_WR) // POSIX
                shutdown( t, SHUT_WR );
#else // Windows
                shutdown( t, SD_SEND );
#endif

so it could be kludged around by #defining SHUT_WR, etc via CXXFLAGS.

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