I just downloaded protocol buffer (protobuf) 2.5.0 from here. Then I tried to install it on Solaris 8 (SunOS ms-sparc8 5.8). When I try to run make, I got this error.
In file included from google/protobuf/compiler/command_line_interface.h:41, from google/protobuf/compiler/main.cc:33: google/protobuf/stubs/common.h:48:20: stdint.h: No such file or directory
My Solaris dont have
stdint.h. So I tried to put a portable
stdint.h taken from here and put it inside
/usr/include/. After putting in the
stdint.h, I tried to run make again and failed. Then I tried to have a look inside the file thats causing the error (command_line_interface.h & main.cc). I make an assumption that
common.h header file and the problem are caused by common.h. When I look inside the
common.h code, I found this initialization:
#if defined(__osf__) // Tru64 lacks stdint.h, but has inttypes.h which defines a superset of // what stdint.h would define. #include <inttypes.h> #elif !defined(_MSC_VER) #include <stdint.h> #endif
I tried to remove
#include <stdint.h> in
!define(_MSC_VER) and replace it with
<inttypes.h> hoping that it will be forced to use only
inttypes.h. Then again, it fails. So my next guess is because the
__ost__ is not defined. What does that stand for? When I have a look inside the make log, it confuse me even more. If you need to see the make log. I have paste it here. How can I solve this? Does anyone have the same problem when installing protobuf?