[asterisk-bugs] [JIRA] (ASTERISK-24458) chan_phone fails to build on big endian systems

Corey Farrell (JIRA) noreply at issues.asterisk.org
Mon Oct 27 15:52:28 CDT 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-24458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=223147#comment-223147 ] 

Corey Farrell commented on ASTERISK-24458:
------------------------------------------

I grant permission for anyone with the ability to test on big endian to take ownership of the change I suggested and get it implemented.

> chan_phone fails to build on big endian systems
> -----------------------------------------------
>
>                 Key: ASTERISK-24458
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24458
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_phone
>    Affects Versions: 13.0.0-beta3
>            Reporter: Tzafrir Cohen
>            Severity: Critical
>
> See build log in https://buildd.debian.org/status/fetch.php?pkg=asterisk&arch=powerpc&ver=1%3A13.0.0~dfsg-1&stamp=1414362167
> Short version:
>     if (frame->subclass.format.id == AST_FORMAT_SLINEAR)
>                                      ^
> chan_phone.c:830:37: note: each undeclared identifier is reported only once for each function it appears in
> make[3]: *** [chan_phone.o] Error 1
> Same happens on powerpc, sparc and s390x.
> Code in question:
> #if __BYTE_ORDER == __BIG_ENDIAN
>                         if (frame->subclass.format.id == AST_FORMAT_SLINEAR)
>                                 swap = 1; /* Swap big-endian samples to little-endian as we copy */
> #endif



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list