Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.3
    • Component/s: Core
    • Labels:
      None

      Description

      Reported and fixed by Igor Brezac

      --- Store.cc.orig       2012-02-06 10:11:26.365180262 -0500
      +++ Store.cc    2012-02-06 10:11:56.035330329 -0500
      @@ -629,7 +629,7 @@
         blocks = size / STORE_BLOCK_SIZE;
         file_pathname = !((s.st_mode & S_IFMT) == S_IFDIR);
      
      -  Debug("cache_init", "Span::init - %s hw_sector_size = %d  size = %"
      PRId64 ", blocks = %" PRId64 ", disk_id = %d, file_pathname = %d",
      filename, hw_sector_size, size, blocks, disk_id, file_pathname);
      +  Debug("cache_init", "Span::init - %s hw_sector_size = %" PRId64 ",
      size = %" PRId64 ", blocks = %" PRId64 ", disk_id = %d, file_pathname
      = %d", filename, hw_sector_size, size, blocks, disk_id,
      file_pathname);
      
       Lfail:
         socketManager.close(fd);
      

        Activity

        Hide
        Neddy added a comment - - edited

        I'm trying ATS 3.1.3 on fresh OpenIndiana 151a4 system, but seems it's the same error?

        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../../lib/ts -I../../proxy -I../../proxy/api/ts -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_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_REENTRANT -Dsolaris -march=i586 -g -pipe -Wall -Werror -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing -Wno-invalid-offsetof -MT Store.o -MD -MP -MF .deps/Store.Tpo -c -o Store.o Store.cc
        Store.cc: In member function âconst char* Span::init(char*, int64_t)â:
        Store.cc:615:5: error: format â%dâ expects argument of type âintâ, but argument 8 has type âmode_t

        {aka long unsigned int}

        â [-Werror=format]
        cc1plus: all warnings being treated as errors

        make[2]: *** [Store.o] Error 1
        make[2]: Leaving directory `/tmp/trafficserver-3.1.3-unstable/iocore/cache'
        make[1]: *** [all-recursive] Error 1
        make[1]: Leaving directory `/tmp/trafficserver-3.1.3-unstable/iocore'
        make: *** [all-recursive] Error 1

        Show
        Neddy added a comment - - edited I'm trying ATS 3.1.3 on fresh OpenIndiana 151a4 system, but seems it's the same error? 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../../lib/ts -I../../proxy -I../../proxy/api/ts -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_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_REENTRANT -Dsolaris -march=i586 -g -pipe -Wall -Werror -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing -Wno-invalid-offsetof -MT Store.o -MD -MP -MF .deps/Store.Tpo -c -o Store.o Store.cc Store.cc: In member function âconst char* Span::init(char*, int64_t)â: Store.cc:615:5: error: format â%dâ expects argument of type âintâ, but argument 8 has type âmode_t {aka long unsigned int} â [-Werror=format] cc1plus: all warnings being treated as errors make [2] : *** [Store.o] Error 1 make [2] : Leaving directory `/tmp/trafficserver-3.1.3-unstable/iocore/cache' make [1] : *** [all-recursive] Error 1 make [1] : Leaving directory `/tmp/trafficserver-3.1.3-unstable/iocore' make: *** [all-recursive] Error 1
        Hide
        Igor Galić added a comment -

        Which version of G++ is this?

        Show
        Igor Galić added a comment - Which version of G++ is this?
        Hide
        Neddy added a comment -
        1. g++ -v
          Using built-in specs.
          COLLECT_GCC=g++
          COLLECT_LTO_WRAPPER=/usr/gcc/4.6/lib/gcc/i386-pc-solaris2.11/4.6.2/lto-wrapper
          Target: i386-pc-solaris2.11
          Configured with: ../gcc-4.6.2/configure --prefix=/usr/gcc/4.6 --libdir=/usr/gcc/4.6/lib --libexecdir=/usr/gcc/4.6/lib --mandir=/usr/gcc/4.6/share/man --infodir=/usr/gcc/4.6/info --with-build-time-tools=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/bin/ld --without-gnu-ld --enable-languages=c,c++,fortran,objc --enable-shared --disable-static --enable-decimal-float --with-gmp=/usr/gnu --with-mpfr=/usr/gnu --with-mpc=/usr/gnu --with-libiconv-prefix=/usr/gnu -enable-nls
          Thread model: posix
          gcc version 4.6.2 (GCC)
        Show
        Neddy added a comment - g++ -v Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/gcc/4.6/lib/gcc/i386-pc-solaris2.11/4.6.2/lto-wrapper Target: i386-pc-solaris2.11 Configured with: ../gcc-4.6.2/configure --prefix=/usr/gcc/4.6 --libdir=/usr/gcc/4.6/lib --libexecdir=/usr/gcc/4.6/lib --mandir=/usr/gcc/4.6/share/man --infodir=/usr/gcc/4.6/info --with-build-time-tools=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/bin/ld --without-gnu-ld --enable-languages=c,c++,fortran,objc --enable-shared --disable-static --enable-decimal-float --with-gmp=/usr/gnu --with-mpfr=/usr/gnu --with-mpc=/usr/gnu --with-libiconv-prefix=/usr/gnu -enable-nls Thread model: posix gcc version 4.6.2 (GCC)

          People

          • Assignee:
            Leif Hedstrom
            Reporter:
            Leif Hedstrom
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development