Status: New
Owner: ken...@google.com
Labels: Type-Defect Priority-Medium

New issue 164 by jonauer: coded_stream.h needs limits.h to compile on Solaris 10 with GCC 4.3
http://code.google.com/p/protobuf/issues/detail?id=164

What steps will reproduce the problem?
1. ./configure
2. gmake

What is the expected output? What do you see instead?
Expected: Successful compile.

Error:
In file included from ./google/protobuf/message_lite.h:43,
                 from google/protobuf/extension_set.cc:39:
./google/protobuf/io/coded_stream.h: In constructor
'google::protobuf::io::CodedInputStream::CodedInputStream(google::protobuf::io::ZeroCopyInputStream*)':
./google/protobuf/io/coded_stream.h:1047: error: 'INT_MAX' was not declared
in this scope

I can successfully compile after adding #include <limits.h> to coded_stream.h.

What version of the product are you using? On what operating system?
protobuf-2.3.0

uname -av:
SunOS jdev 5.10 Generic_139555-08 sun4u sparc SUNW,Sun-Fire-480R

gcc -v:
Using built-in specs.
Target: sparc-sun-solaris2.8
Configured with: ../gcc-4.3.3/configure --prefix=/opt/csw/gcc4
--exec-prefix=/opt/csw/gcc4 --with-gnu-as --with-as=/opt/csw/bin/gas
--without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-nls
--with-included-gettext --with-libiconv-prefix=/opt/csw --with-x
--with-mpfr=/opt/csw --with-gmp=/opt/csw --enable-java-awt=xlib
--enable-libada --enable-libssp --enable-objc-gc --enable-threads=posix
--enable-stage1-languages=c --enable-languages=ada,c,c++,fortran,java,objc
Thread model: posix
gcc version 4.3.3 (GCC)

Please provide any additional information below.
Apparently this is due to a change in header dependencies starting with GCC
4.3. See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28080 and
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=413417


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to