Skip to contentSkip to conversation

What does "properly support iconv" in git Makefile (NO_ICONV) mean?

DISCUSSION Fernando J. Pereda 3 participants 4 messages Jun 15, 2016 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 4 lines · Jakub Narebski

To add autoconf support for checking if NO_ICONV has to be defined (Define NO_ICONV if your libc does not properly support iconv.) one needs to know what does "properly support iconv" mean.

Quoted 8 lines

The commit message of a commit which introduced this compilation variable (commit b6e56eca8a4eb74a86e9f2d99aa480c665458aa7) tells:

Systems using some uClibc versions do not properly support iconv stuff.

At what exactly iconv fail? What should the test to put in configure.ac check?

As far as I know, iconv stuff is not supported on uClibc. Thats the reason I sent the patch. Gentoo bug #115826 [1].

You should probably set it if you are building for uClibc. Not sure how you'd test that in configure.ac though.

- ferdy

[1] https://bugs.gentoo.org/show_bug.cgi?id=115826

Signature · 3 lines
Fernando J. Pereda Garcimartín
Gentoo Developer (Alpha,net-mail,mutt,git)
20BB BDC3 761A 4781 E6ED  ED0B 0A48 5B0C 60BD 28D4
#2 lore raw
Quoted 14 lines · Fernando J. Pereda
Quoted 4 lines · Jakub Narebski

To add autoconf support for checking if NO_ICONV has to be defined (Define NO_ICONV if your libc does not properly support iconv.) one needs to know what does "properly support iconv" mean.

Quoted 8 lines

The commit message of a commit which introduced this compilation variable (commit b6e56eca8a4eb74a86e9f2d99aa480c665458aa7) tells:

Systems using some uClibc versions do not properly support iconv stuff.

At what exactly iconv fail? What should the test to put in configure.ac check?

Quoted 7 lines

As far as I know, iconv stuff is not supported on uClibc. Thats the reason I sent the patch. Gentoo bug #115826 [1].

You should probably set it if you are building for uClibc. Not sure how you'd test that in configure.ac though.

[1] https://bugs.gentoo.org/show_bug.cgi?id=115826

Gaah, I have some problems accessing the Gentoo bug database. Is the problem that iconv does not exist in libc, or it exist but misbehaves?

Signature · 2 lines
Jakub Narebski
Poland
#3 lore raw
Quoted 18 lines · Jakub Narebski
Quoted 17 lines · Fernando J. Pereda
Quoted 4 lines · Jakub Narebski

To add autoconf support for checking if NO_ICONV has to be defined (Define NO_ICONV if your libc does not properly support iconv.) one needs to know what does "properly support iconv" mean.

Quoted 8 lines

The commit message of a commit which introduced this compilation variable (commit b6e56eca8a4eb74a86e9f2d99aa480c665458aa7) tells:

Systems using some uClibc versions do not properly support iconv stuff.

At what exactly iconv fail? What should the test to put in configure.ac check?

As far as I know, iconv stuff is not supported on uClibc. Thats the reason I sent the patch. Gentoo bug #115826 [1].

Quoted 8 lines
Quoted 4 lines

You should probably set it if you are building for uClibc. Not sure how you'd test that in configure.ac though.

[1] https://bugs.gentoo.org/show_bug.cgi?id=115826

Gaah, I have some problems accessing the Gentoo bug database. Is the problem that iconv does not exist in libc, or it exist but misbehaves?

Quoting Mike Frysinger:

iconv is part of uClibc itself but is disabled by default since it isnt quite stable yet ... so yes, trying to use the iconv package wont work

That was on 2005-12-17 so I don't know what's the status now.

- ferdy

Signature · 3 lines
Fernando J. Pereda Garcimartín
Gentoo Developer (Alpha,net-mail,mutt,git)
20BB BDC3 761A 4781 E6ED  ED0B 0A48 5B0C 60BD 28D4
#4 lore raw
In reply to Jakub Narebski
Quoted 3 lines · Jakub Narebski

Gaah, I have some problems accessing the Gentoo bug database. Is the problem that iconv does not exist in libc, or it exist but misbehaves?

In small configurations that do not care about i18n, it is often done to give iconv routines that is noop/ident in order to make the programs compile and run.