Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-1185

fails to build from source with gcc 4.7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.3, 3.0.4
    • 3.1.4, 3.0.5
    • None
    • None
    • Debian Unstable with gcc 4.7

    Description

      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

       
      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
      

      Attachments

        1. trafficserver-gcc47.patch
          7 kB
          Jan-Frode Myklebust

        Activity

          People

            briang Brian Geffon
            at Arno Toell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: