[asterisk-bugs] [JIRA] Updated: (DAHTOOL-60) dahdi-tools fails to compile on Fedora 17 with kernel 3.4.4-3.fc17.x86_64 and gcc 4.7.0-5.fc17.x86_64

Anthony Messina (JIRA) noreply at issues.asterisk.org
Sat Jul 21 02:41:21 CDT 2012


     [ https://issues.asterisk.org/jira/browse/DAHTOOL-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anthony Messina updated DAHTOOL-60:
-----------------------------------

    Attachment: dahdi-tools-2.6.1_DAHTOOL-60-f17.build.txt

The patch does allow compilation of dahdi-tools.  I'm attaching my build log here.

> dahdi-tools fails to compile on Fedora 17 with kernel 3.4.4-3.fc17.x86_64 and gcc 4.7.0-5.fc17.x86_64
> -----------------------------------------------------------------------------------------------------
>
>                 Key: DAHTOOL-60
>                 URL: https://issues.asterisk.org/jira/browse/DAHTOOL-60
>             Project: DAHDI-Tools
>          Issue Type: Bug
>      Security Level: None
>          Components: General
>    Affects Versions: 2.6.1
>            Reporter: Anthony Messina
>            Assignee: Russ Meyerriecks
>         Attachments: dahdi-tools-2.6.1_DAHTOOL-60-f17.build.txt, DAHTOOL-60-f17.diff
>
>
> The following errors are encountered during the build:
> {code}
> gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic -I. -Ixtalk   -c -o hexfile.o hexfile.c
> gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic -I. -Ixtalk   -c -o astribank_tool.o astribank_tool.c
> gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic -I. -Ixtalk   -c -o astribank_usb.o astribank_usb.c
> gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic -I. -Ixtalk   -c -o mpptalk.o mpptalk.c
> gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic -I. -Ixtalk   -c -o xtalk/xtalk.o xtalk/xtalk.c
> gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic -I. -Ixtalk   -c -o xtalk/xusb.o xtalk/xusb.c
> gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic -I. -Ixtalk   -c -o xtalk/xlist.o xtalk/xlist.c
> gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic -I. -Ixtalk   -c -o xtalk/debug.o xtalk/debug.c
> gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic -I. -Ixtalk -Ioct612x/include -Ioct612x/octdeviceapi -Ioct612x/octdeviceapi/oct6100api   -c -o astribank_hexload.o astribank_hexload.c
> gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic -I. -Ixtalk -Ioct612x/include -Ioct612x/octdeviceapi -Ioct612x/octdeviceapi/oct6100api   -c -o pic_loader.o pic_loader.c
> gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic -I. -Ixtalk -Ioct612x/include -Ioct612x/octdeviceapi -Ioct612x/octdeviceapi/oct6100api   -c -o echo_loader.o echo_loader.c
> echo_loader.c: In function 'load_file':
> echo_loader.c:374:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
> gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic -I. -Ixtalk -Ioct612x/include -Ioct612x/octdeviceapi -Ioct612x/octdeviceapi/oct6100api -Ioct612x/include -Ioct612x/octdeviceapi -Ioct612x/octdeviceapi/oct6100api -DPTR_TYPE=uint32_t -DcOCT6100_INTERNAL_SUPER_ARRAY_SIZE=1024 -DcOCT6100_MAX_ECHO_CHANNELS=672 -DcOCT6100_MAX_MIXER_EVENTS=1344 oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_adpcm_chan.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_open.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_stats.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_debug.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_interrupts.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_memory.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_miscellaneous.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_mixer.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_phasing_tsst.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_remote_debug.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tlv.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsi_cnct.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsst.c oct612x/apilib/bt/octapi_bt0.c oct612x/apilib/largmath/octapi_largmath.c oct612x/apilib/llman/octapi_llman.c
> gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic -I. -Ixtalk -Ioct612x/include -Ioct612x/octdeviceapi -Ioct612x/octdeviceapi/oct6100api -Ioct612x/include -Ioct612x/octdeviceapi -Ioct612x/octdeviceapi/oct6100api -DPTR_TYPE=uint32_t -DcOCT6100_INTERNAL_SUPER_ARRAY_SIZE=1024 -DcOCT6100_MAX_ECHO_CHANNELS=672 -DcOCT6100_MAX_MIXER_EVENTS=1344 oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_adpcm_chan.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_open.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_stats.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_debug.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_interrupts.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_memory.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_miscellaneous.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_mixer.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_phasing_tsst.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_remote_debug.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tlv.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsi_cnct.c oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsst.c oct612x/apilib/bt/octapi_bt0.c oct612x/apilib/largmath/octapi_largmath.c oct612x/apilib/llman/octapi_llman.c
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.c: In function 'Oct6100ApiBridgeEventRemove':
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.c:3870:47: error: 'NULL' undeclared (first use in this function)
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.c:3870:47: note: each undeclared identifier is reported only once for each function it appears in
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c: In function 'Oct6100EventGetToneDef':
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c:89:32: error: 'NULL' undeclared (first use in this function)
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c:89:32: note: each undeclared identifier is reported only once for each function it appears in
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c: In function 'Oct6100BufferPlayoutTransferEvents':
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c:1116:126: error: 'NULL' undeclared (first use in this function)
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c: In function 'Oct6100BufferPlayoutCheckForSpecificEvent':
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c:1287:29: error: 'NULL' undeclared (first use in this function)
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.c: In function 'Oct6100ApiBridgeEventRemove':
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.c:3870:47: error: 'NULL' undeclared (first use in this function)
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.c:3870:47: note: each undeclared identifier is reported only once for each function it appears in
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c: In function 'Oct6100EventGetToneDef':
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c:89:32: error: 'NULL' undeclared (first use in this function)
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c:89:32: note: each undeclared identifier is reported only once for each function it appears in
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c: In function 'Oct6100BufferPlayoutTransferEvents':
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c:1116:126: error: 'NULL' undeclared (first use in this function)
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c: In function 'Oct6100BufferPlayoutCheckForSpecificEvent':
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c:1287:29: error: 'NULL' undeclared (first use in this function)
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_miscellaneous.c: In function 'Oct6100ApiStrStr':
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_miscellaneous.c:391:38: error: 'NULL' undeclared (first use in this function)
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_miscellaneous.c:391:38: note: each undeclared identifier is reported only once for each function it appears in
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_miscellaneous.c:437:1: warning: control reaches end of non-void function [-Wreturn-type]
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_miscellaneous.c: In function 'Oct6100ApiStrStr':
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.c: In function 'Oct6100BufferPlayoutStopDef':
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.c:530:43: error: 'NULL' undeclared (first use in this function)
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.c:530:43: note: each undeclared identifier is reported only once for each function it appears in
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_miscellaneous.c:391:38: error: 'NULL' undeclared (first use in this function)
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_miscellaneous.c:391:38: note: each undeclared identifier is reported only once for each function it appears in
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.c: In function 'Oct6100ApiInvalidateChanPlayoutStructs':
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.c:2844:51: error: 'NULL' undeclared (first use in this function)oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_miscellaneous.c:437:1: warning: control reaches end of non-void function [-Wreturn-type]
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.c: In function 'Oct6100BufferPlayoutStopDef':
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.c:530:43: error: 'NULL' undeclared (first use in this function)
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.c:530:43: note: each undeclared identifier is reported only once for each function it appears in
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.c: In function 'Oct6100ApiInvalidateChanPlayoutStructs':
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.c:2844:51: error: 'NULL' undeclared (first use in this function)
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsst.c: In function 'Oct6100ApiReserveTsst':
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsst.c:401:29: error: 'NULL' undeclared (first use in this function)
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsst.c:401:29: note: each undeclared identifier is reported only once for each function it appears in
> oct612x/apilib/bt/octapi_bt0.c: In function 'OctApiBt0Init':
> oct612x/apilib/bt/octapi_bt0.c:63:12: error: 'NULL' undeclared (first use in this function)
> oct612x/apilib/bt/octapi_bt0.c:63:12: note: each undeclared identifier is reported only once for each function it appears in
> oct612x/apilib/llman/octapi_llman.c: In function 'OctapiLlmAllocInit':
> oct612x/apilib/llman/octapi_llman.c:88:12: error: 'NULL' undeclared (first use in this function)
> oct612x/apilib/llman/octapi_llman.c:88:12: note: each undeclared identifier is reported only once for each function it appears in
> make[2]: *** [oct6100_adpcm_chan.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsst.c: In function 'Oct6100ApiReserveTsst':
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsst.c:401:29: error: 'NULL' undeclared (first use in this function)
> oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsst.c:401:29: note: each undeclared identifier is reported only once for each function it appears in
> oct612x/apilib/bt/octapi_bt0.c: In function 'OctApiBt0Init':
> oct612x/apilib/bt/octapi_bt0.c:63:12: error: 'NULL' undeclared (first use in this function)
> oct612x/apilib/bt/octapi_bt0.c:63:12: note: each undeclared identifier is reported only once for each function it appears in
> oct612x/apilib/llman/octapi_llman.c: In function 'OctapiLlmAllocInit':
> oct612x/apilib/llman/octapi_llman.c:88:12: error: 'NULL' undeclared (first use in this function)
> oct612x/apilib/llman/octapi_llman.c:88:12: note: each undeclared identifier is reported only once for each function it appears in
> make[2]: *** [oct6100_channel.o] Error 1
> make[2]: Leaving directory `/builddir/build/BUILD/dahdi-tools-2.6.1/xpp'
> make[1]: Leaving directory `/builddir/build/BUILD/dahdi-tools-2.6.1'
> make[1]: *** [utils-subdirs] Error 2
> make: *** [all] Error 2
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list