[Home]

Summary:ASTERISK-26245: Organize code so utils can use more unmodified Asterisk source files and less ugly hacks.
Reporter:Corey Farrell (coreyfarrell)Labels:
Date Opened:2016-07-27 14:23:47Date Closed:
Priority:MajorRegression?
Status:In Progress/In ProgressComponents:Core/General
Versions:GIT Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) scan_object_linkage.py
Description:This ticket is meant to track progress on making it possible to build a libasterisk.a for use by utils.  The goal of this static library is to cleanup the hacks used to compile utils.  This includes:
# Copy/paste code/structures from Asterisk to utils sources
# Empty stub functions created in utils to resolve missing Asterisk symbols
# STANDALONE and other defines used to disable parts of Asterisk

A secondary goal of is to make it possible to create a conventional 'make check' target.  It's a separate question if the Asterisk project will decide to actively pursue creation of such tests.
Comments:By: Corey Farrell (coreyfarrell) 2017-10-21 16:07:10.554-0500

I've attached a python script I wrote which parses output of the 'nm' utility.  This is used to map symbol exports and imports among any set of object files.  I've used it to determine help decide where to move certain symbols.