You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2013/02/05 10:18:13 UTC

[jira] [Commented] (TS-1683) channel_stats does not compile on FreeBSD

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

ASF subversion and git services commented on TS-1683:
-----------------------------------------------------

Commit 54cc854e24c34be152b863e957275c7bf0cbb884 from [~i.galic]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=54cc854 ]

TS-1683: channel_stats doesn't compile under fBSD

we fix it by including the header <inet/in.h> which is where sockaddr_in
is defined on FreeBSD. We only included it, #if the header exists.

                
> channel_stats does not compile on FreeBSD
> -----------------------------------------
>
>                 Key: TS-1683
>                 URL: https://issues.apache.org/jira/browse/TS-1683
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Plugins
>            Reporter: Daniel Gruno
>
> Output from gmake (using GCC 4.2.1):
> gmake[3]: Entering directory `/root/trafficserver/plugins/experimental/channel_stats'
>   CXX    channel_stats.lo
> channel_stats.cc: In function 'void handle_read_req(tsapi_cont*, tsapi_httptxn*)':
> channel_stats.cc:321: error: invalid use of incomplete type 'struct sockaddr_in'
> channel_stats.cc:284: error: forward declaration of 'struct sockaddr_in'
> channel_stats.cc:323: error: invalid use of incomplete type 'struct sockaddr_in'
> channel_stats.cc:284: error: forward declaration of 'struct sockaddr_in'
> gmake[3]: *** [channel_stats.lo] Error 1
> Someone should fix this ;)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira