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

Asterisk Bug Tracker noreply at bugs.digium.com
Sun May 22 05:49:57 CDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
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:                     new
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-22 05:49 CDT
====================================================================== 
Summary:                    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-22 05:49 rohanl         Asterisk Version          => SVN             
2011-05-22 05:49 rohanl         Regression                => No              
2011-05-22 05:49 rohanl         SVN Branch (only for SVN checkouts, not tarball
releases) =>  trunk          
2011-05-22 05:49 rohanl         SVN Revision (number only!) => 320060          
======================================================================




More information about the asterisk-bugs mailing list