[Bug 233765] devel/protobuf: fix build with GCC-based architectures
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Dec 4 07:31:33 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233765
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 at FreeBSD.org
Reporter: pkubaj at anongoth.pl
Assignee: sunpoet at FreeBSD.org
Flags: maintainer-feedback?(sunpoet at FreeBSD.org)
Created attachment 199808
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=199808&action=edit
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 pthread
is available and then defines HAVE_THREAD, but only does so when _THREAD_SAFE
is defined, so we need to add _THREAD_SAFE to CFLAGS.
Tested on powerpc64 and amd64.
Hardware sponsored by IntegriCloud.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list