Summary: | ASTERISK-14179: When building with uClibc, configure script mistakenly assumes iconv is always available | ||
Reporter: | Philip Prindeville (pprindeville) | Labels: | |
Date Opened: | 2009-05-21 02:10:49 | Date Closed: | 2009-08-25 17:43:38 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Functions/func_iconv |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
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. | ||
Comments: | By: Digium Subversion (svnbot) 2009-08-25 17:40:28 Repository: asterisk Revision: 214152 U trunk/configure U trunk/configure.ac U trunk/include/asterisk/autoconfig.h.in ------------------------------------------------------------------------ r214152 | tilghman | 2009-08-25 17:40:28 -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 ASTERISK-14179) Reported by: pprindeville ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=214152 By: Digium Subversion (svnbot) 2009-08-25 17:43:20 Repository: asterisk Revision: 214153 _U branches/1.6.0/ U branches/1.6.0/configure U branches/1.6.0/configure.ac U branches/1.6.0/include/asterisk/autoconfig.h.in ------------------------------------------------------------------------ r214153 | tilghman | 2009-08-25 17:43:20 -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 ASTERISK-14179) Reported by: pprindeville ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=214153 By: Digium Subversion (svnbot) 2009-08-25 17:43:29 Repository: asterisk Revision: 214154 _U branches/1.6.1/ U branches/1.6.1/configure U branches/1.6.1/configure.ac U branches/1.6.1/include/asterisk/autoconfig.h.in ------------------------------------------------------------------------ r214154 | tilghman | 2009-08-25 17:43:28 -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 ASTERISK-14179) Reported by: pprindeville ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=214154 By: Digium Subversion (svnbot) 2009-08-25 17:43:38 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 ASTERISK-14179) Reported by: pprindeville ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=214155 |