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

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Aug 25 17:43:38 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15169 
====================================================================== 
Reported By:                pprindeville
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   15169
Category:                   Functions/func_iconv
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
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:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-05-21 02:10 CDT
Last Modified:              2009-08-25 17:43 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.

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

---------------------------------------------------------------------- 
 (0109650) svnbot (reporter) - 2009-08-25 17:43
 https://issues.asterisk.org/view.php?id=15169#c109650 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 214155

_U  branches/1.6.2/
U   branches/1.6.2/configure
U   branches/1.6.2/configure.ac
U   branches/1.6.2/include/asterisk/autoconfig.h.in

------------------------------------------------------------------------
r214155 | tilghman | 2009-08-25 17:43:38 -0500 (Tue, 25 Aug 2009) | 11
lines

Merged revisions 214152 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r214152 | tilghman | 2009-08-25 17:39:51 -0500 (Tue, 25 Aug 2009) | 4
lines
  
  Not all versions of gnu-linux use glibc, which contains iconv.  Some
(especially embedded systems) don't have iconv at all.
  (closes issue https://issues.asterisk.org/view.php?id=15169)
   Reported by: pprindeville
........

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-25 17:43 svnbot         Checkin                                      
2009-08-25 17:43 svnbot         Note Added: 0109650                          
======================================================================




More information about the asterisk-bugs mailing list