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

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Oct 9 09:07:22 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-09 09:07 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.
====================================================================== 

---------------------------------------------------------------------- 
 (0093406) svnbot (reporter) - 2008-10-09 09:07
 http://bugs.digium.com/view.php?id=13557#c93406 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 147807

U   trunk/channels/chan_iax2.c
U   trunk/channels/chan_oss.c
U   trunk/channels/chan_usbradio.c
U   trunk/channels/console_gui.c
U   trunk/channels/console_video.c
U   trunk/channels/vcodecs.c
U   trunk/configure
U   trunk/configure.ac
U   trunk/doc/CODING-GUIDELINES
U   trunk/include/asterisk/autoconfig.h.in
U   trunk/include/asterisk.h
U   trunk/main/astobj2.c
U   trunk/main/cli.c
U   trunk/main/config.c
U   trunk/main/pbx.c
U   trunk/main/rtp.c
U   trunk/main/translate.c
U   trunk/utils/extconf.c

------------------------------------------------------------------------
r147807 | murf | 2008-10-09 09:07:20 -0500 (Thu, 09 Oct 2008) | 15 lines

(closes issue http://bugs.digium.com/view.php?id=13557)
Reported by: nickpeirson
Patches:
      pbx.c.patch uploaded by nickpeirson (license 579)
      replace_bzero+bcopy.patch uploaded by nickpeirson (license 579)
Tested by: nickpeirson, murf

1. replaced all refs to bzero and bcopy to memset and memmove instead.
2. added a note to the CODING-GUIDELINES
3. add two macros to asterisk.h to prevent bzero, bcopy from creeping
   back into the source
4. removed bzero from configure, configure.ac, autoconfig.h.in



------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=147807 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-09 09:07 svnbot         Checkin                                      
2008-10-09 09:07 svnbot         Note Added: 0093406                          
======================================================================




More information about the asterisk-bugs mailing list