fails to build from source with gcc 4.7
---------------------------------------

                 Key: TS-1185
                 URL: https://issues.apache.org/jira/browse/TS-1185
             Project: Traffic Server
          Issue Type: Bug
    Affects Versions: 3.0.4, 3.1.3
         Environment: Debian Unstable with gcc 4.7
            Reporter: Arno Toell


Using gcc 4.7, ATS fails to build from source. See Debian bug 667396 
(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=667396) for further 
information. gcc 4.7 fails with

{code} 
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../../proxy -I../../lib/records -I../../mgmt 
-I../../mgmt/preparse -I../../mgmt/utils -I../../proxy/hdrs 
-I../../proxy/http/remap -I../../proxy/logging -D_FORTIFY_SOURCE=2 
-D_LARGEFILE64_SOURCE=1 -D_COMPILE64BIT_SOURCE=1 -D_GNU_SOURCE -D_REENTRANT 
-Dlinux -I/usr/include/tcl8.5  -g -O2 -fstack-protector 
--param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security 
-pipe -Wall -Werror -feliminate-unused-debug-symbols -fno-strict-aliasing 
-Wno-invalid-offsetof -MT HttpClientSession.o -MD -MP -MF 
.deps/HttpClientSession.Tpo -c -o HttpClientSession.o HttpClientSession.cc
In file included from ../../lib/ts/libts.h:96:0,
                 from HttpClientSession.h:35,
                 from HttpClientSession.cc:35:
../../lib/ts/Map.h: In instantiation of 'C Map<K, C, A>::get(K) [with K = 
unsigned int; C = int; A = DefaultAlloc]':
HttpConnectionCount.h:51:34:   required from here
../../lib/ts/Map.h:240:29: error: 'set_in' was not declared in this scope, and 
no declarations were found by argument-dependent lookup at the point of 
instantiation [-fpermissive]
../../lib/ts/Map.h:240:29: note: declarations in dependent base 
'Vec<MapElem<unsigned int, int>, DefaultAlloc, 2>' are not found by unqualified 
lookup
../../lib/ts/Map.h:240:29: note: use 'this->set_in' instead
../../lib/ts/Map.h: In instantiation of 'MapElem<K, C>* Map<K, C, A>::put(K, C) 
[with K = unsigned int; C = int; A = DefaultAlloc]':
HttpConnectionCount.h:64:37:   required from here
../../lib/ts/Map.h:258:29: error: 'set_in' was not declared in this scope, and 
no declarations were found by argument-dependent lookup at the point of 
instantiation [-fpermissive]
../../lib/ts/Map.h:258:29: note: declarations in dependent base 
'Vec<MapElem<unsigned int, int>, DefaultAlloc, 2>' are not found by unqualified 
lookup
../../lib/ts/Map.h:258:29: note: use 'this->set_in' instead
../../lib/ts/Map.h:263:21: error: 'set_add' was not declared in this scope, and 
no declarations were found by argument-dependent lookup at the point of 
instantiation [-fpermissive]
../../lib/ts/Map.h:263:21: note: declarations in dependent base 
'Vec<MapElem<unsigned int, int>, DefaultAlloc, 2>' are not found by unqualified 
lookup
../../lib/ts/Map.h:263:21: note: use 'this->set_add' instead
make[4]: *** [HttpClientSession.o] Error 1
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to