[asterisk-bugs] [Asterisk 0013557]: [patch] Asterisk won't compile against uclibc

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Oct 1 11:02:44 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13557 
====================================================================== 
Reported By:                nickpeirson
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   13557
Category:                   Core/PBX
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 144419 
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-09-25 10:34 CDT
Last Modified:              2008-10-01 11:02 CDT
====================================================================== 
Summary:                    [patch] Asterisk won't compile against uclibc
Description: 
index is used in main/pbx.c. This breaks compilation under uclibc as it
doesn't provide the index function. Replacing this with strchr, which index
is an alias for, solves the problem.
====================================================================== 

---------------------------------------------------------------------- 
 (0093025) nickpeirson (reporter) - 2008-10-01 11:02
 http://bugs.digium.com/view.php?id=13557#c93025 
---------------------------------------------------------------------- 
Further to the work murf did to remove index more thoroughly than my
initially submitted patch, I've further identified calls to bzero and bcopy
which are legacy functions and should be replaced with calls to memset and
memmove respectively:

http://www.opengroup.org/onlinepubs/000095399/functions/bzero.html
http://www.opengroup.org/onlinepubs/000095399/functions/bcopy.html

The latest patch changes calls from bzero, bcopy to memset, memmove.

The alternative is to recommend uclibc users to compile uclibc with SuSv3
legacy functions and macros. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-01 11:02 nickpeirson    Note Added: 0093025                          
======================================================================




More information about the asterisk-bugs mailing list