Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
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.