Bug 1308424 - [asterisk] fails to build on ppc64(le) and s390
Summary: [asterisk] fails to build on ppc64(le) and s390
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: asterisk
Version: 22
Hardware: powerpc
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Jared Smith
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ZedoraTracker PPCTracker F-ExcludeArch-ppc64le, PPC64LETracker
TreeView+ depends on / blocked
 
Reported: 2016-02-15 08:12 UTC by Rafael Fonseca
Modified: 2016-07-19 18:43 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-19 18:43:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Rafael Fonseca 2016-02-15 08:12:51 UTC
Description of problem: asterisk fails to build on ppc64, ppc64le and s390 with the following error message

powerpc:
--------
gcc -o chan_pjsip.o -c chan_pjsip.c -MD -MT chan_pjsip.o -MF .chan_pjsip.o.d -MP -pthread -I/builddir/build/BUILD/asterisk-13.7.1/include -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 -mcpu=power7 -mtune=power8 -Werror-implicit-function-declaration -DLUA_COMPAT_MODULE -fsigned-char  -I/usr/include/libxml2 -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations      -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fPIC -DAST_MODULE=\"chan_pjsip\"     
In file included from /usr/include/pj/types.h:33:0,
                 from /usr/include/pjsip/sip_config.h:27,
                 from /usr/include/pjsip/sip_types.h:34,
                 from /usr/include/pjsip.h:24,
                 from chan_pjsip.c:37:
/usr/include/pj/config.h:290:6: error: #error Endianness must be declared for this processor
 #    error Endianness must be declared for this processor
      ^
In file included from /usr/include/pj/types.h:33:0,
                 from /usr/include/pjsip/sip_config.h:27,
                 from /usr/include/pjsip/sip_types.h:34,
                 from /usr/include/pjsip.h:24,
                 from chan_pjsip.c:37:
/usr/include/pj/config.h:1194:4: error: #error "PJ_IS_LITTLE_ENDIAN is not defined!"
 #  error "PJ_IS_LITTLE_ENDIAN is not defined!"
    ^
/usr/include/pj/config.h:1198:4: error: #error "PJ_IS_BIG_ENDIAN is not defined!"
 #  error "PJ_IS_BIG_ENDIAN is not defined!"
    ^
/builddir/build/BUILD/asterisk-13.7.1/Makefile.rules:143: recipe for target 'chan_pjsip.o' failed
make[1]: Leaving directory '/builddir/build/BUILD/asterisk-13.7.1/channels'
make[1]: *** [chan_pjsip.o] Error 1
make: *** [channels] Error 2

s390:
-----
gcc -o chan_pjsip.o -c chan_pjsip.c -MD -MT chan_pjsip.o -MF .chan_pjsip.o.d -MP -pthread -I/builddir/build/BUILD/asterisk-13.7.1/include -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m31 -march=z9-109 -mtune=z10 -Werror-implicit-function-declaration -DLUA_COMPAT_MODULE -fsigned-char  -I/usr/include/libxml2 -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations      -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fPIC -DAST_MODULE=\"chan_pjsip\"     
In file included from /usr/include/pj/types.h:33:0,
                 from /usr/include/pjsip/sip_config.h:27,
                 from /usr/include/pjsip/sip_types.h:34,
                 from /usr/include/pjsip.h:24,
                 from chan_pjsip.c:37:
/usr/include/pj/config.h:314:5: error: #error "Please specify target machine."
 #   error "Please specify target machine."
     ^
In file included from /usr/include/pj/types.h:33:0,
                 from /usr/include/pjsip/sip_config.h:27,
                 from /usr/include/pjsip/sip_types.h:34,
                 from /usr/include/pjsip.h:24,
                 from chan_pjsip.c:37:
/usr/include/pj/config.h:1204:4: error: #error "PJ_HAS_PENTIUM is not defined!"
 #  error "PJ_HAS_PENTIUM is not defined!"
    ^
/usr/include/pj/config.h:1208:4: error: #error "PJ_IS_LITTLE_ENDIAN is not defined!"
 #  error "PJ_IS_LITTLE_ENDIAN is not defined!"
    ^
/usr/include/pj/config.h:1212:4: error: #error "PJ_IS_BIG_ENDIAN is not defined!"
 #  error "PJ_IS_BIG_ENDIAN is not defined!"
    ^
/builddir/build/BUILD/asterisk-13.7.1/Makefile.rules:143: recipe for target 'chan_pjsip.o' failed
make[1]: Leaving directory '/builddir/build/BUILD/asterisk-13.7.1/channels'
Makefile:393: recipe for target 'channels' failed
make[1]: *** [chan_pjsip.o] Error 1
make: *** [channels] Error 2


Version-Release number of selected component (if applicable): 13.7.1-1


How reproducible: always on ppc-koji and s390-koji.

Comment 1 Fedora End Of Life 2016-07-19 18:43:31 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.