From: Jeffrey Walton <noloader@gmail.com>
To: Git List <git@vger.kernel.org>
Subject: Git 2.31.1, Solaris and error: conflicting types for 'inet_ntop'
Date: Sat, 27 Mar 2021 20:18:37 -0400 [thread overview]
Message-ID: <CAH8yC8nUpHP4iX-iQqMqX4wR6sMZO2MQv9fBVVTSys67_oGX0A@mail.gmail.com> (raw)
Hi Everyone,
I'm building the latest Git on Solaris 11.3. I use this patch for
Solaris: https://github.com/noloader/Build-Scripts/blob/master/patch/git.patch.
It ensures -lresolv -lsocket -lnsl (in that order).
The build is having some trouble:
/bin/gcc -o kwset.o -c -MF ./.depend/kwset.o.d -MQ kwset.o -MMD -MP
-I/usr/local/include -DNDEBUG -DNO_UNALIGNED_LOADS=1 -g2 -O2 -m64
-march=native -fPIC -pthread -I. -D__EXTENSIONS__ -D__sun__
-DGIT_HOST_CPU="\"i86pc\"" -DUSE_LIBPCRE2 -I/usr/local/include
-DHAVE_ALLOCA_H -I/usr/local/include -DUSE_CURL_FOR_IMAP_SEND
-I/usr/local/include -I/usr/local/include -I/usr/local/include
-I/usr/local/include -DNO_D_TYPE_IN_DIRENT -DNO_INET_NTOP
-DNO_INET_PTON -DSHA1_DC -DSHA1DC_NO_STANDARD_INCLUDES
-DSHA1DC_INIT_SAFE_HASH_DEFAULT=0
-DSHA1DC_CUSTOM_INCLUDE_SHA1_C="\"cache.h\""
-DSHA1DC_CUSTOM_INCLUDE_UBC_CHECK_C="\"git-compat-util.h\""
-DSHA256_BLK -DHAVE_PATHS_H -DHAVE_LIBCHARSET_H -DHAVE_STRINGS_H
-DHAVE_DEV_TTY -DHAVE_CLOCK_GETTIME -DHAVE_CLOCK_MONOTONIC
-DHAVE_GETDELIM -DFREAD_READS_DIRECTORIES -Icompat/regex
-DSHELL_PATH='"/bin/bash"' -DPAGER_ENV='"LESS=FRX LV=-c"' kwset.c
In file included from cache.h:4:0,
from json-writer.c:1:
git-compat-util.h:823: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 cache.h:4:0,
from ident.c:8:
git-compat-util.h:823: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 cache.h:4,
from ident.c:8:
/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,
^
In file included from git-compat-util.h:226:0,
from cache.h:4,
from json-writer.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,
^
In file included from cache.h:4:0,
from hex.c:1:
git-compat-util.h:823: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 cache.h:4,
from hex.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,
^
In file included from cache.h:4:0,
from kwset.c:35:
git-compat-util.h:823: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 cache.h:4,
from kwset.c:35:
/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: *** [hex.o] Error 1
Jeff
next reply other threads:[~2021-03-28 0:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-28 0:18 Jeffrey Walton [this message]
2021-03-28 0:45 ` Git 2.31.1, Solaris and error: conflicting types for 'inet_ntop' brian m. carlson
2021-03-28 1:04 ` Jeffrey Walton
2021-03-28 1:26 ` brian m. carlson
2021-03-28 7:22 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAH8yC8nUpHP4iX-iQqMqX4wR6sMZO2MQv9fBVVTSys67_oGX0A@mail.gmail.com \
--to=noloader@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).