[ https://issues.apache.org/jira/browse/TS-956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13105820#comment-13105820 ]
Zhao Yongming edited comment on TS-956 at 9/16/11 3:33 AM: ----------------------------------------------------------- in TS: {code} #define ON ((char*)&on) int on = 1; {code} in zlib: {code} #ifndef ON /* function prototypes for stdarg */ # if defined(STDC) || defined(Z_HAVE_STDARG_H) # define ON(args) args # else # define ON(args) () # endif #endif {code} ON maybe defined on the other places, need to figure out was (Author: zym): in TS: #define ON ((char*)&on) int on = 1; in zlib: #ifndef ON /* function prototypes for stdarg */ # if defined(STDC) || defined(Z_HAVE_STDARG_H) # define ON(args) args # else # define ON(args) () # endif #endif ON maybe defined on the other places, need to figure out > 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