Bug #6948

addr2line.c does not compile on FreeBSD 8

Added by Eric Hodel about 3 years ago. Updated about 3 years ago.

[ruby-core:47360]
Status:Closed
Priority:Normal
Assignee:-
ruby -v:- Backport:

Description

=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 ((|SIZEMAX|)) I tried including it which fixes the problem.

I believe this was introduced with r36755

Please see the attached patch.
=end

addr2line.freebsd-8.patch Magnifier (320 Bytes) Eric Hodel, 08/29/2012 02:13 PM

Associated revisions

Revision 36844
Added by Yui NARUSE about 3 years ago

  • addr2line.c: SIZE_MAX is defined in stdint.h, so r36755 breaks 32bit FreeBSD. [Bug #6948]

Revision 36844
Added by Yui NARUSE about 3 years ago

  • addr2line.c: SIZE_MAX is defined in stdint.h, so r36755 breaks 32bit FreeBSD. [Bug #6948]

History

#1 Updated by Yui NARUSE about 3 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r36844.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • addr2line.c: SIZE_MAX is defined in stdint.h, so r36755 breaks 32bit FreeBSD. [Bug #6948]

Also available in: Atom PDF