Issue #6948 has been reported by drbrain (Eric Hodel).

----------------------------------------
Bug #6948: addr2line.c does not compile on FreeBSD 8
https://bugs.ruby-lang.org/issues/6948

Author: drbrain (Eric Hodel)
Status: Open
Priority: Normal
Assignee: 
Category: core
Target version: 2.0.0
ruby -v: -


=begin
  addr2line.c: In function 'fill_lines':
  addr2line.c:462: error: 'SIZE_MAX' undeclared (first use in this function)
  addr2line.c:462: error: (Each undeclared identifier is reported only once
  addr2line.c:462: error: for each function it appears in.)

On FreeBSD 8, ((|SIZE_MAX|)) is in sys/_stdint.h which is included from sys/stdint.h, but not any of the includes listed.  Since ruby/ruby.h also provides ((|SIZE_MAX|)) I tried including it which fixes the problem.

I believe this was introduced with r36755

Please see the attached patch.
=end



-- 
http://bugs.ruby-lang.org/