[ 
https://issues.apache.org/jira/browse/TS-243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844613#action_12844613
 ] 

Leif Hedstrom commented on TS-243:
----------------------------------

Confirmed this "problem" on my VM too. Even getting past HdrTest.cc, which is 
just a "unit test", you would get errors on other files, e.g.

ClusterCom.cc:2509: warning: format '%ld' expects type 'long int', but argument 
7 has type 'time_t'
ClusterCom.cc:2509: warning: format '%ld' expects type 'long int', but argument 
4 has type 'time_t'
ClusterCom.cc:2509: warning: format '%ld' expects type 'long int', but argument 
7 has type 'time_t'
ClusterCom.cc:2529: warning: format '%ld' expects type 'long int', but argument 
4 has type 'int'
ClusterCom.cc:2529: warning: format '%ld' expects type 'long int', but argument 
4 has type 'int'


> 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
>
> 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.

Reply via email to