[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 10:18:52 CDT 2011


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=19344 
====================================================================== 
Reported By:                rohanl
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   19344
Category:                   Core/BuildSystem
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     ready for review
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 320060 
Request Review:              
====================================================================== 
Date Submitted:             2011-05-22 05:49 CDT
Last Modified:              2011-05-23 10:18 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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-23 10:18 lmadsen        Description Updated                          
2011-05-23 10:18 lmadsen        Additional Information Updated                  
 
======================================================================




More information about the asterisk-bugs mailing list