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

Add a New Comment Rich Markup
   

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

 

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

Attach Files:
   
   
Comment:
   

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    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.14-f13d.
    Corresponding source code