Bug 1308424

Summary: [asterisk] fails to build on ppc64(le) and s390
Product: [Fedora] Fedora Reporter: Rafael Fonseca <rdossant>
Component: asteriskAssignee: Jared Smith <jsmith.fedora>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: bazanluis20, g.devel, hannsj_uhl, itamar, jsmith.fedora, lmadsen, rbryant
Target Milestone: ---   
Target Release: ---   
Hardware: powerpc   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 18:43:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 467765, 1071880, 1051573    

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.