[asterisk-bugs] [JIRA] (ASTERISK-24458) chan_phone fails to build on big endian systems
Tzafrir Cohen (JIRA)
noreply at issues.asterisk.org
Mon Oct 27 06:56:29 CDT 2014
Tzafrir Cohen created ASTERISK-24458:
----------------------------------------
Summary: 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