Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16624 - PAN ebuild fails on iconv-detect
Summary: PAN ebuild fails on iconv-detect
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-01 11:09 UTC by kevin arnold
Modified: 2003-03-02 08:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log showing error (config.log,21.14 KB, text/plain)
2003-03-01 11:11 UTC, kevin arnold
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kevin arnold 2003-03-01 11:09:28 UTC
When I try to emerge pan-0.13.x I get an error about not finding the preferred
charsets. 

I believe that this error is occuring because my system does not have
dev-libs/libiconv installed.  I have not installed that because of the warning
that it is incompatable with the glibc iconv implementation and that it might
break other things.

Reproducible: Always
Steps to Reproduce:
1.  emerge pan
2.
3.

Actual Results:  
Here is the a portion of config.log (I will attach the rest):

configure:6384: checking preferred charset formats for system iconv
configure:6403: gcc -o conftest -march=athlon-xp -O3 -pipe -fomit-frame-pointer
-I.    co
nftest.c  >&5
configure:6406: $? = 0
configure:6408: ./conftest
System prefers iso-8859-1
System doesn't support any ISO-2022 formats
configure:6411: $? = 3
configure: program exited with status 3
configure: failed program was:
#line 6394 "configure"
#include "confdefs.h"

#define CONFIGURE_IN
#include "iconv-detect.c"

configure:6428: result: not found
configure:6436: error:
        *** The iconv-detect program was unable to determine the
        *** preferred charset formats recognized by your system
        *** iconv library. It is suggested that you install a
        *** working iconv library such as the one found at
        *** ftp://ftp.gnu.org/pub/gnu/libiconv
Comment 1 kevin arnold 2003-03-01 11:11:41 UTC
Created attachment 8856 [details]
config.log showing error
Comment 2 Alastair Tse (RETIRED) gentoo-dev 2003-03-01 19:00:38 UTC
glibc's iconv should be enough. which version of glibc do you have?

try doing: iconv -i | grep -i iso-2022

this should show you at least a couple of iso-2022 charsets. if you don't then you possibly need to make sure you have "nls" in your use flags when you merge glibc.
Comment 3 kevin arnold 2003-03-02 01:38:25 UTC
Well I feel a bit silly now.  I was using glibc 2.3.1, but I guess it was compiled without nls support.  I'm not sure how since I never disabled the nls USE flag myself.  I remerged glibc and pan compiled fine.

Is it possible for Pan to require that glibc have been compiled with the nls USE flag?  If not, that might be a useful feature to add to portage.  

It also might be helpful to add some sort of message when this error comes up telling the user they need to remerge glibc with the nls flag.

Comment 4 Alastair Tse (RETIRED) gentoo-dev 2003-03-02 08:13:07 UTC
there is already a bug #1771 which suggests exactly that you suggested about making USE flags part of package depenedencies.

i've added a warning if it detects emerging without an nls flag, but until #1771 is implemented, there isn't much we can do.