{"thread":{"id":"37504","subject":"\"trace.c\", line 219: error: identifier redeclared: trace_strbuf","startedAt":"2014-09-06T19:26:54Z","lastAt":"2014-09-08T18:11:37Z","messageCount":4,"participants":["dev","René Scharfe","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"248992","messageId":"893371408.24076.1410031614959.JavaMail.vpopmail@webmail2.networksolutionsemail.com","threadId":"37504","inReplyTo":null,"subject":"\"trace.c\", line 219: error: identifier redeclared: trace_strbuf","fromName":"dev","fromEmail":"dev@cor0.com","sentAt":"2014-09-06T19:26:54Z","receivedAt":"2014-09-06T19:26:54Z","isPatch":false,"sender":{"key":"dev@cor0.com","avatar":null},"body":"\n\n\nBuild on Solaris 10 of latest git tarball fails thus :\n\n    CC tag.o\n    CC trace.o\n\"trace.c\", line 219: error: identifier redeclared: trace_strbuf\n        current : function(pointer to const char, pointer to const\nstruct strbuf {unsigned long alloc, unsigned long len, pointer to char\nbuf}) returning void\n        previous: function(pointer to struct trace_key {const pointer to\nconst char key, int fd, unsigned int initialized :1, unsigned int\nneed_close :1}, pointer to const struct strbuf {unsigned long alloc,\nunsigned long len, pointer to char buf}) returning void : \"trace.h\",\nline 33\n\"trace.c\", line 221: warning: argument 0000003 is incompatible with\nprototype:\n        prototype: pointer to struct trace_key {const pointer to const\nchar key, int fd, unsigned int initialized :1, unsigned int need_close\n:1} : \"trace.c\", line 160\n        argument : pointer to const char\n\"trace.c\", line 390: error: reference to static identifier \"offset\" in\nextern inline function\n\"trace.c\", line 392: error: reference to static identifier \"offset\" in\nextern inline function\n\"trace.c\", line 393: error: reference to static identifier \"offset\" in\nextern inline function\n\"trace.c\", line 401: error: reference to static identifier \"offset\" in\nextern inline function\n\"trace.c\", line 403: error: reference to static identifier \"offset\" in\nextern inline function\ncc: acomp failed for trace.c\ngmake: *** [trace.o] Error 2\n\n\n\n\nextracted the tarball and did the following :\n\n$ gmake CFLAGS=\"$CFLAGS\" LDFLAGS=\"$LD_OPTIONS\" NEEDS_LIBICONV=Yes \\\n> SHELL_PATH=/usr/local/bin/bash \\\n> SANE_TOOL_PATH=/usr/local/bin \\\n> USE_LIBPCRE=1 LIBPCREDIR=/usr/local CURLDIR=/usr/local \\\n> EXPATDIR=/usr/local NEEDS_LIBINTL_BEFORE_LIBICONV=1 \\\n> NEEDS_SOCKET=1 NEEDS_RESOLV=1 USE_NSEC=1 \\\n> PERL_PATH=/usr/local/bin/perl \\\n> TAR=/usr/bin/tar \\\n> NO_PYTHON=1 DEFAULT_PAGER=/usr/xpg4/bin/more \\\n> DEFAULT_EDITOR=/usr/local/bin/vim DEFAULT_HELP_FORMAT=man \\\n> prefix=/usr/local\nGIT_VERSION = 2.1.0\n    * new build flags\n    CC credential-store.o\n    * new link flags\n    CC abspath.o\n    CC advice.o\n    CC alias.o\n    CC alloc.o\n    CC archive.o\n    CC archive-tar.o\n    CC archive-zip.o\n    CC argv-array.o\n    * new prefix flags\n    CC attr.o\n    CC base85.o\n    CC bisect.o\n    CC blob.o\n    CC branch.o\n    CC bulk-checkin.o\n    CC bundle.o\n    CC cache-tree.o\n    CC color.o\n    CC column.o\n    CC combine-diff.o\n    CC commit.o\n    CC compat/obstack.o\n    CC compat/terminal.o\n    CC config.o\n    CC connect.o\n    CC connected.o\n    CC convert.o\n    CC copy.o\n    CC credential.o\n    CC csum-file.o\n    CC ctype.o\n\"ctype.c\", line 50: warning: initializer does not fit or is out of\nrange: 128\n\"ctype.c\", line 50: warning: initializer does not fit or is out of\nrange: 129\n\"ctype.c\", line 50: warning: initializer does not fit or is out of\nrange: 130\n\"ctype.c\", line 50: warning: initializer does not fit or is out of\nrange: 131\n\"ctype.c\", line 50: warning: initializer does not fit or is out of\nrange: 132\n\"ctype.c\", line 50: warning: initializer does not fit or is out of\nrange: 133\n\"ctype.c\", line 50: warning: initializer does not fit or is out of\nrange: 134\n\"ctype.c\", line 50: warning: initializer does not fit or is out of\nrange: 135\n\"ctype.c\", line 51: warning: initializer does not fit or is out of\nrange: 136\n\"ctype.c\", line 51: warning: initializer does not fit or is out of\nrange: 137\n\"ctype.c\", line 51: warning: initializer does not fit or is out of\nrange: 138\n\"ctype.c\", line 51: warning: initializer does not fit or is out of\nrange: 139\n\"ctype.c\", line 51: warning: initializer does not fit or is out of\nrange: 140\n\"ctype.c\", line 51: warning: initializer does not fit or is out of\nrange: 141\n\"ctype.c\", line 51: warning: initializer does not fit or is out of\nrange: 142\n\"ctype.c\", line 51: warning: initializer does not fit or is out of\nrange: 143\n\"ctype.c\", line 52: warning: initializer does not fit or is out of\nrange: 144\n\"ctype.c\", line 52: warning: initializer does not fit or is out of\nrange: 145\n\"ctype.c\", line 52: warning: initializer does not fit or is out of\nrange: 146\n\"ctype.c\", line 52: warning: initializer does not fit or is out of\nrange: 147\n\"ctype.c\", line 52: warning: initializer does not fit or is out of\nrange: 148\n\"ctype.c\", line 52: warning: initializer does not fit or is out of\nrange: 149\n\"ctype.c\", line 52: warning: initializer does not fit or is out of\nrange: 150\n\"ctype.c\", line 52: warning: initializer does not fit or is out of\nrange: 151\n\"ctype.c\", line 53: warning: initializer does not fit or is out of\nrange: 152\n\"ctype.c\", line 53: warning: initializer does not fit or is out of\nrange: 153\n\"ctype.c\", line 53: warning: initializer does not fit or is out of\nrange: 154\n\"ctype.c\", line 53: warning: initializer does not fit or is out of\nrange: 155\n\"ctype.c\", line 53: warning: initializer does not fit or is out of\nrange: 156\n\"ctype.c\", line 53: warning: initializer does not fit or is out of\nrange: 157\n\"ctype.c\", line 53: warning: initializer does not fit or is out of\nrange: 158\n\"ctype.c\", line 53: warning: initializer does not fit or is out of\nrange: 159\n\"ctype.c\", line 54: warning: initializer does not fit or is out of\nrange: 160\n\"ctype.c\", line 54: warning: initializer does not fit or is out of\nrange: 161\n\"ctype.c\", line 54: warning: initializer does not fit or is out of\nrange: 162\n\"ctype.c\", line 54: warning: initializer does not fit or is out of\nrange: 163\n\"ctype.c\", line 54: warning: initializer does not fit or is out of\nrange: 164\n\"ctype.c\", line 54: warning: initializer does not fit or is out of\nrange: 165\n\"ctype.c\", line 54: warning: initializer does not fit or is out of\nrange: 166\n\"ctype.c\", line 54: warning: initializer does not fit or is out of\nrange: 167\n\"ctype.c\", line 55: warning: initializer does not fit or is out of\nrange: 168\n\"ctype.c\", line 55: warning: initializer does not fit or is out of\nrange: 169\n\"ctype.c\", line 55: warning: initializer does not fit or is out of\nrange: 170\n\"ctype.c\", line 55: warning: initializer does not fit or is out of\nrange: 171\n\"ctype.c\", line 55: warning: initializer does not fit or is out of\nrange: 172\n\"ctype.c\", line 55: warning: initializer does not fit or is out of\nrange: 173\n\"ctype.c\", line 55: warning: initializer does not fit or is out of\nrange: 174\n\"ctype.c\", line 55: warning: initializer does not fit or is out of\nrange: 175\n\"ctype.c\", line 56: warning: initializer does not fit or is out of\nrange: 176\n\"ctype.c\", line 56: warning: initializer does not fit or is out of\nrange: 177\n\"ctype.c\", line 56: warning: initializer does not fit or is out of\nrange: 178\n\"ctype.c\", line 56: warning: initializer does not fit or is out of\nrange: 179\n\"ctype.c\", line 56: warning: initializer does not fit or is out of\nrange: 180\n\"ctype.c\", line 56: warning: initializer does not fit or is out of\nrange: 181\n\"ctype.c\", line 56: warning: initializer does not fit or is out of\nrange: 182\n\"ctype.c\", line 56: warning: initializer does not fit or is out of\nrange: 183\n\"ctype.c\", line 57: warning: initializer does not fit or is out of\nrange: 184\n\"ctype.c\", line 57: warning: initializer does not fit or is out of\nrange: 185\n\"ctype.c\", line 57: warning: initializer does not fit or is out of\nrange: 186\n\"ctype.c\", line 57: warning: initializer does not fit or is out of\nrange: 187\n\"ctype.c\", line 57: warning: initializer does not fit or is out of\nrange: 188\n\"ctype.c\", line 57: warning: initializer does not fit or is out of\nrange: 189\n\"ctype.c\", line 57: warning: initializer does not fit or is out of\nrange: 190\n\"ctype.c\", line 57: warning: initializer does not fit or is out of\nrange: 191\n\"ctype.c\", line 58: warning: initializer does not fit or is out of\nrange: 192\n\"ctype.c\", line 58: warning: initializer does not fit or is out of\nrange: 193\n\"ctype.c\", line 58: warning: initializer does not fit or is out of\nrange: 194\n\"ctype.c\", line 58: warning: initializer does not fit or is out of\nrange: 195\n\"ctype.c\", line 58: warning: initializer does not fit or is out of\nrange: 196\n\"ctype.c\", line 58: warning: initializer does not fit or is out of\nrange: 197\n\"ctype.c\", line 58: warning: initializer does not fit or is out of\nrange: 198\n\"ctype.c\", line 58: warning: initializer does not fit or is out of\nrange: 199\n\"ctype.c\", line 59: warning: initializer does not fit or is out of\nrange: 200\n\"ctype.c\", line 59: warning: initializer does not fit or is out of\nrange: 201\n\"ctype.c\", line 59: warning: initializer does not fit or is out of\nrange: 202\n\"ctype.c\", line 59: warning: initializer does not fit or is out of\nrange: 203\n\"ctype.c\", line 59: warning: initializer does not fit or is out of\nrange: 204\n\"ctype.c\", line 59: warning: initializer does not fit or is out of\nrange: 205\n\"ctype.c\", line 59: warning: initializer does not fit or is out of\nrange: 206\n\"ctype.c\", line 59: warning: initializer does not fit or is out of\nrange: 207\n\"ctype.c\", line 60: warning: initializer does not fit or is out of\nrange: 208\n\"ctype.c\", line 60: warning: initializer does not fit or is out of\nrange: 209\n\"ctype.c\", line 60: warning: initializer does not fit or is out of\nrange: 210\n\"ctype.c\", line 60: warning: initializer does not fit or is out of\nrange: 211\n\"ctype.c\", line 60: warning: initializer does not fit or is out of\nrange: 212\n\"ctype.c\", line 60: warning: initializer does not fit or is out of\nrange: 213\n\"ctype.c\", line 60: warning: initializer does not fit or is out of\nrange: 214\n\"ctype.c\", line 60: warning: initializer does not fit or is out of\nrange: 215\n\"ctype.c\", line 61: warning: initializer does not fit or is out of\nrange: 216\n\"ctype.c\", line 61: warning: initializer does not fit or is out of\nrange: 217\n\"ctype.c\", line 61: warning: initializer does not fit or is out of\nrange: 218\n\"ctype.c\", line 61: warning: initializer does not fit or is out of\nrange: 219\n\"ctype.c\", line 61: warning: initializer does not fit or is out of\nrange: 220\n\"ctype.c\", line 61: warning: initializer does not fit or is out of\nrange: 221\n\"ctype.c\", line 61: warning: initializer does not fit or is out of\nrange: 222\n\"ctype.c\", line 61: warning: initializer does not fit or is out of\nrange: 223\n\"ctype.c\", line 62: warning: initializer does not fit or is out of\nrange: 224\n\"ctype.c\", line 62: warning: initializer does not fit or is out of\nrange: 225\n\"ctype.c\", line 62: warning: initializer does not fit or is out of\nrange: 226\n\"ctype.c\", line 62: warning: initializer does not fit or is out of\nrange: 227\n\"ctype.c\", line 62: warning: initializer does not fit or is out of\nrange: 228\n\"ctype.c\", line 62: warning: initializer does not fit or is out of\nrange: 229\n\"ctype.c\", line 62: warning: initializer does not fit or is out of\nrange: 230\n\"ctype.c\", line 62: warning: initializer does not fit or is out of\nrange: 231\n\"ctype.c\", line 63: warning: initializer does not fit or is out of\nrange: 232\n\"ctype.c\", line 63: warning: initializer does not fit or is out of\nrange: 233\n\"ctype.c\", line 63: warning: initializer does not fit or is out of\nrange: 234\n\"ctype.c\", line 63: warning: initializer does not fit or is out of\nrange: 235\n\"ctype.c\", line 63: warning: initializer does not fit or is out of\nrange: 236\n\"ctype.c\", line 63: warning: initializer does not fit or is out of\nrange: 237\n\"ctype.c\", line 63: warning: initializer does not fit or is out of\nrange: 238\n\"ctype.c\", line 63: warning: initializer does not fit or is out of\nrange: 239\n\"ctype.c\", line 64: warning: initializer does not fit or is out of\nrange: 240\n\"ctype.c\", line 64: warning: initializer does not fit or is out of\nrange: 241\n\"ctype.c\", line 64: warning: initializer does not fit or is out of\nrange: 242\n\"ctype.c\", line 64: warning: initializer does not fit or is out of\nrange: 243\n\"ctype.c\", line 64: warning: initializer does not fit or is out of\nrange: 244\n\"ctype.c\", line 64: warning: initializer does not fit or is out of\nrange: 245\n\"ctype.c\", line 64: warning: initializer does not fit or is out of\nrange: 246\n\"ctype.c\", line 64: warning: initializer does not fit or is out of\nrange: 247\n\"ctype.c\", line 65: warning: initializer does not fit or is out of\nrange: 248\n\"ctype.c\", line 65: warning: initializer does not fit or is out of\nrange: 249\n\"ctype.c\", line 65: warning: initializer does not fit or is out of\nrange: 250\n\"ctype.c\", line 65: warning: initializer does not fit or is out of\nrange: 251\n\"ctype.c\", line 65: warning: initializer does not fit or is out of\nrange: 252\n\"ctype.c\", line 65: warning: initializer does not fit or is out of\nrange: 253\n\"ctype.c\", line 65: warning: initializer does not fit or is out of\nrange: 254\n\"ctype.c\", line 65: warning: initializer does not fit or is out of\nrange: 255\n    CC date.o\n    CC decorate.o\n    CC diffcore-break.o\n    CC diffcore-delta.o\n    CC diffcore-order.o\n    CC diffcore-pickaxe.o\n    CC diffcore-rename.o\n    CC diff-delta.o\n    CC diff-lib.o\n    CC diff-no-index.o\n    CC diff.o\n    CC dir.o\n    CC editor.o\n    CC entry.o\n    CC environment.o\n    CC ewah/bitmap.o\n    CC ewah/ewah_bitmap.o\n    CC ewah/ewah_io.o\n    CC ewah/ewah_rlw.o\n    CC exec_cmd.o\n    CC fetch-pack.o\n    CC fsck.o\n    CC gettext.o\n    CC gpg-interface.o\n    CC graph.o\n    CC grep.o\n    CC hashmap.o\n    GEN common-cmds.h\n    CC help.o\n    CC hex.o\n    CC ident.o\n    CC kwset.o\n    CC levenshtein.o\n    CC line-log.o\n    CC line-range.o\n    CC list-objects.o\n    CC ll-merge.o\n    CC lockfile.o\n    CC log-tree.o\n    CC mailmap.o\n    CC match-trees.o\n    CC merge.o\n    CC merge-blobs.o\n    CC merge-recursive.o\n    CC mergesort.o\n    CC name-hash.o\n    CC notes.o\n    CC notes-cache.o\n    CC notes-merge.o\n    CC notes-utils.o\n    CC object.o\n    CC pack-bitmap.o\n    CC pack-bitmap-write.o\n    CC pack-check.o\n    CC pack-objects.o\n    CC pack-revindex.o\n    CC pack-write.o\n    CC pager.o\n    CC parse-options.o\n    CC parse-options-cb.o\n    CC patch-delta.o\n    CC patch-ids.o\n    CC path.o\n    CC pathspec.o\n    CC pkt-line.o\n    CC preload-index.o\n    CC pretty.o\n    CC prio-queue.o\n    CC progress.o\n    CC prompt.o\n    CC quote.o\n    CC reachable.o\n    CC read-cache.o\n\"read-cache.c\", line 799: warning: statement not reached\n    CC reflog-walk.o\n    CC refs.o\n    CC remote.o\n    CC replace_object.o\n    CC rerere.o\n    CC resolve-undo.o\n    CC revision.o\n    CC run-command.o\n    CC send-pack.o\n    CC sequencer.o\n    CC server-info.o\n    CC setup.o\n    CC sha1-array.o\n    CC sha1-lookup.o\n    CC sha1_file.o\n    CC sha1_name.o\n    CC shallow.o\n    CC sideband.o\n    CC sigchain.o\n    CC split-index.o\n    CC strbuf.o\n    CC streaming.o\n    CC string-list.o\n    CC submodule.o\n    CC symlinks.o\n    CC tag.o\n    CC trace.o\n\"trace.c\", line 219: error: identifier redeclared: trace_strbuf\n        current : function(pointer to const char, pointer to const\nstruct strbuf {unsigned long alloc, unsigned long len, pointer to char\nbuf}) returning void\n        previous: function(pointer to struct trace_key {const pointer to\nconst char key, int fd, unsigned int initialized :1, unsigned int\nneed_close :1}, pointer to const struct strbuf {unsigned long alloc,\nunsigned long len, pointer to char buf}) returning void : \"trace.h\",\nline 33\n\"trace.c\", line 221: warning: argument 0000003 is incompatible with\nprototype:\n        prototype: pointer to struct trace_key {const pointer to const\nchar key, int fd, unsigned int initialized :1, unsigned int need_close\n:1} : \"trace.c\", line 160\n        argument : pointer to const char\n\"trace.c\", line 390: error: reference to static identifier \"offset\" in\nextern inline function\n\"trace.c\", line 392: error: reference to static identifier \"offset\" in\nextern inline function\n\"trace.c\", line 393: error: reference to static identifier \"offset\" in\nextern inline function\n\"trace.c\", line 401: error: reference to static identifier \"offset\" in\nextern inline function\n\"trace.c\", line 403: error: reference to static identifier \"offset\" in\nextern inline function\ncc: acomp failed for trace.c\ngmake: *** [trace.o] Error 2\n\n\n\n\nSolaris 10 with Oracle Studio 12.3 compiler tools. A lengthy maillist\ndiscussion last week sorted out the previous release of git just\nfine however this release fails to build.\n"},{"id":"248993","messageId":"540B742F.5030700@web.de","threadId":"37504","inReplyTo":"893371408.24076.1410031614959.JavaMail.vpopmail@webmail2.networksolutionsemail.com","subject":"Re: \"trace.c\", line 219: error: identifier redeclared: trace_strbuf","fromName":"René Scharfe","fromEmail":"l.s.r@web.de","sentAt":"2014-09-06T20:53:03Z","receivedAt":"2014-09-06T20:53:03Z","isPatch":false,"sender":{"key":"l.s.r@web.de","avatar":"https://avatars.githubusercontent.com/u/26122331?v=4"},"body":"Am 06.09.2014 um 21:26 schrieb dev:\n> \n> \n> \n> Build on Solaris 10 of latest git tarball fails thus :\n> \n>      CC tag.o\n>      CC trace.o\n> \"trace.c\", line 219: error: identifier redeclared: trace_strbuf\n>          current : function(pointer to const char, pointer to const\n> struct strbuf {unsigned long alloc, unsigned long len, pointer to char\n> buf}) returning void\n>          previous: function(pointer to struct trace_key {const pointer to\n> const char key, int fd, unsigned int initialized :1, unsigned int\n> need_close :1}, pointer to const struct strbuf {unsigned long alloc,\n> unsigned long len, pointer to char buf}) returning void : \"trace.h\",\n> line 33\n> \"trace.c\", line 221: warning: argument 0000003 is incompatible with\n> prototype:\n>          prototype: pointer to struct trace_key {const pointer to const\n> char key, int fd, unsigned int initialized :1, unsigned int need_close\n> :1} : \"trace.c\", line 160\n>          argument : pointer to const char\n> \"trace.c\", line 390: error: reference to static identifier \"offset\" in\n> extern inline function\n> \"trace.c\", line 392: error: reference to static identifier \"offset\" in\n> extern inline function\n> \"trace.c\", line 393: error: reference to static identifier \"offset\" in\n> extern inline function\n> \"trace.c\", line 401: error: reference to static identifier \"offset\" in\n> extern inline function\n> \"trace.c\", line 403: error: reference to static identifier \"offset\" in\n> extern inline function\n> cc: acomp failed for trace.c\n> gmake: *** [trace.o] Error 2\n> \n> \n> \n> \n> extracted the tarball and did the following :\n> \n> $ gmake CFLAGS=\"$CFLAGS\" LDFLAGS=\"$LD_OPTIONS\" NEEDS_LIBICONV=Yes \\\n>> SHELL_PATH=/usr/local/bin/bash \\\n>> SANE_TOOL_PATH=/usr/local/bin \\\n>> USE_LIBPCRE=1 LIBPCREDIR=/usr/local CURLDIR=/usr/local \\\n>> EXPATDIR=/usr/local NEEDS_LIBINTL_BEFORE_LIBICONV=1 \\\n>> NEEDS_SOCKET=1 NEEDS_RESOLV=1 USE_NSEC=1 \\\n>> PERL_PATH=/usr/local/bin/perl \\\n>> TAR=/usr/bin/tar \\\n>> NO_PYTHON=1 DEFAULT_PAGER=/usr/xpg4/bin/more \\\n>> DEFAULT_EDITOR=/usr/local/bin/vim DEFAULT_HELP_FORMAT=man \\\n>> prefix=/usr/local\n> GIT_VERSION = 2.1.0\n>      * new build flags\n>      CC credential-store.o\n>      * new link flags\n>      CC abspath.o\n>      CC advice.o\n>      CC alias.o\n>      CC alloc.o\n>      CC archive.o\n>      CC archive-tar.o\n>      CC archive-zip.o\n>      CC argv-array.o\n>      * new prefix flags\n>      CC attr.o\n>      CC base85.o\n>      CC bisect.o\n>      CC blob.o\n>      CC branch.o\n>      CC bulk-checkin.o\n>      CC bundle.o\n>      CC cache-tree.o\n>      CC color.o\n>      CC column.o\n>      CC combine-diff.o\n>      CC commit.o\n>      CC compat/obstack.o\n>      CC compat/terminal.o\n>      CC config.o\n>      CC connect.o\n>      CC connected.o\n>      CC convert.o\n>      CC copy.o\n>      CC credential.o\n>      CC csum-file.o\n>      CC ctype.o\n> \"ctype.c\", line 50: warning: initializer does not fit or is out of\n> range: 128\n> \"ctype.c\", line 50: warning: initializer does not fit or is out of\n> range: 129\n> \"ctype.c\", line 50: warning: initializer does not fit or is out of\n> range: 130\n> \"ctype.c\", line 50: warning: initializer does not fit or is out of\n> range: 131\n> \"ctype.c\", line 50: warning: initializer does not fit or is out of\n> range: 132\n> \"ctype.c\", line 50: warning: initializer does not fit or is out of\n> range: 133\n> \"ctype.c\", line 50: warning: initializer does not fit or is out of\n> range: 134\n> \"ctype.c\", line 50: warning: initializer does not fit or is out of\n> range: 135\n> \"ctype.c\", line 51: warning: initializer does not fit or is out of\n> range: 136\n> \"ctype.c\", line 51: warning: initializer does not fit or is out of\n> range: 137\n> \"ctype.c\", line 51: warning: initializer does not fit or is out of\n> range: 138\n> \"ctype.c\", line 51: warning: initializer does not fit or is out of\n> range: 139\n> \"ctype.c\", line 51: warning: initializer does not fit or is out of\n> range: 140\n> \"ctype.c\", line 51: warning: initializer does not fit or is out of\n> range: 141\n> \"ctype.c\", line 51: warning: initializer does not fit or is out of\n> range: 142\n> \"ctype.c\", line 51: warning: initializer does not fit or is out of\n> range: 143\n> \"ctype.c\", line 52: warning: initializer does not fit or is out of\n> range: 144\n> \"ctype.c\", line 52: warning: initializer does not fit or is out of\n> range: 145\n> \"ctype.c\", line 52: warning: initializer does not fit or is out of\n> range: 146\n> \"ctype.c\", line 52: warning: initializer does not fit or is out of\n> range: 147\n> \"ctype.c\", line 52: warning: initializer does not fit or is out of\n> range: 148\n> \"ctype.c\", line 52: warning: initializer does not fit or is out of\n> range: 149\n> \"ctype.c\", line 52: warning: initializer does not fit or is out of\n> range: 150\n> \"ctype.c\", line 52: warning: initializer does not fit or is out of\n> range: 151\n> \"ctype.c\", line 53: warning: initializer does not fit or is out of\n> range: 152\n> \"ctype.c\", line 53: warning: initializer does not fit or is out of\n> range: 153\n> \"ctype.c\", line 53: warning: initializer does not fit or is out of\n> range: 154\n> \"ctype.c\", line 53: warning: initializer does not fit or is out of\n> range: 155\n> \"ctype.c\", line 53: warning: initializer does not fit or is out of\n> range: 156\n> \"ctype.c\", line 53: warning: initializer does not fit or is out of\n> range: 157\n> \"ctype.c\", line 53: warning: initializer does not fit or is out of\n> range: 158\n> \"ctype.c\", line 53: warning: initializer does not fit or is out of\n> range: 159\n> \"ctype.c\", line 54: warning: initializer does not fit or is out of\n> range: 160\n> \"ctype.c\", line 54: warning: initializer does not fit or is out of\n> range: 161\n> \"ctype.c\", line 54: warning: initializer does not fit or is out of\n> range: 162\n> \"ctype.c\", line 54: warning: initializer does not fit or is out of\n> range: 163\n> \"ctype.c\", line 54: warning: initializer does not fit or is out of\n> range: 164\n> \"ctype.c\", line 54: warning: initializer does not fit or is out of\n> range: 165\n> \"ctype.c\", line 54: warning: initializer does not fit or is out of\n> range: 166\n> \"ctype.c\", line 54: warning: initializer does not fit or is out of\n> range: 167\n> \"ctype.c\", line 55: warning: initializer does not fit or is out of\n> range: 168\n> \"ctype.c\", line 55: warning: initializer does not fit or is out of\n> range: 169\n> \"ctype.c\", line 55: warning: initializer does not fit or is out of\n> range: 170\n> \"ctype.c\", line 55: warning: initializer does not fit or is out of\n> range: 171\n> \"ctype.c\", line 55: warning: initializer does not fit or is out of\n> range: 172\n> \"ctype.c\", line 55: warning: initializer does not fit or is out of\n> range: 173\n> \"ctype.c\", line 55: warning: initializer does not fit or is out of\n> range: 174\n> \"ctype.c\", line 55: warning: initializer does not fit or is out of\n> range: 175\n> \"ctype.c\", line 56: warning: initializer does not fit or is out of\n> range: 176\n> \"ctype.c\", line 56: warning: initializer does not fit or is out of\n> range: 177\n> \"ctype.c\", line 56: warning: initializer does not fit or is out of\n> range: 178\n> \"ctype.c\", line 56: warning: initializer does not fit or is out of\n> range: 179\n> \"ctype.c\", line 56: warning: initializer does not fit or is out of\n> range: 180\n> \"ctype.c\", line 56: warning: initializer does not fit or is out of\n> range: 181\n> \"ctype.c\", line 56: warning: initializer does not fit or is out of\n> range: 182\n> \"ctype.c\", line 56: warning: initializer does not fit or is out of\n> range: 183\n> \"ctype.c\", line 57: warning: initializer does not fit or is out of\n> range: 184\n> \"ctype.c\", line 57: warning: initializer does not fit or is out of\n> range: 185\n> \"ctype.c\", line 57: warning: initializer does not fit or is out of\n> range: 186\n> \"ctype.c\", line 57: warning: initializer does not fit or is out of\n> range: 187\n> \"ctype.c\", line 57: warning: initializer does not fit or is out of\n> range: 188\n> \"ctype.c\", line 57: warning: initializer does not fit or is out of\n> range: 189\n> \"ctype.c\", line 57: warning: initializer does not fit or is out of\n> range: 190\n> \"ctype.c\", line 57: warning: initializer does not fit or is out of\n> range: 191\n> \"ctype.c\", line 58: warning: initializer does not fit or is out of\n> range: 192\n> \"ctype.c\", line 58: warning: initializer does not fit or is out of\n> range: 193\n> \"ctype.c\", line 58: warning: initializer does not fit or is out of\n> range: 194\n> \"ctype.c\", line 58: warning: initializer does not fit or is out of\n> range: 195\n> \"ctype.c\", line 58: warning: initializer does not fit or is out of\n> range: 196\n> \"ctype.c\", line 58: warning: initializer does not fit or is out of\n> range: 197\n> \"ctype.c\", line 58: warning: initializer does not fit or is out of\n> range: 198\n> \"ctype.c\", line 58: warning: initializer does not fit or is out of\n> range: 199\n> \"ctype.c\", line 59: warning: initializer does not fit or is out of\n> range: 200\n> \"ctype.c\", line 59: warning: initializer does not fit or is out of\n> range: 201\n> \"ctype.c\", line 59: warning: initializer does not fit or is out of\n> range: 202\n> \"ctype.c\", line 59: warning: initializer does not fit or is out of\n> range: 203\n> \"ctype.c\", line 59: warning: initializer does not fit or is out of\n> range: 204\n> \"ctype.c\", line 59: warning: initializer does not fit or is out of\n> range: 205\n> \"ctype.c\", line 59: warning: initializer does not fit or is out of\n> range: 206\n> \"ctype.c\", line 59: warning: initializer does not fit or is out of\n> range: 207\n> \"ctype.c\", line 60: warning: initializer does not fit or is out of\n> range: 208\n> \"ctype.c\", line 60: warning: initializer does not fit or is out of\n> range: 209\n> \"ctype.c\", line 60: warning: initializer does not fit or is out of\n> range: 210\n> \"ctype.c\", line 60: warning: initializer does not fit or is out of\n> range: 211\n> \"ctype.c\", line 60: warning: initializer does not fit or is out of\n> range: 212\n> \"ctype.c\", line 60: warning: initializer does not fit or is out of\n> range: 213\n> \"ctype.c\", line 60: warning: initializer does not fit or is out of\n> range: 214\n> \"ctype.c\", line 60: warning: initializer does not fit or is out of\n> range: 215\n> \"ctype.c\", line 61: warning: initializer does not fit or is out of\n> range: 216\n> \"ctype.c\", line 61: warning: initializer does not fit or is out of\n> range: 217\n> \"ctype.c\", line 61: warning: initializer does not fit or is out of\n> range: 218\n> \"ctype.c\", line 61: warning: initializer does not fit or is out of\n> range: 219\n> \"ctype.c\", line 61: warning: initializer does not fit or is out of\n> range: 220\n> \"ctype.c\", line 61: warning: initializer does not fit or is out of\n> range: 221\n> \"ctype.c\", line 61: warning: initializer does not fit or is out of\n> range: 222\n> \"ctype.c\", line 61: warning: initializer does not fit or is out of\n> range: 223\n> \"ctype.c\", line 62: warning: initializer does not fit or is out of\n> range: 224\n> \"ctype.c\", line 62: warning: initializer does not fit or is out of\n> range: 225\n> \"ctype.c\", line 62: warning: initializer does not fit or is out of\n> range: 226\n> \"ctype.c\", line 62: warning: initializer does not fit or is out of\n> range: 227\n> \"ctype.c\", line 62: warning: initializer does not fit or is out of\n> range: 228\n> \"ctype.c\", line 62: warning: initializer does not fit or is out of\n> range: 229\n> \"ctype.c\", line 62: warning: initializer does not fit or is out of\n> range: 230\n> \"ctype.c\", line 62: warning: initializer does not fit or is out of\n> range: 231\n> \"ctype.c\", line 63: warning: initializer does not fit or is out of\n> range: 232\n> \"ctype.c\", line 63: warning: initializer does not fit or is out of\n> range: 233\n> \"ctype.c\", line 63: warning: initializer does not fit or is out of\n> range: 234\n> \"ctype.c\", line 63: warning: initializer does not fit or is out of\n> range: 235\n> \"ctype.c\", line 63: warning: initializer does not fit or is out of\n> range: 236\n> \"ctype.c\", line 63: warning: initializer does not fit or is out of\n> range: 237\n> \"ctype.c\", line 63: warning: initializer does not fit or is out of\n> range: 238\n> \"ctype.c\", line 63: warning: initializer does not fit or is out of\n> range: 239\n> \"ctype.c\", line 64: warning: initializer does not fit or is out of\n> range: 240\n> \"ctype.c\", line 64: warning: initializer does not fit or is out of\n> range: 241\n> \"ctype.c\", line 64: warning: initializer does not fit or is out of\n> range: 242\n> \"ctype.c\", line 64: warning: initializer does not fit or is out of\n> range: 243\n> \"ctype.c\", line 64: warning: initializer does not fit or is out of\n> range: 244\n> \"ctype.c\", line 64: warning: initializer does not fit or is out of\n> range: 245\n> \"ctype.c\", line 64: warning: initializer does not fit or is out of\n> range: 246\n> \"ctype.c\", line 64: warning: initializer does not fit or is out of\n> range: 247\n> \"ctype.c\", line 65: warning: initializer does not fit or is out of\n> range: 248\n> \"ctype.c\", line 65: warning: initializer does not fit or is out of\n> range: 249\n> \"ctype.c\", line 65: warning: initializer does not fit or is out of\n> range: 250\n> \"ctype.c\", line 65: warning: initializer does not fit or is out of\n> range: 251\n> \"ctype.c\", line 65: warning: initializer does not fit or is out of\n> range: 252\n> \"ctype.c\", line 65: warning: initializer does not fit or is out of\n> range: 253\n> \"ctype.c\", line 65: warning: initializer does not fit or is out of\n> range: 254\n> \"ctype.c\", line 65: warning: initializer does not fit or is out of\n> range: 255\n>      CC date.o\n>      CC decorate.o\n>      CC diffcore-break.o\n>      CC diffcore-delta.o\n>      CC diffcore-order.o\n>      CC diffcore-pickaxe.o\n>      CC diffcore-rename.o\n>      CC diff-delta.o\n>      CC diff-lib.o\n>      CC diff-no-index.o\n>      CC diff.o\n>      CC dir.o\n>      CC editor.o\n>      CC entry.o\n>      CC environment.o\n>      CC ewah/bitmap.o\n>      CC ewah/ewah_bitmap.o\n>      CC ewah/ewah_io.o\n>      CC ewah/ewah_rlw.o\n>      CC exec_cmd.o\n>      CC fetch-pack.o\n>      CC fsck.o\n>      CC gettext.o\n>      CC gpg-interface.o\n>      CC graph.o\n>      CC grep.o\n>      CC hashmap.o\n>      GEN common-cmds.h\n>      CC help.o\n>      CC hex.o\n>      CC ident.o\n>      CC kwset.o\n>      CC levenshtein.o\n>      CC line-log.o\n>      CC line-range.o\n>      CC list-objects.o\n>      CC ll-merge.o\n>      CC lockfile.o\n>      CC log-tree.o\n>      CC mailmap.o\n>      CC match-trees.o\n>      CC merge.o\n>      CC merge-blobs.o\n>      CC merge-recursive.o\n>      CC mergesort.o\n>      CC name-hash.o\n>      CC notes.o\n>      CC notes-cache.o\n>      CC notes-merge.o\n>      CC notes-utils.o\n>      CC object.o\n>      CC pack-bitmap.o\n>      CC pack-bitmap-write.o\n>      CC pack-check.o\n>      CC pack-objects.o\n>      CC pack-revindex.o\n>      CC pack-write.o\n>      CC pager.o\n>      CC parse-options.o\n>      CC parse-options-cb.o\n>      CC patch-delta.o\n>      CC patch-ids.o\n>      CC path.o\n>      CC pathspec.o\n>      CC pkt-line.o\n>      CC preload-index.o\n>      CC pretty.o\n>      CC prio-queue.o\n>      CC progress.o\n>      CC prompt.o\n>      CC quote.o\n>      CC reachable.o\n>      CC read-cache.o\n> \"read-cache.c\", line 799: warning: statement not reached\n>      CC reflog-walk.o\n>      CC refs.o\n>      CC remote.o\n>      CC replace_object.o\n>      CC rerere.o\n>      CC resolve-undo.o\n>      CC revision.o\n>      CC run-command.o\n>      CC send-pack.o\n>      CC sequencer.o\n>      CC server-info.o\n>      CC setup.o\n>      CC sha1-array.o\n>      CC sha1-lookup.o\n>      CC sha1_file.o\n>      CC sha1_name.o\n>      CC shallow.o\n>      CC sideband.o\n>      CC sigchain.o\n>      CC split-index.o\n>      CC strbuf.o\n>      CC streaming.o\n>      CC string-list.o\n>      CC submodule.o\n>      CC symlinks.o\n>      CC tag.o\n>      CC trace.o\n> \"trace.c\", line 219: error: identifier redeclared: trace_strbuf\n>          current : function(pointer to const char, pointer to const\n> struct strbuf {unsigned long alloc, unsigned long len, pointer to char\n> buf}) returning void\n>          previous: function(pointer to struct trace_key {const pointer to\n> const char key, int fd, unsigned int initialized :1, unsigned int\n> need_close :1}, pointer to const struct strbuf {unsigned long alloc,\n> unsigned long len, pointer to char buf}) returning void : \"trace.h\",\n> line 33\n> \"trace.c\", line 221: warning: argument 0000003 is incompatible with\n> prototype:\n>          prototype: pointer to struct trace_key {const pointer to const\n> char key, int fd, unsigned int initialized :1, unsigned int need_close\n> :1} : \"trace.c\", line 160\n>          argument : pointer to const char\n> \"trace.c\", line 390: error: reference to static identifier \"offset\" in\n> extern inline function\n> \"trace.c\", line 392: error: reference to static identifier \"offset\" in\n> extern inline function\n> \"trace.c\", line 393: error: reference to static identifier \"offset\" in\n> extern inline function\n> \"trace.c\", line 401: error: reference to static identifier \"offset\" in\n> extern inline function\n> \"trace.c\", line 403: error: reference to static identifier \"offset\" in\n> extern inline function\n> cc: acomp failed for trace.c\n> gmake: *** [trace.o] Error 2\n> \n> \n> \n> \n> Solaris 10 with Oracle Studio 12.3 compiler tools. A lengthy maillist\n> discussion last week sorted out the previous release of git just\n> fine however this release fails to build.\n> \n\nThe issue was introduced with e05bed96 (trace: add 'file:line' to all\ntrace output).\n\n-- >8 --\nSubject: [PATCH] trace: correct trace_strbuf() parameter type for !HAVE_VARIADIC_MACROS\n\nReported-by: dev <dev@cor0.com>\nSigned-off-by: Rene Scharfe <l.s.r@web.de>\n---\n trace.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/trace.c b/trace.c\nindex 54aaee5..b6f25a2 100644\n--- a/trace.c\n+++ b/trace.c\n@@ -216,7 +216,7 @@ void trace_argv_printf(const char **argv, const char *format, ...)\n \tva_end(ap);\n }\n \n-void trace_strbuf(const char *key, const struct strbuf *data)\n+void trace_strbuf(struct trace_key *key, const struct strbuf *data)\n {\n \ttrace_strbuf_fl(NULL, 0, key, data);\n }\n-- \n2.1.0\n"},{"id":"249012","messageId":"2059998579.17018.1410110359755.JavaMail.vpopmail@webmail2.networksolutionsemail.com","threadId":"37504","inReplyTo":"540B742F.5030700@web.de","subject":"Re: \"trace.c\", line 219: error: identifier redeclared: trace_strbuf","fromName":"dev","fromEmail":"dev@cor0.com","sentAt":"2014-09-07T17:19:19Z","receivedAt":"2014-09-07T17:19:19Z","isPatch":false,"sender":{"key":"dev@cor0.com","avatar":null},"body":"\n\nOn September 6, 2014 at 4:53 PM \"René Scharfe\" <l.s.r@web.de> wrote:\n> Am 06.09.2014 um 21:26 schrieb dev:\n> >\n> >\n<snip>\n> >\n> > Solaris 10 with Oracle Studio 12.3 compiler tools. A lengthy\n> > maillist\n> > discussion last week sorted out the previous release of git just\n> > fine however this release fails to build.\n> >\n>\n> The issue was introduced with e05bed96 (trace: add 'file:line' to all\n> trace output).\n>\n> -- >8 --\n> Subject: [PATCH] trace: correct trace_strbuf() parameter type for\n> !HAVE_VARIADIC_MACROS\n>\n> Reported-by: dev <dev@cor0.com>\n> Signed-off-by: Rene Scharfe <l.s.r@web.de>\n> ---\n>  trace.c | 2 +-\n>  1 file changed, 1 insertion(+), 1 deletion(-)\n>\n> diff --git a/trace.c b/trace.c\n> index 54aaee5..b6f25a2 100644\n> --- a/trace.c\n> +++ b/trace.c\n> @@ -216,7 +216,7 @@ void trace_argv_printf(const char **argv, const\n> char *format, ...)\n>    va_end(ap);\n>  }\n> \n> -void trace_strbuf(const char *key, const struct strbuf *data)\n> +void trace_strbuf(struct trace_key *key, const struct strbuf *data)\n>  {\n>    trace_strbuf_fl(NULL, 0, key, data);\n>  }\n> --\n> 2.1.0\n>\n\nThank you for the reply and the info.  I backed that out and things get\nworse :\n\n$ diff -h trace.c.backup trace.c\n219,221c219,221\n< void trace_strbuf(const char *key, const struct strbuf *data)\n< {\n<       trace_strbuf_fl(NULL, 0, key, data);\n---\n> void trace_strbuf(struct trace_key *key, const struct strbuf *data)\n> {\n>         trace_strbuf_fl(NULL, 0, key, data);\n\n\n$ gmake CFLAGS=\"$CFLAGS\" LDFLAGS=\"$LD_OPTIONS\" NEEDS_LIBICONV=Yes \\\n> SHELL_PATH=/usr/local/bin/bash \\\n> SANE_TOOL_PATH=/usr/local/bin \\\n> USE_LIBPCRE=1 LIBPCREDIR=/usr/local CURLDIR=/usr/local \\\n> EXPATDIR=/usr/local NEEDS_LIBINTL_BEFORE_LIBICONV=1 \\\n> NEEDS_SOCKET=1 NEEDS_RESOLV=1 USE_NSEC=1 \\\n> PERL_PATH=/usr/local/bin/perl \\\n> TAR=/usr/bin/tar \\\n> NO_PYTHON=1 DEFAULT_PAGER=/usr/xpg4/bin/more \\\n> DEFAULT_EDITOR=/usr/local/bin/vim DEFAULT_HELP_FORMAT=man \\\n> prefix=/usr/local\n    CC trace.o\n\"trace.c\", line 390: error: reference to static identifier \"offset\" in\nextern inline function\n\"trace.c\", line 392: error: reference to static identifier \"offset\" in\nextern inline function\n\"trace.c\", line 393: error: reference to static identifier \"offset\" in\nextern inline function\n\"trace.c\", line 401: error: reference to static identifier \"offset\" in\nextern inline function\n\"trace.c\", line 403: error: reference to static identifier \"offset\" in\nextern inline function\ncc: acomp failed for trace.c\ngmake: *** [trace.o] Error 2\n$\n\nSo is there a possible 2.1.1 coming along shortly ?\n\ndev\n"},{"id":"249052","messageId":"xmqq7g1enfs6.fsf@gitster.dls.corp.google.com","threadId":"37504","inReplyTo":"540B742F.5030700@web.de","subject":"Re: \"trace.c\", line 219: error: identifier redeclared: trace_strbuf","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2014-09-08T18:11:37Z","receivedAt":"2014-09-08T18:11:37Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"René Scharfe <l.s.r@web.de> writes:\n\n> The issue was introduced with e05bed96 (trace: add 'file:line' to all\n> trace output).\n>\n> -- >8 --\n> Subject: [PATCH] trace: correct trace_strbuf() parameter type for !HAVE_VARIADIC_MACROS\n>\n> Reported-by: dev <dev@cor0.com>\n> Signed-off-by: Rene Scharfe <l.s.r@web.de>\n> ---\n>  trace.c | 2 +-\n>  1 file changed, 1 insertion(+), 1 deletion(-)\n>\n> diff --git a/trace.c b/trace.c\n> index 54aaee5..b6f25a2 100644\n> --- a/trace.c\n> +++ b/trace.c\n> @@ -216,7 +216,7 @@ void trace_argv_printf(const char **argv, const char *format, ...)\n>  \tva_end(ap);\n>  }\n>  \n> -void trace_strbuf(const char *key, const struct strbuf *data)\n> +void trace_strbuf(struct trace_key *key, const struct strbuf *data)\n>  {\n>  \ttrace_strbuf_fl(NULL, 0, key, data);\n>  }\n\nThanks.\n\nWill queue on top of kb/perf-trace, hoping to merge it down later.\n"}]}