zhangjl / google-glog

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

Build failure for arm-linux #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./configure --host=arm-linux --target=arm-linux
--prefix=/usr/local/arm-linux/
2. make

What is the expected output? What do you see instead?
Expected output: no errors during make

output for glog-0.3.0 :
src/symbolize.cc: In function `ssize_t google::ReadPersistent(int, void*, 
   unsigned int)':
src/symbolize.cc:124: error: `SSIZE_MAX' undeclared (first use this function)
src/symbolize.cc:124: error: (Each undeclared identifier is reported only once 
   for each function it appears in.)
make: *** [libglog_la-symbolize.lo] Error 1

What version of the product are you using? On what operating system?
Fedora 11 64 bit
tool-chain arm-linux-g++ 3.2.2 

Please provide any additional information below.
As workaround I added this code to symbolize.cc :
#ifndef SSIZE_MAX
#define SSIZE_MAX 0x7fffffff
#endif

Original issue reported on code.google.com by jher...@gmail.com on 30 Oct 2009 at 6:59

GoogleCodeExporter commented 9 years ago
Thanks for this report. I'd like to put your workaround code as is. I think I 
need to 
ask you to sign Google's CLA. Could you sign electronically in the following 
site? It 
would only take a minute or so.

http://code.google.com/legal/individual-cla-v1.0.html

Thanks!

Original comment by shinichi...@gmail.com on 30 Oct 2009 at 7:31

GoogleCodeExporter commented 9 years ago
Done - I signed it yesterday.

Original comment by jher...@gmail.com on 2 Nov 2009 at 9:37

GoogleCodeExporter commented 9 years ago
Fixed in

http://code.google.com/p/google-glog/source/detail?r=73

I used a bit different approach for this as there may be another environments 
where 
SSIZE_MAX isn't 0x7fffffff. If this fix doens't work, please let me know.

Original comment by shinichi...@gmail.com on 11 Nov 2009 at 9:09