From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Mar 13 15:20:05 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B3EEC1065673 for ; Tue, 13 Mar 2012 15:20:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8FF5F8FC12 for ; Tue, 13 Mar 2012 15:20:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2DFK5l2097794 for ; Tue, 13 Mar 2012 15:20:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2DFK5OO097793; Tue, 13 Mar 2012 15:20:05 GMT (envelope-from gnats) Resent-Date: Tue, 13 Mar 2012 15:20:05 GMT Resent-Message-Id: <201203131520.q2DFK5OO097793@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jan Beich Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EEE95106564A for ; Tue, 13 Mar 2012 15:18:46 +0000 (UTC) (envelope-from jbeich@tormail.net) Received: from server2.allsitecontrol.com (server2.allsitecontrol.com [63.143.36.210]) by mx1.freebsd.org (Postfix) with ESMTP id 9A8038FC08 for ; Tue, 13 Mar 2012 15:18:46 +0000 (UTC) Received: from bouazizi.torservers.net ([74.120.13.132]:52395 helo=internal.tormail.net) by server2.allsitecontrol.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.69) (envelope-from ) id 1S7TTN-002CUq-Fd for FreeBSD-gnats-submit@freebsd.org; Tue, 13 Mar 2012 10:17:40 -0500 Received: from jbeich by internal.tormail.net with local (Exim 4.63) (envelope-from ) id 1S7TQz-000M5Y-Ji for FreeBSD-gnats-submit@freebsd.org; Tue, 13 Mar 2012 15:14:47 +0000 Message-Id: <1S7TQz-000M5Y-Ji@internal.tormail.net> Date: Sat, 10 Mar 2012 20:00:47 +1000 From: Jan Beich To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/166011: [patch] devel/protobuf: unbreak with libc++ X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Mar 2012 15:20:05 -0000 >Number: 166011 >Category: ports >Synopsis: [patch] devel/protobuf: unbreak with libc++ >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Mar 13 15:20:05 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Jan Beich >Release: FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: WITH_LIBCPLUSPLUS= CXX = clang++ CFLAGS += -stdlib=libc++ CFLAGS += -D_DECLARE_C99_LDBL_MATH # mypaint wants it >Description: >How-To-Repeat: $ make [...] /bin/sh ../libtool --tag=CXX --mode=compile clang++ -DHAVE_CONFIG_H -I. -I.. -D_THREAD_SAFE -pthread -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -pipe -stdlib=libc++ -MT message.lo -MD -MP -MF .deps/message.Tpo -c -o message.lo `test -f 'google/protobuf/message.cc' || echo './'`google/protobuf/message.cc libtool: compile: clang++ -DHAVE_CONFIG_H -I. -I.. -D_THREAD_SAFE -pthread -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -pipe -stdlib=libc++ -MT message.lo -MD -MP -MF .deps/message.Tpo -c google/protobuf/message.cc -fPIC -DPIC -o .libs/message.o google/protobuf/message.cc:130:60: error: implicit instantiation of undefined template 'std::__1::basic_istream >' return ParseFromZeroCopyStream(&zero_copy_input) && input->eof(); ^ /usr/include/c++/v1/iosfwd:108:27: note: template is declared here class _LIBCPP_VISIBLE basic_istream; ^ google/protobuf/message.cc:135:67: error: implicit instantiation of undefined template 'std::__1::basic_istream >' return ParsePartialFromZeroCopyStream(&zero_copy_input) && input->eof(); ^ /usr/include/c++/v1/iosfwd:108:27: note: template is declared here class _LIBCPP_VISIBLE basic_istream; ^ google/protobuf/message.cc:175:16: error: implicit instantiation of undefined template 'std::__1::basic_ostream >' return output->good(); ^ /usr/include/c++/v1/iosfwd:110:27: note: template is declared here class _LIBCPP_VISIBLE basic_ostream; ^ 3 errors generated. gmake[2]: *** [message.lo] Error 1 >Fix: --- libc++.diff begins here --- Index: devel/protobuf/files/patch-src-google-protobuf-message.cc =================================================================== RCS file: devel/protobuf/files/patch-src-google-protobuf-message.cc diff -N devel/protobuf/files/patch-src-google-protobuf-message.cc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ devel/protobuf/files/patch-src-google-protobuf-message.cc 20 Feb 2012 21:03:04 -0000 @@ -0,0 +1,10 @@ +--- src/google/protobuf/message.cc~ ++++ src/google/protobuf/message.cc +@@ -32,6 +32,7 @@ + // Based on original Protocol Buffers design by + // Sanjay Ghemawat, Jeff Dean, and others. + ++#include + #include + #include + --- libc++.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: