git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git-compat-util.h:798:13: error: conflicting types for ‘inet_ntop’
@ 2020-02-01 11:39 Jeffrey Walton
  2020-02-01 12:12 ` Jeffrey Walton
  0 siblings, 1 reply; 8+ messages in thread
From: Jeffrey Walton @ 2020-02-01 11:39 UTC (permalink / raw)
  To: Git List

Hi Everyone,

I'm building the 2.25 release tarball on Solaris 11.3 i86pc. I'm
catching an error:

$ gmake
    CC fuzz-commit-graph.o
In file included from commit-graph.h:4:0,
                 from fuzz-commit-graph.c:1:
git-compat-util.h:798:13: error: conflicting types for ‘inet_ntop’
 const char *inet_ntop(int af, const void *src, char *dst, size_t size);
             ^
In file included from git-compat-util.h:226:0,
                 from commit-graph.h:4,
                 from fuzz-commit-graph.c:1:
/usr/include/arpa/inet.h:43:20: note: previous declaration of
‘inet_ntop’ was here
 extern const char *inet_ntop(int, const void *_RESTRICT_KYWD,
                    ^
gmake: *** [fuzz-commit-graph.o] Error 1

And:

$ cat -n /usr/include/arpa/inet.h
...
    41  #if !defined(_XPG4_2) || defined(_XPG6) || defined(__EXTENSIONS__)
    42  extern int inet_pton(int, const char *_RESTRICT_KYWD, void
*_RESTRICT_KYWD);
    43  extern const char *inet_ntop(int, const void *_RESTRICT_KYWD,
    44                          char *_RESTRICT_KYWD, socklen_t);
    45  #endif /* !defined(_XPG4_2) || defined(_XPG6) ||
defined(__EXTENSIONS__) */

Jeff

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

end of thread, other threads:[~2020-02-03 11:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-01 11:39 git-compat-util.h:798:13: error: conflicting types for ‘inet_ntop’ Jeffrey Walton
2020-02-01 12:12 ` Jeffrey Walton
2020-02-01 12:34   ` Jeffrey Walton
2020-02-03  8:54   ` Jeff King
2020-02-03  8:59     ` Jeffrey Walton
2020-02-03 10:01       ` Jeff King
2020-02-03 10:46     ` Jeffrey Walton
2020-02-03 11:02       ` Jeff King

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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).