[asterisk-bugs] [Asterisk 0019344]: [patch] autoconf check for iconv does not work for GNU libiconv

Asterisk Bug Tracker noreply at bugs.digium.com
Mon May 23 11:21:03 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=19344 
====================================================================== 
Reported By:                rohanl
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   19344
Category:                   Core/BuildSystem
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
JIRA:                       SWP-3488 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 320060 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2011-05-22 05:49 CDT
Last Modified:              2011-05-23 11:21 CDT
====================================================================== 
Summary:                    [patch] autoconf check for iconv does not work for
GNU libiconv
Description: 
autoconf check for iconv uses AST_EXT_LIB_CHECK to check that the linker
can find the symbol iconv_open

However GNU libiconv contains:


/* Allocates descriptor for code conversion from encoding ‘fromcode’
to
   encoding ‘tocode’. */
#ifndef LIBICONV_PLUG
#define iconv_open libiconv_open
#endif
extern iconv_t iconv_open (const char* tocode, const char* fromcode);

so the actual symbol in the library is libiconv_open, and the test fails.
====================================================================== 

---------------------------------------------------------------------- 
 (0135285) svnbot (reporter) - 2011-05-23 11:21
 https://issues.asterisk.org/view.php?id=19344#c135285 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 320579

_U  trunk/
U   trunk/configure
U   trunk/configure.ac

------------------------------------------------------------------------
r320579 | tilghman | 2011-05-23 11:21:03 -0500 (Mon, 23 May 2011) | 14
lines

Merged revisions 320573 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r320573 | tilghman | 2011-05-23 11:19:32 -0500 (Mon, 23 May 2011) | 7
lines
  
  GNU libiconv uses symbol "libiconv_open" instead of "iconv_open".
  
  (closes issue https://issues.asterisk.org/view.php?id=19344)
   Reported by: rohanl
   Patches: 
         iconv-check.patch uploaded by rohanl (license 1284)
........

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-23 11:21 svnbot         Checkin                                      
2011-05-23 11:21 svnbot         Note Added: 0135285                          
======================================================================




More information about the asterisk-bugs mailing list