Traffic Server
  1. Traffic Server
  2. TS-928

Compile problem in TsErrataUtil on FreeBSD 8

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.1.1
    • Component/s: Build
    • Environment:

      FreeBSD 8.2, 32-bit, gcc (GCC) 4.2.1 20070719

      Description

      TF with --enable-wccp do not compile on FreeBSD. I have gnu sed, flex and bison updated to their latest versions.

      /bin/sh ../../libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I../../lib/ts -I../../lib -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_REENTRANT -Dfreebsd -I/usr/local/include -I/usr/local/include/tcl8.5 -O2 -pipe -march=prescott -fno-strict-aliasing -march=i586 -g -Wall -Werror -O3 -feliminate-unused-debug-symbols -Wno-invalid-offsetof -MT TsErrataUtil.lo -MD -MP -MF .deps/TsErrataUtil.Tpo -c -o TsErrataUtil.lo TsErrataUtil.cc
      libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../../lib/ts -I../../lib -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_REENTRANT -Dfreebsd -I/usr/local/include -I/usr/local/include/tcl8.5 -O2 -pipe -march=prescott -fno-strict-aliasing -march=i586 -g -Wall -Werror -O3 -feliminate-unused-debug-symbols -Wno-invalid-offsetof -MT TsErrataUtil.lo -MD -MP -MF .deps/TsErrataUtil.Tpo -c TsErrataUtil.cc -fPIC -DPIC -o .libs/TsErrataUtil.o
      cc1plus: warnings being treated as errors
      TsErrataUtil.cc: In function 'ts::Errata ts::msg::vlogf_errno(ts::Errata&, ts::NumericType<unsigned int, ts::MsgIdTag>, ts::NumericType<unsigned int, ts::CodeTag>, const char*, char*&)':
      TsErrataUtil.cc:143: warning: format '%s' expects type 'char*', but argument 5 has type 'int'
      TsErrataUtil.cc:143: warning: format '%s' expects type 'char*', but argument 5 has type 'int'
      gmake[3]: *** [TsErrataUtil.lo] Error 1
      gmake[3]: Leaving directory `/home/hsn/ports/trafficserver/work/trafficserver-3.0.1/lib/tsconfig'
      gmake[2]: *** [all] Error 2
      gmake[2]: Leaving directory `/home/hsn/ports/trafficserver/work/trafficserver-3.0.1/lib/tsconfig'
      gmake[1]: *** [all-recursive] Error 1
      gmake[1]: Leaving directory `/home/hsn/ports/trafficserver/work/trafficserver-3.0.1/lib'
      gmake: *** [all-recursive] Error 1

          • Error code 1

      Stop in /home/hsn/ports/trafficserver.

      1. TS-928.diff
        4 kB
        Leif Hedstrom

        Activity

        Hide
        Leif Hedstrom added a comment -

        I think we should fix this for v3.1.1, since it fails to build.

        Show
        Leif Hedstrom added a comment - I think we should fix this for v3.1.1, since it fails to build.
        Hide
        Leif Hedstrom added a comment -

        This fixes some additional problems, but not all. For now, I think we'll just have to not support WCCP for FreeBSD, until someone really cares about it .

        Show
        Leif Hedstrom added a comment - This fixes some additional problems, but not all. For now, I think we'll just have to not support WCCP for FreeBSD, until someone really cares about it .
        Hide
        Leif Hedstrom added a comment -

        Slightly better, but still ugly, patch. This at least compiles on both Linux and FreeBSD.

        Show
        Leif Hedstrom added a comment - Slightly better, but still ugly, patch. This at least compiles on both Linux and FreeBSD.
        Hide
        Leif Hedstrom added a comment -

        Crap, ignore that first line that changes the #include from the .hpp to .h. It should work now with the .hpp.

        Show
        Leif Hedstrom added a comment - Crap, ignore that first line that changes the #include from the .hpp to .h. It should work now with the .hpp.

          People

          • Assignee:
            Unassigned
            Reporter:
            Radim Kolar
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development