[MacPorts] #50198: xkbcomp - Compilation failure on OSX 10.11
MacPorts
noreply at macports.org
Sun Jan 3 11:40:17 PST 2016
#50198: xkbcomp - Compilation failure on OSX 10.11
----------------------+--------------------------------
Reporter: jonesc@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Keywords: | Port: xkbcomp
----------------------+--------------------------------
OS X 10.11
Xcode 7.2
Build log is attached. Primary error looks like
{{{
:info:build xkbcomp.c:228:112: error: result of comparison against a
string literal is unspecified (use strncmp instead) [-Werror,-Wstring-
compare]
:info:build if ((argv[i][0] != '-') || (((((argv[i])==((char
*)((void*)0))||("-")==((char *)((void*)0)))?
(argv[i])!=("-"):strcmp(argv[i],"-"))==((Comparison)0))))
:info:build
^ ~~~~~
:info:build xkbcomp.c:654:93: error: result of comparison against a string
literal is unspecified (use strncmp instead) [-Werror,-Wstring-compare]
:info:build else if (((((inputFile)==((char
*)((void*)0))||("-")==((char *)((void*)0)))?
(inputFile)!=("-"):strcmp(inputFile,"-"))==((Comparison)0)))
:info:build
^ ~~~~~
:info:build xkbcomp.c:758:125: error: result of comparison against a
string literal is unspecified (use strncmp instead) [-Werror,-Wstring-
compare]
:info:build else if ((!outputFile) && (inputFile) &&
((((inputFile)==((char *)((void*)0))||("-")==((char *)((void*)0)))?
(inputFile)!=("-"):strcmp(inputFile,"-"))==((Comparison)0)))
:info:build
^ ~~~~~
:info:build xkbcomp.c:933:92: error: result of comparison against a string
literal is unspecified (use strncmp instead) [-Werror,-Wstring-compare]
:info:build if (((((inputFile)==((char
*)((void*)0))||("-")==((char *)((void*)0)))?
(inputFile)!=("-"):strcmp(inputFile,"-"))==((Comparison)0)))
:info:build
^ ~~~~~
:info:build xkbcomp.c:1135:98: error: result of comparison against a
string literal is unspecified (use strncmp instead) [-Werror,-Wstring-
compare]
:info:build if (((((outputFile)==((char
*)((void*)0))||("-")==((char *)((void*)0)))?
(outputFile)!=("-"):strcmp(outputFile,"-"))==((Comparison)0)))
:info:build
^ ~~~~~
:info:build 5 errors generated.
}}}
Possibly a compiler incompatibility ?
Chris
--
Ticket URL: <https://trac.macports.org/ticket/50198>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list