Bug 166011 - [patch] devel/protobuf: unbreak with libc++
Summary: [patch] devel/protobuf: unbreak with libc++
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Vanilla I. Shu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-13 15:20 UTC by Jan Beich
Modified: 2012-03-14 15:20 UTC (History)
0 users

See Also:


Attachments
file.diff (720 bytes, patch)
2012-03-13 15:20 UTC, Jan Beich
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer freebsd_triage 2012-03-13 15:20:05 UTC

Fix: --- libc++.diff begins here ---
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<char, std::__1::char_traits<char> >'
  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<char, std::__1::char_traits<char> >'
  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<char, std::__1::char_traits<char> >'
  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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-03-13 15:20:19 UTC
Responsible Changed
From-To: freebsd-ports-bugs->vanilla

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2012-03-14 15:18:48 UTC
vanilla     2012-03-14 15:18:38 UTC

  FreeBSD ports repository

  Added files:
    devel/protobuf/files patch-src-google-protobuf-message.cc 
  Log:
  Fix compile with libc++.
  
  PR:             ports/166011
  Submitted by:   Jan Beich <jbeich at tormail.net>
  Feature safe:   yes
  
  Revision  Changes    Path
  1.1       +10 -0     ports/devel/protobuf/files/patch-src-google-protobuf-message.cc (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Vanilla I. Shu freebsd_committer freebsd_triage 2012-03-14 15:19:03 UTC
State Changed
From-To: open->closed

Committed, thanks.