Status: New
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

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

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

In file included from ./google/protobuf/message_lite.h:43,
                 from google/protobuf/
./google/protobuf/io/coded_stream.h: In constructor
./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?

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 and

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:

You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to