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

Re: Git build failure: v2.47.0 on Solaris 10 SPARC64

From
Patrick Steinhardt <ps@pks.im>
Date
Oct 21, 2024, 08:56 UTC
Message-ID
<ZxYXNTjRYkVaQaOl@pks.im>
In-Reply-To
<db95aa3f-f270-4939-ba3f-a964d46e2325@axiom-networks.org>
On Sun, Oct 20, 2024 at 10:56:11PM -0700, Freya Starshade wrote:
Show 39 quoted lines
> Hi,
> 
> 
> Reporting a build failure on version 2.47.0 of git, grabbed from the
> official sources. Our environment is:
> 
> 
> Compiler: gcc (GCC) 9.5.0
> 
> Linker: GNU ld (GNU Binutils) 2.43
> 
> Target machine triplet: SPARC64-SUN-SOLARIS2.10
> 
> Target machine hardware: Sun Blade 150 UltraSPARC IIe workstation
> 
> Target OS: SunOS 5.10 Generic_150400-59 sparc SUNW,Sun-Blade-100 Solaris Sun
> Microsystems SunOS 5.10 Generic_150400-59 PATCH January 2018
> 
> After running ./configure, which succeeds, running `make all` gives:
> 
> 
> root@iris:/usr/src/depot/progress/git-2.47.0# make all
>     CC daemon.o
> In file included from daemon.c:3:
> git-compat-util.h:1012:13: error: conflicting types for 'inet_ntop'
>  1012 | const char *inet_ntop(int af, const void *src, char *dst, size_t
> size);
>       |             ^~~~~~~~~
> In file included from git-compat-util.h:314,
>                  from daemon.c:3:
> /usr/include/arpa/inet.h:68:20: note: previous declaration of 'inet_ntop'
> was here
>    68 | extern const char *inet_ntop(int, const void *_RESTRICT_KYWD,
>       |                    ^~~~~~~~~
> make: *** [Makefile:2795: daemon.o] Error 1
> root@iris:/usr/src/depot/progress/git-2.47.0#
> 
> 
> Anyone know what's going on here?

Could you maybe also send the output of `./configure`? We do have a check in "configure.ac" that tries to find out whether your system has `inet_ntop()` or not. Maybe it is misdetecting the availability of that function on your platform and thus declares the `NO_INET_NTOP` variable, which causes us to pull in compat code.

Out of curiosity, did you try running `make` without first running `./configure`? Many platforms should work alright without having to run autoconf first, but given that your platform is a more on the esoteric side I wouldn't be surprised if things didn't work there.

Patrick
Previous: Freya StarshadeNext: Patrick Steinhardt
Message 2 of 4 in “Git build failure: v2.47.0 on Solaris 10 SPARC64”
  1. Freya StarshadeOct 21, 2024
  2. Patrick SteinhardtOct 21, 2024
  3. [Resend] Re: Git build failure: v2.47.0 on Solaris 10 SPARC64Patrick Steinhardt, Oct 21, 2024
  4. Taylor BlauOct 21, 2024

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.