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

Matt Jordan (JIRA) noreply at issues.asterisk.org
Tue Oct 28 11:50:29 CDT 2014


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

Matt Jordan commented on ASTERISK-24458:
----------------------------------------

Tzafrir - can you test if Corey's suggestion works? If so, I'd be happy to push it on in.

> 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