fuzhufang / google-glog

Automatically exported from code.google.com/p/google-glog
Other
0 stars 0 forks source link

I am getting an error when trying to compile glog on AIX 5.3 machine with 32-bit kernel switch turned on #210

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile using:
g++ -DHAVE_CONFIG_H -I. -I./src  -I./src 
-I/u/home/rmaskara/google-api-cpp-client-0.1/external_dependencies/install/inclu
de  -D_THREAD_SAFE     -Wall -Wwrite-strings -Woverloaded-virtual 
-Wno-sign-compare    -g -O2 -MT logging_unittest-logging_unittest.o -MD -MP -MF 
.deps/logging_unittest-logging_unittest.Tpo -c -o 
logging_unittest-logging_unittest.o `test -f 'src/logging_unittest.cc' || echo 
'./'`src/logging_unittest.cc

2. on AIX 5.3 with kernel 32 bit switch on.

What is the expected output? What do you see instead?
The package gets installed without any error.

What version of the product are you using? On what operating system?
glog-0.3.3. AIX 5.3.0.0
getconf KERNEL_BITMODE returns 32
getconf HARDWARE_BITMODE returns 64

Please provide any additional information below.
I am getting the following errors on compilation:
src/logging_unittest.cc: In function 'void TestLogging(bool)':
src/logging_unittest.cc:242: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:242: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:242: error: expected `;' before 'base_num_infos'
src/logging_unittest.cc:243: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:243: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:243: error: expected `;' before 'base_num_warning'
src/logging_unittest.cc:244: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:244: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:244: error: expected `;' before 'base_num_errors'
src/logging_unittest.cc:277: error: 'base_num_infos' was not declared in this 
scope
src/logging_unittest.cc:278: error: 'base_num_warning' was not declared in this 
scope
src/logging_unittest.cc:279: error: 'base_num_errors' was not declared in this 
scope
src/logging_unittest.cc: In function 'void TestDCHECK()':
src/logging_unittest.cc:567: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:567: error: template argument 1 is invalid
src/logging_unittest.cc:567: error: invalid type in declaration before '(' token
src/logging_unittest.cc:567: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:567: error: expected type-specifier before 'int64'
src/logging_unittest.cc:567: error: expected `)' before 'int64'
src/logging_unittest.cc:567: error: invalid conversion from 'int*' to 'int'
src/logging_unittest.cc:568: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:568: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:568: error: 'ptr' was not declared in this scope
src/logging_unittest.cc:568: error: request for member 'get' in 'sptr', which 
is of non-class type 'int'
src/logging_unittest.cc:569: error: request for member 'get' in 'sptr', which 
is of non-class type 'int'
src/logging_unittest.cc: In static member function 'static void 
Test_CheckNOTNULL_Simple::RunTest()':
src/logging_unittest.cc:597: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:597: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:597: error: expected `;' before 't'
src/logging_unittest.cc:598: error: 't' was not declared in this scope
src/logging_unittest.cc:604: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:604: error: expected type-specifier before 'int64'
src/logging_unittest.cc:604: error: expected `>' before 'int64'
src/logging_unittest.cc:604: error: expected `(' before 'int64'
src/logging_unittest.cc:604: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:604: error: expected primary-expression before '>' token
src/logging_unittest.cc: At global scope:
src/logging_unittest.cc:763: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:763: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:763: error: 'int64' has not been declared
src/logging_unittest.cc:763: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:763: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:763: error: 'int64' has not been declared
src/logging_unittest.cc:764: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:764: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:764: error: 'int64' has not been declared
src/logging_unittest.cc:764: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:764: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:764: error: 'int64' has not been declared
src/logging_unittest.cc:764: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:764: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:764: error: 'int64' has not been declared
src/logging_unittest.cc: In function 'void TestOneTruncate(const char*, int, 
int, int, int, int)':
src/logging_unittest.cc:771: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:771: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:771: error: expected `;' before 'written'
src/logging_unittest.cc:772: error: 'written' was not declared in this scope
src/logging_unittest.cc:773: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:773: error: parse error in template argument list
src/logging_unittest.cc:777: error: 'written' was not declared in this scope
src/logging_unittest.cc:779: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:779: error: parse error in template argument list
src/logging_unittest.cc:799: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:799: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:799: error: expected `;' before 'checked'
src/logging_unittest.cc:800: error: 'checked' was not declared in this scope
src/logging_unittest.cc:801: error: reference to 'int64' is ambiguous
/usr/include/sys/inttypes.h:625: error: candidates are: typedef long long int 
int64
src/glog/logging.h:93: error:                 typedef int64_t google::int64
src/logging_unittest.cc:801: error: parse error in template argument list

Original issue reported on code.google.com by rkmask...@gmail.com on 20 May 2014 at 11:30

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
can somebody please reply to this?

Original comment by maheshba...@gmail.com on 2 Apr 2015 at 11:12