You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2010/05/28 05:44:37 UTC

[jira] Resolved: (TS-243) time_t is an integer under 32 bit FreeBSD, generates build warnings

     [ https://issues.apache.org/jira/browse/TS-243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom resolved TS-243.
------------------------------

    Resolution: Fixed

I think this is fixed, please reopen if there are still problems.

> time_t is an integer under 32 bit FreeBSD, generates build warnings
> -------------------------------------------------------------------
>
>                 Key: TS-243
>                 URL: https://issues.apache.org/jira/browse/TS-243
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Portability
>         Environment: FreeBSD 7-STABLE on i386
>            Reporter: James Henderson
>            Priority: Minor
>             Fix For: 2.1.1
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.