[jira] [Commented] (TS-3262) Build failure using clang on Fedora 21
[ https://issues.apache.org/jira/browse/TS-3262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14277866#comment-14277866 ] ASF subversion and git services commented on TS-3262: - Commit 9e2a4729114d92019a0ef9d3f4bc89da7ac434a2 in trafficserver's branch refs/heads/4.2.x from [~zwoop] [ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=9e2a472 ] TS-3262 Check _hostname[0], which seems correct (cherry picked from commit 29e58ea4ef4884ddc3e3606cac2e4aba3400fdcf) Build failure using clang on Fedora 21 -- Key: TS-3262 URL: https://issues.apache.org/jira/browse/TS-3262 Project: Traffic Server Issue Type: Bug Components: Core Reporter: Leif Hedstrom Assignee: Leif Hedstrom Priority: Blocker Fix For: 5.2.0 {code} ../../proxy/CoreUtils.cc:266:22: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t offset2 = abs(vaddr - vadd); ^ ../../proxy/CoreUtils.cc:266:22: note: use function 'std::abs' instead intptr_t offset2 = abs(vaddr - vadd); ^~~ std::abs ../../proxy/CoreUtils.cc:305:19: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t off2 = abs(vadd - framep); ^ ../../proxy/CoreUtils.cc:305:19: note: use function 'std::abs' instead intptr_t off2 = abs(vadd - framep); ^~~ std::abs ../../proxy/CoreUtils.cc:348:19: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t off2 = abs(vadd - framep); ^ ../../proxy/CoreUtils.cc:348:19: note: use function 'std::abs' instead intptr_t off2 = abs(vadd - framep); ^~~ std::abs ../../proxy/CoreUtils.cc:652:20: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] int nto_copy = abs((char *) copy_start - free_start); ^ ../../proxy/CoreUtils.cc:652:20: note: use function 'std::abs' instead int nto_copy = abs((char *) copy_start - free_start); ^~~ std::abs ../../proxy/CoreUtils.cc:794:22: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t offset2 = abs(vaddr - vadd); ^ ../../proxy/CoreUtils.cc:794:22: note: use function 'std::abs' instead intptr_t offset2 = abs(vaddr - vadd); ^~~ std::abs {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TS-3262) Build failure using clang on Fedora 21
[ https://issues.apache.org/jira/browse/TS-3262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14277842#comment-14277842 ] ASF subversion and git services commented on TS-3262: - Commit 5b35e087c98bfe71090cef26cc7f849694d0e4fb in trafficserver's branch refs/heads/4.2.x from [~zwoop] [ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=5b35e08 ] TS-3262 Change abs() to std::abs(), avoid compiler errors (cherry picked from commit 6ef1ad858a4459e7dd7f4641013732f74a94325e) Build failure using clang on Fedora 21 -- Key: TS-3262 URL: https://issues.apache.org/jira/browse/TS-3262 Project: Traffic Server Issue Type: Bug Components: Core Reporter: Leif Hedstrom Assignee: Leif Hedstrom Priority: Blocker Fix For: 5.2.0 {code} ../../proxy/CoreUtils.cc:266:22: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t offset2 = abs(vaddr - vadd); ^ ../../proxy/CoreUtils.cc:266:22: note: use function 'std::abs' instead intptr_t offset2 = abs(vaddr - vadd); ^~~ std::abs ../../proxy/CoreUtils.cc:305:19: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t off2 = abs(vadd - framep); ^ ../../proxy/CoreUtils.cc:305:19: note: use function 'std::abs' instead intptr_t off2 = abs(vadd - framep); ^~~ std::abs ../../proxy/CoreUtils.cc:348:19: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t off2 = abs(vadd - framep); ^ ../../proxy/CoreUtils.cc:348:19: note: use function 'std::abs' instead intptr_t off2 = abs(vadd - framep); ^~~ std::abs ../../proxy/CoreUtils.cc:652:20: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] int nto_copy = abs((char *) copy_start - free_start); ^ ../../proxy/CoreUtils.cc:652:20: note: use function 'std::abs' instead int nto_copy = abs((char *) copy_start - free_start); ^~~ std::abs ../../proxy/CoreUtils.cc:794:22: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t offset2 = abs(vaddr - vadd); ^ ../../proxy/CoreUtils.cc:794:22: note: use function 'std::abs' instead intptr_t offset2 = abs(vaddr - vadd); ^~~ std::abs {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TS-3262) Build failure using clang on Fedora 21
[ https://issues.apache.org/jira/browse/TS-3262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14261698#comment-14261698 ] ASF subversion and git services commented on TS-3262: - Commit 29e58ea4ef4884ddc3e3606cac2e4aba3400fdcf in trafficserver's branch refs/heads/master from [~zwoop] [ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=29e58ea ] TS-3262 Check _hostname[0], which seems correct Build failure using clang on Fedora 21 -- Key: TS-3262 URL: https://issues.apache.org/jira/browse/TS-3262 Project: Traffic Server Issue Type: Bug Components: Core Reporter: Leif Hedstrom Assignee: Leif Hedstrom Priority: Blocker Fix For: 5.3.0 {code} ../../proxy/CoreUtils.cc:266:22: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t offset2 = abs(vaddr - vadd); ^ ../../proxy/CoreUtils.cc:266:22: note: use function 'std::abs' instead intptr_t offset2 = abs(vaddr - vadd); ^~~ std::abs ../../proxy/CoreUtils.cc:305:19: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t off2 = abs(vadd - framep); ^ ../../proxy/CoreUtils.cc:305:19: note: use function 'std::abs' instead intptr_t off2 = abs(vadd - framep); ^~~ std::abs ../../proxy/CoreUtils.cc:348:19: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t off2 = abs(vadd - framep); ^ ../../proxy/CoreUtils.cc:348:19: note: use function 'std::abs' instead intptr_t off2 = abs(vadd - framep); ^~~ std::abs ../../proxy/CoreUtils.cc:652:20: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] int nto_copy = abs((char *) copy_start - free_start); ^ ../../proxy/CoreUtils.cc:652:20: note: use function 'std::abs' instead int nto_copy = abs((char *) copy_start - free_start); ^~~ std::abs ../../proxy/CoreUtils.cc:794:22: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t offset2 = abs(vaddr - vadd); ^ ../../proxy/CoreUtils.cc:794:22: note: use function 'std::abs' instead intptr_t offset2 = abs(vaddr - vadd); ^~~ std::abs {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TS-3262) Build failure using clang on Fedora 21
[ https://issues.apache.org/jira/browse/TS-3262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14261823#comment-14261823 ] ASF subversion and git services commented on TS-3262: - Commit aef60cfa86d4e010e29963556ae965cffad0caf6 in trafficserver's branch refs/heads/5.2.x from [~zwoop] [ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=aef60cf ] TS-3262 Check _hostname[0], which seems correct Build failure using clang on Fedora 21 -- Key: TS-3262 URL: https://issues.apache.org/jira/browse/TS-3262 Project: Traffic Server Issue Type: Bug Components: Core Reporter: Leif Hedstrom Assignee: Leif Hedstrom Priority: Blocker Fix For: 5.2.0 {code} ../../proxy/CoreUtils.cc:266:22: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t offset2 = abs(vaddr - vadd); ^ ../../proxy/CoreUtils.cc:266:22: note: use function 'std::abs' instead intptr_t offset2 = abs(vaddr - vadd); ^~~ std::abs ../../proxy/CoreUtils.cc:305:19: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t off2 = abs(vadd - framep); ^ ../../proxy/CoreUtils.cc:305:19: note: use function 'std::abs' instead intptr_t off2 = abs(vadd - framep); ^~~ std::abs ../../proxy/CoreUtils.cc:348:19: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t off2 = abs(vadd - framep); ^ ../../proxy/CoreUtils.cc:348:19: note: use function 'std::abs' instead intptr_t off2 = abs(vadd - framep); ^~~ std::abs ../../proxy/CoreUtils.cc:652:20: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] int nto_copy = abs((char *) copy_start - free_start); ^ ../../proxy/CoreUtils.cc:652:20: note: use function 'std::abs' instead int nto_copy = abs((char *) copy_start - free_start); ^~~ std::abs ../../proxy/CoreUtils.cc:794:22: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t offset2 = abs(vaddr - vadd); ^ ../../proxy/CoreUtils.cc:794:22: note: use function 'std::abs' instead intptr_t offset2 = abs(vaddr - vadd); ^~~ std::abs {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TS-3262) Build failure using clang on Fedora 21
[ https://issues.apache.org/jira/browse/TS-3262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14261822#comment-14261822 ] ASF subversion and git services commented on TS-3262: - Commit 48db76d5da2ad282c290edac2acdb8562cdc6432 in trafficserver's branch refs/heads/5.2.x from [~zwoop] [ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=48db76d ] TS-3262 Change abs() to std::abs(), avoid compiler errors Build failure using clang on Fedora 21 -- Key: TS-3262 URL: https://issues.apache.org/jira/browse/TS-3262 Project: Traffic Server Issue Type: Bug Components: Core Reporter: Leif Hedstrom Assignee: Leif Hedstrom Priority: Blocker Fix For: 5.2.0 {code} ../../proxy/CoreUtils.cc:266:22: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t offset2 = abs(vaddr - vadd); ^ ../../proxy/CoreUtils.cc:266:22: note: use function 'std::abs' instead intptr_t offset2 = abs(vaddr - vadd); ^~~ std::abs ../../proxy/CoreUtils.cc:305:19: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t off2 = abs(vadd - framep); ^ ../../proxy/CoreUtils.cc:305:19: note: use function 'std::abs' instead intptr_t off2 = abs(vadd - framep); ^~~ std::abs ../../proxy/CoreUtils.cc:348:19: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t off2 = abs(vadd - framep); ^ ../../proxy/CoreUtils.cc:348:19: note: use function 'std::abs' instead intptr_t off2 = abs(vadd - framep); ^~~ std::abs ../../proxy/CoreUtils.cc:652:20: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] int nto_copy = abs((char *) copy_start - free_start); ^ ../../proxy/CoreUtils.cc:652:20: note: use function 'std::abs' instead int nto_copy = abs((char *) copy_start - free_start); ^~~ std::abs ../../proxy/CoreUtils.cc:794:22: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t offset2 = abs(vaddr - vadd); ^ ../../proxy/CoreUtils.cc:794:22: note: use function 'std::abs' instead intptr_t offset2 = abs(vaddr - vadd); ^~~ std::abs {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TS-3262) Build failure using clang on Fedora 21
[ https://issues.apache.org/jira/browse/TS-3262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14260557#comment-14260557 ] ASF subversion and git services commented on TS-3262: - Commit 6ef1ad858a4459e7dd7f4641013732f74a94325e in trafficserver's branch refs/heads/master from [~zwoop] [ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=6ef1ad8 ] TS-3262 Change abs() to std::abs(), avoid compiler errors Build failure using clang on Fedora 21 -- Key: TS-3262 URL: https://issues.apache.org/jira/browse/TS-3262 Project: Traffic Server Issue Type: Bug Components: Core Reporter: Leif Hedstrom Assignee: Leif Hedstrom Priority: Blocker Fix For: 5.3.0 {code} ../../proxy/CoreUtils.cc:266:22: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t offset2 = abs(vaddr - vadd); ^ ../../proxy/CoreUtils.cc:266:22: note: use function 'std::abs' instead intptr_t offset2 = abs(vaddr - vadd); ^~~ std::abs ../../proxy/CoreUtils.cc:305:19: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t off2 = abs(vadd - framep); ^ ../../proxy/CoreUtils.cc:305:19: note: use function 'std::abs' instead intptr_t off2 = abs(vadd - framep); ^~~ std::abs ../../proxy/CoreUtils.cc:348:19: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t off2 = abs(vadd - framep); ^ ../../proxy/CoreUtils.cc:348:19: note: use function 'std::abs' instead intptr_t off2 = abs(vadd - framep); ^~~ std::abs ../../proxy/CoreUtils.cc:652:20: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] int nto_copy = abs((char *) copy_start - free_start); ^ ../../proxy/CoreUtils.cc:652:20: note: use function 'std::abs' instead int nto_copy = abs((char *) copy_start - free_start); ^~~ std::abs ../../proxy/CoreUtils.cc:794:22: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t offset2 = abs(vaddr - vadd); ^ ../../proxy/CoreUtils.cc:794:22: note: use function 'std::abs' instead intptr_t offset2 = abs(vaddr - vadd); ^~~ std::abs {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TS-3262) Build failure using clang on Fedora 21
[ https://issues.apache.org/jira/browse/TS-3262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14260558#comment-14260558 ] ASF subversion and git services commented on TS-3262: - Commit b3c03e13cc6b97c645f55d8618e6b6e95a48a6c6 in trafficserver's branch refs/heads/master from [~zwoop] [ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=b3c03e1 ] Add TS-3262 Build failure using clang on Fedora 21 -- Key: TS-3262 URL: https://issues.apache.org/jira/browse/TS-3262 Project: Traffic Server Issue Type: Bug Components: Core Reporter: Leif Hedstrom Assignee: Leif Hedstrom Priority: Blocker Fix For: 5.3.0 {code} ../../proxy/CoreUtils.cc:266:22: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t offset2 = abs(vaddr - vadd); ^ ../../proxy/CoreUtils.cc:266:22: note: use function 'std::abs' instead intptr_t offset2 = abs(vaddr - vadd); ^~~ std::abs ../../proxy/CoreUtils.cc:305:19: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t off2 = abs(vadd - framep); ^ ../../proxy/CoreUtils.cc:305:19: note: use function 'std::abs' instead intptr_t off2 = abs(vadd - framep); ^~~ std::abs ../../proxy/CoreUtils.cc:348:19: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t off2 = abs(vadd - framep); ^ ../../proxy/CoreUtils.cc:348:19: note: use function 'std::abs' instead intptr_t off2 = abs(vadd - framep); ^~~ std::abs ../../proxy/CoreUtils.cc:652:20: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] int nto_copy = abs((char *) copy_start - free_start); ^ ../../proxy/CoreUtils.cc:652:20: note: use function 'std::abs' instead int nto_copy = abs((char *) copy_start - free_start); ^~~ std::abs ../../proxy/CoreUtils.cc:794:22: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] intptr_t offset2 = abs(vaddr - vadd); ^ ../../proxy/CoreUtils.cc:794:22: note: use function 'std::abs' instead intptr_t offset2 = abs(vaddr - vadd); ^~~ std::abs {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)