This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

bootstrap won't link with GNU iconv



  I have Solaris 2.6's iconv.h in /usr/include (which I guess
configure is finding). I also have GNU's iconv installed in the
dest. dir of gcc (non-standard).


  (a) during stage 2 compilation of the java stuff, I get (e.g.,
in linking jv-scan) undefined references to libiconv_open etc.
(GNU iconv redefines iconv calls to libiconv).

  I can get around this by setting BOOT_LDFLAGS=-liconv - I'm
guessing that the Solaris iconv stuff is in libc and is only
being picked as a last resort when -liconv isn't specified
[except of course the name's different].


  But then I get (b)
./.libs/libgcj.so: undefined reference to `libiconv_open'
./.libs/libgcj.so: undefined reference to `libiconv_close'
./.libs/libgcj.so: undefined reference to `libiconv'

  ... when trying to link jv-convert.


  Is there anything I can do, bar removing GNU iconv or not
installing Java capabilities?

-- 
=================- http://www.thalesgroup.com/ -================
  Neil Bird   Principal Engineer                  |
       work - mailto:neil.bird@uk.thalesgroup.com | $> cd /pub
   personal - mailto:neil@fnxweb.com              | $> more beer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]