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

Re: Unable to install git-2.43.0 from source on macOS Big Sur 11.7.10

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Dec 19, 2023, 07:55 UTC
Message-ID
<CAPig+cQgTNq8rKiXm_dDha+Rz-=Z9O4_gvWLWdcPJe1yp=hQ8Q@mail.gmail.com>
In-Reply-To
<IA1PR12MB60445F50DD0F844B2B779BA8B890A@IA1PR12MB6044.namprd12.prod.outlook.com>

On Mon, Dec 18, 2023 at 7:03 AM Jonathan Abrams <jonathansabrams@outlook.com> wrote:

> The contents of "config.mak.autogen" are as follows:
> --
> CURL_LDFLAGS=-L/Users/jonathana/opt/anaconda3/lib -lcurl
> CHARSET_LIB=-liconv
So, 'configure' found a "libiconv". Okay.
> The last output of make V=1 all is as follows.
> --
> gcc   -g -O2 -I. -o git-daemon daemon.o common-main.o libgit.a xdiff/lib.a reftable/libreftable.a libgit.a -lz  -liconv  -liconv
And it's linking against "libiconv" (the "-iconv" part). Good.
> Undefined symbols for architecture x86_64:
>   "_libiconv", referenced from:
>       _precompose_utf8_readdir in libgit.a(precompose_utf8.o)
>       _reencode_string_iconv in libgit.a(utf8.o)
But it doesn't seem to like your "libiconv" for some reason.

I notice that you seem to have an Anaconda environment active. Do you know if this "libiconv" happens to reside within the Anaconda environment? If so, what version is it and from where was it installed ("conda-forge", "anaconda", some other)?

Have you tried deactivating the Anaconda environment ("conda deactivate") before building Git? Also, I would suggest trying without even running the configure script at all. So, for instance:

  % cd git
  % conda deactivate
  % make distclean
  % make all
Previous: Eric SunshineNext: Jonathan Abrams
Message 3 of 4 in “Unable to install git-2.43.0 from source on macOS Big Sur 11.7.10”
  1. Jonathan AbramsDec 17, 2023
  2. Eric SunshineDec 18, 2023
  3. Eric SunshineDec 19, 2023
  4. Jonathan AbramsDec 21, 2023

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.