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

Re: Solaris: Fail to build git with CFLAGS=-m64

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 13, 2015, 07:39 UTC
Message-ID
<xmqqvbab9pz7.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<CAKzKBF0MH+f3=frtwwxKfaELNXm4fCR5LWVhvJ7-YQF-ngfM+g@mail.gmail.com>
evgeny litvinenko <evgeny.v.litvinenko@gmail.com> writes:
Show 10 quoted lines
> Solaris has the following prototype in the file /usr/include/arpa/inet.h:
>
> extern const char *inet_ntop(int, const void *_RESTRICT_KYWD, char
> *_RESTRICT_KYWD, socklen_t);
>
> Git's prototype for inet_ntop is in file git-compat-util.h:
>
> #ifdef NO_INET_NTOP
> const char *inet_ntop(int af, const void *src, char *dst, size_t size);
> #endif

This tells me that it is designed to be used only when the platform does not offer inet_ntop(). If your platform does have it, why is your build define NO_INET_NTOP?

Perhaps configure generated by autoconf is faulty?

In this project, use of autoconf/configure is optional---in other words, it is expected that you can build successfully by setting and unsetting necessary Makefile macros in your own config.mak without using autoconf/configure at all. I'd try without configure and make sure I do not define NO_INET_NTOP (and if you have inet_pton(), then make sure you do not define NO_INET_PTON either) in config.mak if I were you.

Previous: evgeny litvinenkoNext: evgeny litvinenko
Message 2 of 3 in “Solaris: Fail to build git with CFLAGS=-m64”
  1. evgeny litvinenkoOct 13, 2015
  2. Junio C HamanoOct 13, 2015
  3. evgeny litvinenkoOct 13, 2015

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.