unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* Build Error in Latest Git
@ 2010-12-15  6:49 Noah Lavine
  2010-12-15 21:02 ` Andy Wingo
  2010-12-17 18:53 ` Ludovic Courtès
  0 siblings, 2 replies; 9+ messages in thread
From: Noah Lavine @ 2010-12-15  6:49 UTC (permalink / raw)
  To: bug-guile

Hello all,

I got the following build error after I pulled the latest git version of Guile:

<a bunch of stuff that seems irrelevant here>
CCLD   libguile-2.0.la
Undefined symbols:
  "_iconv", referenced from:
      _rpl_iconv in libgnu.a(iconv.o)
     (maybe you meant: _mem_iconveh, _iconveh_close , _rpl_iconv_open
, _mem_cd_iconveh , _str_iconveh , _rpl_iconv , _iconveh_open ,
_rpl_iconv_close , _str_cd_iconveh )
  "_iconv_close", referenced from:
      _rpl_iconv_close in libgnu.a(iconv_close.o)
     (maybe you meant: _rpl_iconv_close)
  "_iconv_open", referenced from:
      _rpl_iconv_open in libgnu.a(iconv_open.o)
      _rpl_iconv_open in libgnu.a(iconv_open.o)
     (maybe you meant: _rpl_iconv_open)
ld: symbol(s) not found
collect2: ld returned 1 exit status

This continued even when I rebuilt everything starting from autogen.sh.

It looks like a link error involving gnulib and libiconv, but I'm not
sure how to debug it. My libiconv is up-to-date, and everything built
fine before I pulled.

Thanks
Noah



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build Error in Latest Git
  2010-12-15  6:49 Build Error in Latest Git Noah Lavine
@ 2010-12-15 21:02 ` Andy Wingo
  2010-12-15 21:19   ` Noah Lavine
  2010-12-17 18:53 ` Ludovic Courtès
  1 sibling, 1 reply; 9+ messages in thread
From: Andy Wingo @ 2010-12-15 21:02 UTC (permalink / raw)
  To: Noah Lavine; +Cc: bug-guile

On Wed 15 Dec 2010 07:49, Noah Lavine <noah.b.lavine@gmail.com> writes:

> Undefined symbols:
>   "_iconv", referenced from:

Odd. On what platform is this?

Andy
-- 
http://wingolog.org/



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build Error in Latest Git
  2010-12-15 21:02 ` Andy Wingo
@ 2010-12-15 21:19   ` Noah Lavine
  2010-12-17 17:10     ` Noah Lavine
  2010-12-17 20:51     ` Ludovic Courtès
  0 siblings, 2 replies; 9+ messages in thread
From: Noah Lavine @ 2010-12-15 21:19 UTC (permalink / raw)
  To: Andy Wingo; +Cc: bug-guile

Mac OS X 10.6. There's some weirdness because I have two versions of
libiconv installed - the one that comes with OS X, and one from
Macports. They also define different symbols for the same functions -
the regular OS X library has "_iconv_close", and the Macports one has
"_libiconv_close". I wonder if this is a case of the configure script
picking up one set of names and then linking with the other set.
(Although that doesn't explain why it used to build, back when I had
the same setup.)

I've tried building with both of those libraries, using
--with-libiconv-prefix to switch, and I get the same error. (I started
with 'make distclean' each time.)

Noah

On Wed, Dec 15, 2010 at 4:02 PM, Andy Wingo <wingo@pobox.com> wrote:
> On Wed 15 Dec 2010 07:49, Noah Lavine <noah.b.lavine@gmail.com> writes:
>
>> Undefined symbols:
>>   "_iconv", referenced from:
>
> Odd. On what platform is this?
>
> Andy
> --
> http://wingolog.org/
>



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build Error in Latest Git
  2010-12-15 21:19   ` Noah Lavine
@ 2010-12-17 17:10     ` Noah Lavine
  2010-12-17 18:52       ` Ludovic Courtès
  2010-12-17 22:06       ` Andy Wingo
  2010-12-17 20:51     ` Ludovic Courtès
  1 sibling, 2 replies; 9+ messages in thread
From: Noah Lavine @ 2010-12-17 17:10 UTC (permalink / raw)
  To: Andy Wingo; +Cc: bug-guile

After looking at this a bit more, I think it's an issue with Gnulib,
or possibly the configuration system. I'd like to report it to one of
those projects, but could someone tell me how Guile's configuration
mechanism interacts with Gnulib's? I don't really understand what is
configuring Gnulib, since it has no configure script.

Thanks,
Noah

On Wed, Dec 15, 2010 at 4:19 PM, Noah Lavine <noah.b.lavine@gmail.com> wrote:
> Mac OS X 10.6. There's some weirdness because I have two versions of
> libiconv installed - the one that comes with OS X, and one from
> Macports. They also define different symbols for the same functions -
> the regular OS X library has "_iconv_close", and the Macports one has
> "_libiconv_close". I wonder if this is a case of the configure script
> picking up one set of names and then linking with the other set.
> (Although that doesn't explain why it used to build, back when I had
> the same setup.)
>
> I've tried building with both of those libraries, using
> --with-libiconv-prefix to switch, and I get the same error. (I started
> with 'make distclean' each time.)
>
> Noah
>
> On Wed, Dec 15, 2010 at 4:02 PM, Andy Wingo <wingo@pobox.com> wrote:
>> On Wed 15 Dec 2010 07:49, Noah Lavine <noah.b.lavine@gmail.com> writes:
>>
>>> Undefined symbols:
>>>   "_iconv", referenced from:
>>
>> Odd. On what platform is this?
>>
>> Andy
>> --
>> http://wingolog.org/
>>
>



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build Error in Latest Git
  2010-12-17 17:10     ` Noah Lavine
@ 2010-12-17 18:52       ` Ludovic Courtès
  2010-12-17 22:06       ` Andy Wingo
  1 sibling, 0 replies; 9+ messages in thread
From: Ludovic Courtès @ 2010-12-17 18:52 UTC (permalink / raw)
  To: bug-guile

Hi,

Noah Lavine <noah.b.lavine@gmail.com> writes:

> After looking at this a bit more, I think it's an issue with Gnulib,
> or possibly the configuration system. I'd like to report it to one of
> those projects, but could someone tell me how Guile's configuration
> mechanism interacts with Gnulib's? I don't really understand what is
> configuring Gnulib, since it has no configure script.

Gnulib is a library of source files, including C files, Autoconf macros,
etc.

Guile uses Gnulib’s ‘libunistring’ module, which in turn depends on the
‘iconv’ module (see m4/gnulib-cache.m4 in the Guile tree).  The latter
is the one that provides the ‘--with-libiconv-prefix’ configure option
and the $(LTLIBICONV) variable used in libguile/Makefile.am.  On non-GNU
systems, that variable should be non-empty.

Hopefully this is enough info to ping bug-gnulib@gnu.org.  :-)

Thanks,
Ludo’.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build Error in Latest Git
  2010-12-15  6:49 Build Error in Latest Git Noah Lavine
  2010-12-15 21:02 ` Andy Wingo
@ 2010-12-17 18:53 ` Ludovic Courtès
  1 sibling, 0 replies; 9+ messages in thread
From: Ludovic Courtès @ 2010-12-17 18:53 UTC (permalink / raw)
  To: bug-guile

Hello!

Noah Lavine <noah.b.lavine@gmail.com> writes:

> CCLD   libguile-2.0.la
> Undefined symbols:

Make sure to build with “make V=1”, to get the full command lines in
the log.

Can you also check all the things related to iconv in config.log?

Thanks,
Ludo’.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build Error in Latest Git
  2010-12-15 21:19   ` Noah Lavine
  2010-12-17 17:10     ` Noah Lavine
@ 2010-12-17 20:51     ` Ludovic Courtès
  1 sibling, 0 replies; 9+ messages in thread
From: Ludovic Courtès @ 2010-12-17 20:51 UTC (permalink / raw)
  To: bug-guile

Hi again,

FWIW the problem is also visible here on FreeBSD and Darwin:

  http://hydra.nixos.org/job/gnu/guile-master/build/all

Ludo’.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build Error in Latest Git
  2010-12-17 17:10     ` Noah Lavine
  2010-12-17 18:52       ` Ludovic Courtès
@ 2010-12-17 22:06       ` Andy Wingo
  2010-12-17 22:12         ` Noah Lavine
  1 sibling, 1 reply; 9+ messages in thread
From: Andy Wingo @ 2010-12-17 22:06 UTC (permalink / raw)
  To: Noah Lavine; +Cc: bug-guile

On Fri 17 Dec 2010 18:10, Noah Lavine <noah.b.lavine@gmail.com> writes:

> After looking at this a bit more, I think it's an issue with Gnulib,
> or possibly the configuration system. I'd like to report it to one of
> those projects, but could someone tell me how Guile's configuration
> mechanism interacts with Gnulib's? I don't really understand what is
> configuring Gnulib, since it has no configure script.

Yeah, to be honest I don't really understand it very well either; but
given that I can't find the string "iconv" in our configure.ac, I don't
think it would be remiss to send a report to bug-gnulib@gnu.org
(possibly copying this list too).

Cheers,

Andy
-- 
http://wingolog.org/



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build Error in Latest Git
  2010-12-17 22:06       ` Andy Wingo
@ 2010-12-17 22:12         ` Noah Lavine
  0 siblings, 0 replies; 9+ messages in thread
From: Noah Lavine @ 2010-12-17 22:12 UTC (permalink / raw)
  To: Andy Wingo; +Cc: bug-guile

Report sent.

On Fri, Dec 17, 2010 at 5:06 PM, Andy Wingo <wingo@pobox.com> wrote:
> On Fri 17 Dec 2010 18:10, Noah Lavine <noah.b.lavine@gmail.com> writes:
>
>> After looking at this a bit more, I think it's an issue with Gnulib,
>> or possibly the configuration system. I'd like to report it to one of
>> those projects, but could someone tell me how Guile's configuration
>> mechanism interacts with Gnulib's? I don't really understand what is
>> configuring Gnulib, since it has no configure script.
>
> Yeah, to be honest I don't really understand it very well either; but
> given that I can't find the string "iconv" in our configure.ac, I don't
> think it would be remiss to send a report to bug-gnulib@gnu.org
> (possibly copying this list too).
>
> Cheers,
>
> Andy
> --
> http://wingolog.org/
>



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-12-17 22:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-15  6:49 Build Error in Latest Git Noah Lavine
2010-12-15 21:02 ` Andy Wingo
2010-12-15 21:19   ` Noah Lavine
2010-12-17 17:10     ` Noah Lavine
2010-12-17 18:52       ` Ludovic Courtès
2010-12-17 22:06       ` Andy Wingo
2010-12-17 22:12         ` Noah Lavine
2010-12-17 20:51     ` Ludovic Courtès
2010-12-17 18:53 ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).