This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: java/2812: Build failure; missing symbols (iconv) in link ofjc1
- To: tromey at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, gcc at treblig dot org, java-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Subject: Re: java/2812: Build failure; missing symbols (iconv) in link ofjc1
- From: Dave Gilbert <gilbertd at treblig dot org>
- Date: Sat, 9 Jun 2001 18:35:22 +0100 (BST)
Thus spoke: tromey@gcc.gnu.org
> In lex.c, the use of iconv() is predicated on `HAVE_ICONV'.
> This in turn is defined only if configure detects
> `iconv'. It uses a link test to do this. So this means
> (to me) that your libc does have iconv().
Ah see below...
>
> Maybe your iconv.h redefines iconv() to libiconv()?
> That is what the error messages imply. But then wouldn't
> this be a bug in your system?
The iconv.h I have here is identified itslef as:
#define _LIBICONV_VERSION 0x0106 /* version number: (major<<8) + minor
*/
It would appear that it has a series of definitions of the form:
#ifndef LIBICONV_PLUG
#define iconv_open libiconv_open
#endif
So all I can presume is that whatever happened during the test had
LIBICONV_PLUG defined or picked up something else.
> Is your system typical of Alpha Linux systems?
> If so then working around this problem might be appropriate.
> If you're running an unusual system then I'd prefer we just
> leave it.
The installation is a bit old and has had a lot of upgrades done to it.
The glibc is 2.1.2-17 however the iconv.h has come from the installation
of a libiconv-1.6 (I think as a necessity from a Gnome upgrade).
This libiconv appears to be circa March.
> Tell me what you think and/or discover...
> Thanks!
No problem; if you can suggest a convenient way of tracing the configure
process to see what actually happened when it found iconv I think that
might be useful.
Dave
--
---------------- Have a happy GNU millennium! ----------------------
/ Dr. David Alan Gilbert | Running GNU/Linux on Alpha,68K| Happy \
\ gro.gilbert @ treblig.org | MIPS,x86,ARM, SPARC and HP-PA | In Hex /
\ _________________________|_____ http://www.treblig.org |_______/