the "ON" defined in TS conflict with zlib-1.2.5.1
-------------------------------------------------
Key: TS-956
URL: https://issues.apache.org/jira/browse/TS-956
Project: Traffic Server
Issue Type: Bug
Components: Cleanup, Portability
Affects Versions: 3.1.1
Environment: gcc 4.6.1, zlib 1.2.5.1, ts trunk
Reporter: Zhao Yongming
Assignee: Zhao Yongming
Priority: Critical
Fix For: 3.1.1
when building trunk with my fresh updated gentoo, TS fail at:
{code}
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../lib/ts
-I../../iocore/eventsystem -I../../iocore/net -I../../iocore/aio
-I../../iocore/hostdb -I../../iocore/cache -I../../iocore/cluster
-I../../iocore/utils -I../../iocore/dns -I../../lib -I../../lib/records
-I../../proxy -I../../proxy/hdrs -I../../proxy/http -I../../proxy/http/remap
-I../../mgmt -I../../mgmt/preparse -I../../mgmt/utils -D_LARGEFILE64_SOURCE=1
-D_COMPILE64BIT_SOURCE=1 -D_GNU_SOURCE -D_REENTRANT -Dlinux -pipe -g -ggdb3
-fno-strict-aliasing -Wall -Werror -O3 -feliminate-unused-debug-symbols
-Wno-invalid-offsetof -MT Inline.o -MD -MP -MF .deps/Inline.Tpo -c -o Inline.o
Inline.cc
In file included from RamCacheCLFUS.cc:30:0:
/usr/include/zlib.h:1283:32: error: invalid conversion from 'char*' to 'int'
[-fpermissive]
/usr/include/zlib.h:1283:34: error: expected ',' or ';' before '(' token
mv -f .deps/CacheHttp.Tpo .deps/CacheHttp.Po
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../lib/ts
-I../../iocore/eventsystem -I../../iocore/net -I../../iocore/aio
-I../../iocore/hostdb -I../../iocore/cache -I../../iocore/cluster
-I../../iocore/utils -I../../iocore/dns -I../../lib -I../../lib/records
-I../../proxy -I../../proxy/hdrs -I../../proxy/http -I../../proxy/http/remap
-I../../mgmt -I../../mgmt/preparse -I../../mgmt/utils -D_LARGEFILE64_SOURCE=1
-D_COMPILE64BIT_SOURCE=1 -D_GNU_SOURCE -D_REENTRANT -Dlinux -pipe -g -ggdb3
-fno-strict-aliasing -Wall -Werror -O3 -feliminate-unused-debug-symbols
-Wno-invalid-offsetof -MT CacheTest.o -MD -MP -MF .deps/CacheTest.Tpo -c -o
CacheTest.o CacheTest.cc
make[2]: *** [RamCacheCLFUS.o] Error 1
make[2]: *** Waiting for unfinished jobs....
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira