patchGNU Autoconf Archive - Patches: patch #8525, Macro to test execinfo size type

 
 

patch #8525: Macro to test execinfo size type

Submitter:  None
Submitted:  Mon 01 Sep 2014 03:47:36 PM UTC
   
 
Priority:  5 - Normal Status:  Done
Assigned to:  simons Originator Email:  -email is unavailable-
Open/Closed:  Closed
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Sat 13 Sep 2014 09:48:18 PM UTC, comment #1: 

Pushed in eeae82a. Thank you very much for the patch!

Peter Simons <simons>
Group administrator
Mon 01 Sep 2014 03:47:36 PM UTC, original submission:  

execinfo.h has been available on a number of systems now, but unfortunately different systems use different types to represent the size of the backtrace, with netBSD and FreeBSD using size_t and Linux, Mac OS X. To build calls that work with both
implementations without warning, this macro not only checks if the execinfo header is available but also what type is used for the len argument of backtrace_symbols and the return value of backtrace.

All in all this macro defines

  • HAVE_EXECINFO_H if execinfo.h can be included,
  • backtrace_size_t to the len argument type, i.e. int or size_t,
  • HAVE_BACKTRACE to 1 if the function can be linked to,


and append any library needed to LIBS (e.g. some BSD's need -lexecinfo).

Anonymous

 

Attached Files

Attached Files
file #32012:  ax_execinfo.m4 added by None (2.3KiB - application/x-m4)

(Note: upload size limit is set to 4.0MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by simons (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

    History

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-10-16 simons StatusReady For Test Done
        Open/ClosedOpen Closed
    2014-09-13 simons StatusNone Ready For Test
        Assigned toNone simons
    2014-09-01 None Attached File- Added ax_execinfo.m4, #32012

    Back to the top

    Powered by Savane 3.16-598c.
    Corresponding source code