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

time_t is an integer under 32 bit FreeBSD, generates build warnings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.1.1
    • Portability
    • None
    • FreeBSD 7-STABLE on i386

    Description

      It is not possible to build Traffic Server using the default configuration. Since under 32 bit FreeBSD time_t is an int, not a long int, whenever a printf with format string "%ld" is performed, warnings of the following type are generated:

      HdrTest.cc:544: warning: format '%ld' expects type 'long int', but argument 2 has type 'time_t'

      Since -Werror is on by default, the build fails at this point. Disabling -Werror does allow it to compile of course. I'm not sure what the best way to fix this is, obviously it works if you format using %d, but that fix would break it for most other platforms.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jmh James Henderson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: