git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: What's in git.git

From
Jakub Narebski <jnareb@gmail.com>
Date
Aug 4, 2006, 20:27 UTC
Message-ID
<eb0ai4$h7k$2@sea.gmane.org>
In-Reply-To
<7vy7u4i8lm.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 8 quoted lines
> (3) NEEDS_LIBICONV is found to be unnecessary by configure, but
>     the link fails like this without it:
> 
>         builtin-mailinfo.o: In function `convert_to_utf8':
>         /git/builtin-mailinfo.c:539: undefined reference to `_libiconv_open'
>         /git/builtin-mailinfo.c:560: undefined reference to `_libiconv'
>         /git/builtin-mailinfo.c:561: undefined reference to `_libiconv_close'
>         collect2: ld returned 1 exit status
Does the following patch help?

+++ autoconf: Set NEEDS_LIBICONV unconditionally if there is no iconv in libc

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
---
 configure.ac |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 5926f3c..61c9fa3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -172,8 +172,7 @@ AC_CHECK_LIB([expat], [XML_ParserCreate]
 #
 # Define NEEDS_LIBICONV if linking with libc is not enough (Darwin).
 AC_CHECK_LIB([c], [iconv],[],
-[AC_CHECK_LIB([iconv],[iconv],
- [GIT_CONF_APPEND_LINE(NEEDS_LIBICONV=YesPlease)],[])])
+[GIT_CONF_APPEND_LINE(NEEDS_LIBICONV=YesPlease)])
 #
 # Define NEEDS_SOCKET if linking with libc is not enough (SunOS,
 # Patrick Mauritz).
-- 
1.4.1.1
Previous: Junio C Hamano
Message 14 of 14 in “What's in git.git”
  1. Junio C HamanoAug 4, 2006
  2. Jakub NarebskiAug 4, 2006
  3. 1/4 autoconf: Check for working mmapJakub Narebski, Aug 4, 2006
  4. Junio C HamanoAug 4, 2006
  5. Jakub NarebskiAug 4, 2006
  6. 2/4 autoconf: Check for ll hh j z t size specifiers introduced by C99Jakub Narebski, Aug 4, 2006
  7. 3/4 autoconf: Typo cleanup, reordering etc.Jakub Narebski, Aug 4, 2006
  8. 4/4 Copy description of new build configuration variables to configure.acJakub Narebski, Aug 4, 2006
  9. Johannes SchindelinAug 4, 2006
  10. Jakub NarebskiAug 4, 2006
  11. Junio C HamanoAug 4, 2006
  12. Junio C HamanoAug 4, 2006
  13. Junio C HamanoAug 4, 2006
  14. Jakub NarebskiAug 4, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.