You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Zhao Yongming (JIRA)" <ji...@apache.org> on 2011/09/16 10:31:09 UTC

[jira] [Updated] (TS-956) the "ON" defined in TS conflict with zlib-1.2.5.1

     [ https://issues.apache.org/jira/browse/TS-956?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zhao Yongming updated TS-956:
-----------------------------

    Attachment: TS-956.patch

zlib 1.2.5.1 start to use the micro ON, which is conflict with TS, from what I can tell, this is just a optval for setsockopt(), it is safe to change without any problem, and here is the patch

> 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
>
>         Attachments: TS-956.patch
>
>
> 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