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

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Oct 3 03:05:39 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:                     assigned
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:              
====================================================================== 
Date Submitted:             2008-09-25 10:34 CDT
Last Modified:              2008-10-03 03:05 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.
====================================================================== 

---------------------------------------------------------------------- 
 (0093104) nickpeirson (reporter) - 2008-10-03 03:05
 http://bugs.digium.com/view.php?id=13557#c93104 
---------------------------------------------------------------------- 
You can configure uclibc to provide the necessary functions, which does
allow it to compile.

The reason for proposing the patch is that the necessary functions aren't
enabled by default, meaning a little research is required to figure out why
it's not compiling. The proposed changes, while there are quite a few, are
all one line, and are simple translations which are well documented. The
recommended functions, memset and memmove, are used throughout the asterisk
codebase, so it's not introducing functions that haven't previously been
used. It's just a bit of hosuekeeping really.

Either way, I'm happy that this bug report should provide a pointer to the
solution for people trying to compile asterisk against uclibc, if the patch
isn't accepted.

I can split the patch into one removing bzero and one removing bcopy if
that makes it easier to review? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-03 03:05 nickpeirson    Note Added: 0093104                          
======================================================================




More information about the asterisk-bugs mailing list