From: "René Scharfe" <l.s.r@web.de>
To: dev <dev@cor0.com>, git@vger.kernel.org
Cc: Junio C Hamano <gitster@pobox.com>,
Karsten Blees <karsten.blees@gmail.com>
Subject: Re: "trace.c", line 219: error: identifier redeclared: trace_strbuf
Date: Sat, 06 Sep 2014 22:53:03 +0200 [thread overview]
Message-ID: <540B742F.5030700@web.de> (raw)
In-Reply-To: <893371408.24076.1410031614959.JavaMail.vpopmail@webmail2.networksolutionsemail.com>
Am 06.09.2014 um 21:26 schrieb dev:
>
>
>
> Build on Solaris 10 of latest git tarball fails thus :
>
> CC tag.o
> CC trace.o
> "trace.c", line 219: error: identifier redeclared: trace_strbuf
> current : function(pointer to const char, pointer to const
> struct strbuf {unsigned long alloc, unsigned long len, pointer to char
> buf}) returning void
> previous: function(pointer to struct trace_key {const pointer to
> const char key, int fd, unsigned int initialized :1, unsigned int
> need_close :1}, pointer to const struct strbuf {unsigned long alloc,
> unsigned long len, pointer to char buf}) returning void : "trace.h",
> line 33
> "trace.c", line 221: warning: argument 0000003 is incompatible with
> prototype:
> prototype: pointer to struct trace_key {const pointer to const
> char key, int fd, unsigned int initialized :1, unsigned int need_close
> :1} : "trace.c", line 160
> argument : pointer to const char
> "trace.c", line 390: error: reference to static identifier "offset" in
> extern inline function
> "trace.c", line 392: error: reference to static identifier "offset" in
> extern inline function
> "trace.c", line 393: error: reference to static identifier "offset" in
> extern inline function
> "trace.c", line 401: error: reference to static identifier "offset" in
> extern inline function
> "trace.c", line 403: error: reference to static identifier "offset" in
> extern inline function
> cc: acomp failed for trace.c
> gmake: *** [trace.o] Error 2
>
>
>
>
> extracted the tarball and did the following :
>
> $ gmake CFLAGS="$CFLAGS" LDFLAGS="$LD_OPTIONS" NEEDS_LIBICONV=Yes \
>> SHELL_PATH=/usr/local/bin/bash \
>> SANE_TOOL_PATH=/usr/local/bin \
>> USE_LIBPCRE=1 LIBPCREDIR=/usr/local CURLDIR=/usr/local \
>> EXPATDIR=/usr/local NEEDS_LIBINTL_BEFORE_LIBICONV=1 \
>> NEEDS_SOCKET=1 NEEDS_RESOLV=1 USE_NSEC=1 \
>> PERL_PATH=/usr/local/bin/perl \
>> TAR=/usr/bin/tar \
>> NO_PYTHON=1 DEFAULT_PAGER=/usr/xpg4/bin/more \
>> DEFAULT_EDITOR=/usr/local/bin/vim DEFAULT_HELP_FORMAT=man \
>> prefix=/usr/local
> GIT_VERSION = 2.1.0
> * new build flags
> CC credential-store.o
> * new link flags
> CC abspath.o
> CC advice.o
> CC alias.o
> CC alloc.o
> CC archive.o
> CC archive-tar.o
> CC archive-zip.o
> CC argv-array.o
> * new prefix flags
> CC attr.o
> CC base85.o
> CC bisect.o
> CC blob.o
> CC branch.o
> CC bulk-checkin.o
> CC bundle.o
> CC cache-tree.o
> CC color.o
> CC column.o
> CC combine-diff.o
> CC commit.o
> CC compat/obstack.o
> CC compat/terminal.o
> CC config.o
> CC connect.o
> CC connected.o
> CC convert.o
> CC copy.o
> CC credential.o
> CC csum-file.o
> CC ctype.o
> "ctype.c", line 50: warning: initializer does not fit or is out of
> range: 128
> "ctype.c", line 50: warning: initializer does not fit or is out of
> range: 129
> "ctype.c", line 50: warning: initializer does not fit or is out of
> range: 130
> "ctype.c", line 50: warning: initializer does not fit or is out of
> range: 131
> "ctype.c", line 50: warning: initializer does not fit or is out of
> range: 132
> "ctype.c", line 50: warning: initializer does not fit or is out of
> range: 133
> "ctype.c", line 50: warning: initializer does not fit or is out of
> range: 134
> "ctype.c", line 50: warning: initializer does not fit or is out of
> range: 135
> "ctype.c", line 51: warning: initializer does not fit or is out of
> range: 136
> "ctype.c", line 51: warning: initializer does not fit or is out of
> range: 137
> "ctype.c", line 51: warning: initializer does not fit or is out of
> range: 138
> "ctype.c", line 51: warning: initializer does not fit or is out of
> range: 139
> "ctype.c", line 51: warning: initializer does not fit or is out of
> range: 140
> "ctype.c", line 51: warning: initializer does not fit or is out of
> range: 141
> "ctype.c", line 51: warning: initializer does not fit or is out of
> range: 142
> "ctype.c", line 51: warning: initializer does not fit or is out of
> range: 143
> "ctype.c", line 52: warning: initializer does not fit or is out of
> range: 144
> "ctype.c", line 52: warning: initializer does not fit or is out of
> range: 145
> "ctype.c", line 52: warning: initializer does not fit or is out of
> range: 146
> "ctype.c", line 52: warning: initializer does not fit or is out of
> range: 147
> "ctype.c", line 52: warning: initializer does not fit or is out of
> range: 148
> "ctype.c", line 52: warning: initializer does not fit or is out of
> range: 149
> "ctype.c", line 52: warning: initializer does not fit or is out of
> range: 150
> "ctype.c", line 52: warning: initializer does not fit or is out of
> range: 151
> "ctype.c", line 53: warning: initializer does not fit or is out of
> range: 152
> "ctype.c", line 53: warning: initializer does not fit or is out of
> range: 153
> "ctype.c", line 53: warning: initializer does not fit or is out of
> range: 154
> "ctype.c", line 53: warning: initializer does not fit or is out of
> range: 155
> "ctype.c", line 53: warning: initializer does not fit or is out of
> range: 156
> "ctype.c", line 53: warning: initializer does not fit or is out of
> range: 157
> "ctype.c", line 53: warning: initializer does not fit or is out of
> range: 158
> "ctype.c", line 53: warning: initializer does not fit or is out of
> range: 159
> "ctype.c", line 54: warning: initializer does not fit or is out of
> range: 160
> "ctype.c", line 54: warning: initializer does not fit or is out of
> range: 161
> "ctype.c", line 54: warning: initializer does not fit or is out of
> range: 162
> "ctype.c", line 54: warning: initializer does not fit or is out of
> range: 163
> "ctype.c", line 54: warning: initializer does not fit or is out of
> range: 164
> "ctype.c", line 54: warning: initializer does not fit or is out of
> range: 165
> "ctype.c", line 54: warning: initializer does not fit or is out of
> range: 166
> "ctype.c", line 54: warning: initializer does not fit or is out of
> range: 167
> "ctype.c", line 55: warning: initializer does not fit or is out of
> range: 168
> "ctype.c", line 55: warning: initializer does not fit or is out of
> range: 169
> "ctype.c", line 55: warning: initializer does not fit or is out of
> range: 170
> "ctype.c", line 55: warning: initializer does not fit or is out of
> range: 171
> "ctype.c", line 55: warning: initializer does not fit or is out of
> range: 172
> "ctype.c", line 55: warning: initializer does not fit or is out of
> range: 173
> "ctype.c", line 55: warning: initializer does not fit or is out of
> range: 174
> "ctype.c", line 55: warning: initializer does not fit or is out of
> range: 175
> "ctype.c", line 56: warning: initializer does not fit or is out of
> range: 176
> "ctype.c", line 56: warning: initializer does not fit or is out of
> range: 177
> "ctype.c", line 56: warning: initializer does not fit or is out of
> range: 178
> "ctype.c", line 56: warning: initializer does not fit or is out of
> range: 179
> "ctype.c", line 56: warning: initializer does not fit or is out of
> range: 180
> "ctype.c", line 56: warning: initializer does not fit or is out of
> range: 181
> "ctype.c", line 56: warning: initializer does not fit or is out of
> range: 182
> "ctype.c", line 56: warning: initializer does not fit or is out of
> range: 183
> "ctype.c", line 57: warning: initializer does not fit or is out of
> range: 184
> "ctype.c", line 57: warning: initializer does not fit or is out of
> range: 185
> "ctype.c", line 57: warning: initializer does not fit or is out of
> range: 186
> "ctype.c", line 57: warning: initializer does not fit or is out of
> range: 187
> "ctype.c", line 57: warning: initializer does not fit or is out of
> range: 188
> "ctype.c", line 57: warning: initializer does not fit or is out of
> range: 189
> "ctype.c", line 57: warning: initializer does not fit or is out of
> range: 190
> "ctype.c", line 57: warning: initializer does not fit or is out of
> range: 191
> "ctype.c", line 58: warning: initializer does not fit or is out of
> range: 192
> "ctype.c", line 58: warning: initializer does not fit or is out of
> range: 193
> "ctype.c", line 58: warning: initializer does not fit or is out of
> range: 194
> "ctype.c", line 58: warning: initializer does not fit or is out of
> range: 195
> "ctype.c", line 58: warning: initializer does not fit or is out of
> range: 196
> "ctype.c", line 58: warning: initializer does not fit or is out of
> range: 197
> "ctype.c", line 58: warning: initializer does not fit or is out of
> range: 198
> "ctype.c", line 58: warning: initializer does not fit or is out of
> range: 199
> "ctype.c", line 59: warning: initializer does not fit or is out of
> range: 200
> "ctype.c", line 59: warning: initializer does not fit or is out of
> range: 201
> "ctype.c", line 59: warning: initializer does not fit or is out of
> range: 202
> "ctype.c", line 59: warning: initializer does not fit or is out of
> range: 203
> "ctype.c", line 59: warning: initializer does not fit or is out of
> range: 204
> "ctype.c", line 59: warning: initializer does not fit or is out of
> range: 205
> "ctype.c", line 59: warning: initializer does not fit or is out of
> range: 206
> "ctype.c", line 59: warning: initializer does not fit or is out of
> range: 207
> "ctype.c", line 60: warning: initializer does not fit or is out of
> range: 208
> "ctype.c", line 60: warning: initializer does not fit or is out of
> range: 209
> "ctype.c", line 60: warning: initializer does not fit or is out of
> range: 210
> "ctype.c", line 60: warning: initializer does not fit or is out of
> range: 211
> "ctype.c", line 60: warning: initializer does not fit or is out of
> range: 212
> "ctype.c", line 60: warning: initializer does not fit or is out of
> range: 213
> "ctype.c", line 60: warning: initializer does not fit or is out of
> range: 214
> "ctype.c", line 60: warning: initializer does not fit or is out of
> range: 215
> "ctype.c", line 61: warning: initializer does not fit or is out of
> range: 216
> "ctype.c", line 61: warning: initializer does not fit or is out of
> range: 217
> "ctype.c", line 61: warning: initializer does not fit or is out of
> range: 218
> "ctype.c", line 61: warning: initializer does not fit or is out of
> range: 219
> "ctype.c", line 61: warning: initializer does not fit or is out of
> range: 220
> "ctype.c", line 61: warning: initializer does not fit or is out of
> range: 221
> "ctype.c", line 61: warning: initializer does not fit or is out of
> range: 222
> "ctype.c", line 61: warning: initializer does not fit or is out of
> range: 223
> "ctype.c", line 62: warning: initializer does not fit or is out of
> range: 224
> "ctype.c", line 62: warning: initializer does not fit or is out of
> range: 225
> "ctype.c", line 62: warning: initializer does not fit or is out of
> range: 226
> "ctype.c", line 62: warning: initializer does not fit or is out of
> range: 227
> "ctype.c", line 62: warning: initializer does not fit or is out of
> range: 228
> "ctype.c", line 62: warning: initializer does not fit or is out of
> range: 229
> "ctype.c", line 62: warning: initializer does not fit or is out of
> range: 230
> "ctype.c", line 62: warning: initializer does not fit or is out of
> range: 231
> "ctype.c", line 63: warning: initializer does not fit or is out of
> range: 232
> "ctype.c", line 63: warning: initializer does not fit or is out of
> range: 233
> "ctype.c", line 63: warning: initializer does not fit or is out of
> range: 234
> "ctype.c", line 63: warning: initializer does not fit or is out of
> range: 235
> "ctype.c", line 63: warning: initializer does not fit or is out of
> range: 236
> "ctype.c", line 63: warning: initializer does not fit or is out of
> range: 237
> "ctype.c", line 63: warning: initializer does not fit or is out of
> range: 238
> "ctype.c", line 63: warning: initializer does not fit or is out of
> range: 239
> "ctype.c", line 64: warning: initializer does not fit or is out of
> range: 240
> "ctype.c", line 64: warning: initializer does not fit or is out of
> range: 241
> "ctype.c", line 64: warning: initializer does not fit or is out of
> range: 242
> "ctype.c", line 64: warning: initializer does not fit or is out of
> range: 243
> "ctype.c", line 64: warning: initializer does not fit or is out of
> range: 244
> "ctype.c", line 64: warning: initializer does not fit or is out of
> range: 245
> "ctype.c", line 64: warning: initializer does not fit or is out of
> range: 246
> "ctype.c", line 64: warning: initializer does not fit or is out of
> range: 247
> "ctype.c", line 65: warning: initializer does not fit or is out of
> range: 248
> "ctype.c", line 65: warning: initializer does not fit or is out of
> range: 249
> "ctype.c", line 65: warning: initializer does not fit or is out of
> range: 250
> "ctype.c", line 65: warning: initializer does not fit or is out of
> range: 251
> "ctype.c", line 65: warning: initializer does not fit or is out of
> range: 252
> "ctype.c", line 65: warning: initializer does not fit or is out of
> range: 253
> "ctype.c", line 65: warning: initializer does not fit or is out of
> range: 254
> "ctype.c", line 65: warning: initializer does not fit or is out of
> range: 255
> CC date.o
> CC decorate.o
> CC diffcore-break.o
> CC diffcore-delta.o
> CC diffcore-order.o
> CC diffcore-pickaxe.o
> CC diffcore-rename.o
> CC diff-delta.o
> CC diff-lib.o
> CC diff-no-index.o
> CC diff.o
> CC dir.o
> CC editor.o
> CC entry.o
> CC environment.o
> CC ewah/bitmap.o
> CC ewah/ewah_bitmap.o
> CC ewah/ewah_io.o
> CC ewah/ewah_rlw.o
> CC exec_cmd.o
> CC fetch-pack.o
> CC fsck.o
> CC gettext.o
> CC gpg-interface.o
> CC graph.o
> CC grep.o
> CC hashmap.o
> GEN common-cmds.h
> CC help.o
> CC hex.o
> CC ident.o
> CC kwset.o
> CC levenshtein.o
> CC line-log.o
> CC line-range.o
> CC list-objects.o
> CC ll-merge.o
> CC lockfile.o
> CC log-tree.o
> CC mailmap.o
> CC match-trees.o
> CC merge.o
> CC merge-blobs.o
> CC merge-recursive.o
> CC mergesort.o
> CC name-hash.o
> CC notes.o
> CC notes-cache.o
> CC notes-merge.o
> CC notes-utils.o
> CC object.o
> CC pack-bitmap.o
> CC pack-bitmap-write.o
> CC pack-check.o
> CC pack-objects.o
> CC pack-revindex.o
> CC pack-write.o
> CC pager.o
> CC parse-options.o
> CC parse-options-cb.o
> CC patch-delta.o
> CC patch-ids.o
> CC path.o
> CC pathspec.o
> CC pkt-line.o
> CC preload-index.o
> CC pretty.o
> CC prio-queue.o
> CC progress.o
> CC prompt.o
> CC quote.o
> CC reachable.o
> CC read-cache.o
> "read-cache.c", line 799: warning: statement not reached
> CC reflog-walk.o
> CC refs.o
> CC remote.o
> CC replace_object.o
> CC rerere.o
> CC resolve-undo.o
> CC revision.o
> CC run-command.o
> CC send-pack.o
> CC sequencer.o
> CC server-info.o
> CC setup.o
> CC sha1-array.o
> CC sha1-lookup.o
> CC sha1_file.o
> CC sha1_name.o
> CC shallow.o
> CC sideband.o
> CC sigchain.o
> CC split-index.o
> CC strbuf.o
> CC streaming.o
> CC string-list.o
> CC submodule.o
> CC symlinks.o
> CC tag.o
> CC trace.o
> "trace.c", line 219: error: identifier redeclared: trace_strbuf
> current : function(pointer to const char, pointer to const
> struct strbuf {unsigned long alloc, unsigned long len, pointer to char
> buf}) returning void
> previous: function(pointer to struct trace_key {const pointer to
> const char key, int fd, unsigned int initialized :1, unsigned int
> need_close :1}, pointer to const struct strbuf {unsigned long alloc,
> unsigned long len, pointer to char buf}) returning void : "trace.h",
> line 33
> "trace.c", line 221: warning: argument 0000003 is incompatible with
> prototype:
> prototype: pointer to struct trace_key {const pointer to const
> char key, int fd, unsigned int initialized :1, unsigned int need_close
> :1} : "trace.c", line 160
> argument : pointer to const char
> "trace.c", line 390: error: reference to static identifier "offset" in
> extern inline function
> "trace.c", line 392: error: reference to static identifier "offset" in
> extern inline function
> "trace.c", line 393: error: reference to static identifier "offset" in
> extern inline function
> "trace.c", line 401: error: reference to static identifier "offset" in
> extern inline function
> "trace.c", line 403: error: reference to static identifier "offset" in
> extern inline function
> cc: acomp failed for trace.c
> gmake: *** [trace.o] Error 2
>
>
>
>
> Solaris 10 with Oracle Studio 12.3 compiler tools. A lengthy maillist
> discussion last week sorted out the previous release of git just
> fine however this release fails to build.
>
The issue was introduced with e05bed96 (trace: add 'file:line' to all
trace output).
-- >8 --
Subject: [PATCH] trace: correct trace_strbuf() parameter type for !HAVE_VARIADIC_MACROS
Reported-by: dev <dev@cor0.com>
Signed-off-by: Rene Scharfe <l.s.r@web.de>
---
trace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/trace.c b/trace.c
index 54aaee5..b6f25a2 100644
--- a/trace.c
+++ b/trace.c
@@ -216,7 +216,7 @@ void trace_argv_printf(const char **argv, const char *format, ...)
va_end(ap);
}
-void trace_strbuf(const char *key, const struct strbuf *data)
+void trace_strbuf(struct trace_key *key, const struct strbuf *data)
{
trace_strbuf_fl(NULL, 0, key, data);
}
--
2.1.0
next prev parent reply other threads:[~2014-09-06 20:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-06 19:26 "trace.c", line 219: error: identifier redeclared: trace_strbuf dev
2014-09-06 20:53 ` René Scharfe [this message]
2014-09-07 17:19 ` dev
2014-09-08 18:11 ` Junio C Hamano
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=540B742F.5030700@web.de \
--to=l.s.r@web.de \
--cc=dev@cor0.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=karsten.blees@gmail.com \
/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.
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 NNTP newsgroup(s).