[fpc-devel] [iconv][glibc] function "iconvctl" not found.

4iter 4iter-yes at rambler.ru
Sun Oct 23 13:49:17 CEST 2011


Hi!

In new GLIBC exists internal implementation "libiconv" (see
http://www.gnu.org/s/hello/manual/libc/glibc-iconv-Implementation.html)
Implemented functions:
    iconv_t iconv_open (__const char *__tocode, __const char *__fromcode);
    size_t iconv (iconv_t __cd, char **__restrict __inbuf,
                     size_t *__restrict __inbytesleft,
                     char **__restrict __outbuf,
                     size_t *__restrict __outbytesleft);
    int iconv_close (iconv_t __cd);

In the file fpc/rtl/unix/cwstrings.pp using function "iconvctl" non
existings in glibc !
Original libiconv not installed!
Svn-version Lazarus show build error:
.....................
Compiling svn2revisioninc.pas
Linking ./svn2revisioninc
/home/guest/root/lib/fpc/2.7.1/units/i386-linux/rtl/cwstring.o: In
function `CWSTRING_$$_INITTHREAD':
cwstring.pp:(.text+0xf4): undefined reference to `iconvctl'
/home/guest/root/lib/fpc/2.7.1/units/i386-linux/rtl/cwstring.o: In
function `CWSTRING_$$_WIDE2ANSIMOVE$PWIDECHAR$RAWBYTESTRING$WORD$LONGINT':
cwstring.pp:(.text+0x3e5): undefined reference to `iconvctl'
svn2revisioninc.pas(600,1) Error: Error while linking
svn2revisioninc.pas(600,1) Fatal: There were 1 errors compiling module,
stopping
Fatal: Compilation aborted
..............................................
Maybe fixit it with #ifdef ?

I apologize, for incorrect English




More information about the fpc-devel mailing list