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

Compile Fails on Solaris 10 (gcc)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.8
    • 2.1.9
    • None
    • None
    • Solaris 10 x86 / gcc 4.4.2

    Description

      g++ -DHAVE_CONFIG_H -DMGMT_USE_SYSLOG -I. -I../../lib/ts -I../../proxy/hdrs -D_LARGEFILE64_SOURCE=1 -D_COMPILE64BIT_SOURCE=1 -D_GNU_SOURCE -D_REENTRANT -Dsolaris -I/usr/local/include -O3 -m64 -g -pipe -Wall -Werror -feliminate-unused-debug-symbols -fno-strict-aliasing -Wno-invalid-offsetof -MT IPRange.o -MD -MP -MF .deps/IPRange.Tpo -c -o IPRange.o IPRange.cc
      In file included from ../../lib/ts/Map.h:31,
      from ../../lib/ts/libts.h:96,
      from IPRange.h:27,
      from IPRange.cc:44:
      ../../lib/ts/Vec.h: In member function 'void Vec<C, A, S>::addx()':
      ../../lib/ts/Vec.h:627: error: there are no arguments to '_assert' that depend on a template parameter, so a declaration of '_assert' must be available
      ../../lib/ts/Vec.h:627: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
      In file included from ../../lib/ts/libts.h:96,
      from IPRange.h:27,
      from IPRange.cc:44:
      ../../lib/ts/Map.h: In constructor 'MapElem<K, C>::MapElem(uintptr_t)':
      ../../lib/ts/Map.h:57: error: there are no arguments to '_assert' that depend on a template parameter, so a declaration of '_assert' must be available
      make[2]: *** [IPRange.o] Error 1
      make[2]: Leaving directory `/src/trafficserver-2.1.8-unstable/mgmt/preparse'
      make[1]: *** [all-recursive] Error 1
      make[1]: Leaving directory `/src/trafficserver-2.1.8-unstable/mgmt'
      make: *** [all-recursive] Error 1

      Attachments

        1. assert.patch
          2 kB
          Igor Brezac

        Activity

          People

            zwoop Leif Hedstrom
            ibrezac Igor Brezac
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: