Date: Tue, 04 Dec 2018 07:31:27 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 233765] devel/protobuf: fix build with GCC-based architectures Message-ID: <bug-233765-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233765 Bug ID: 233765 Summary: devel/protobuf: 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: sunpoet@FreeBSD.org Reporter: pkubaj@anongoth.pl Assignee: sunpoet@FreeBSD.org Flags: maintainer-feedback?(sunpoet@FreeBSD.org) Created attachment 199808 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D199808&action= =3Dedit patch After update of protobuf to 3.6.1,1, it fails to build with GCC7 again. Error: google/protobuf/stubs/common.cc:52:2: error: #error "No suitable threading library available." #error "No suitable threading library available." ^~~~~ The problem is that HAVE_PTHREAD is undefined. configure checks whether pth= read is available and then defines HAVE_THREAD, but only does so when _THREAD_SA= FE is defined, so we need to add _THREAD_SAFE to CFLAGS. Tested on powerpc64 and amd64. Hardware sponsored by IntegriCloud. --=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-233765-7788>