[asterisk-bugs] [Asterisk 0015169]: When building with uClibc, configure script mistakenly assumes iconv is always available

Asterisk Bug Tracker noreply at bugs.digium.com
Thu May 21 02:10:49 CDT 2009


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15169 
====================================================================== 
Reported By:                pprindeville
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15169
Category:                   Functions/func_iconv
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.1.0 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-05-21 02:10 CDT
Last Modified:              2009-05-21 02:10 CDT
====================================================================== 
Summary:                    When building with uClibc, configure script
mistakenly assumes iconv is always available
Description: 
I'm building i586 images for Astlinux using gcc and the uClibc libraries,
but I can't build func_iconv.c because there is no <iconv.h> supplied by
uClibc.

Nor is there a way to turn off func_iconv.c.  I've tried "./configure ...
--with-iconv=no ..." but it still gets turned on.

Seems to come down to:

if test "${host_os}" != "linux-gnu" ; then
  AST_EXT_LIB_CHECK([ICONV], [iconv], [iconv_open], [iconv.h])
else
  PBX_ICONV=1
fi

which erroneously assumes that building with gcc on Linux means you have
iconv.h ... it doesn't mean that at all (at least not for uClibc users).

Turning off iconv (a la --with-iconv=no) should also turn off PBX_ICONV.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-21 02:10 pprindeville   New Issue                                    
2009-05-21 02:10 pprindeville   Asterisk Version          => 1.6.1.0         
2009-05-21 02:10 pprindeville   Regression                => No              
2009-05-21 02:10 pprindeville   SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list