Modify

Opened 5 years ago

Closed 4 years ago

#13728 closed defect (fixed)

freeswitch does not build (error: type of bit-field .. is a GCC extension)

Reported by: berni@… Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: Cc:

Description

Trunk r36977, telephony.git commit 5479af7c022ca37fbed1de74126626c736305ae1

OpenWrt-quiet_libtool: compile:  /bulk/tmp/berni/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I./src/include -I./libs/xmlrpc-c -I/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/curl/include -I/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/src/include -I/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/src/include -I/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/libteletone/src -I/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/stfu -fPIC -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -Ilibs/sofia-sip/libsofia-sip-ua/sdp -Ilibs/sofia-sip/libsofia-sip-ua/su -I. -I./lua -I/bulk/tmp/berni/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/bulk/tmp/berni/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/bulk/tmp/berni/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/bulk/tmp/berni/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/include -I/bulk/tmp/berni/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/libiconv-stub/include -I/bulk/tmp/berni/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/libintl-stub/include -I. -I./lua -I/bulk/tmp/berni/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/bulk/tmp/berni/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/bulk/tmp/berni/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/bulk/tmp/berni/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/include -I/bulk/tmp/berni/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/libiconv-stub/include -I/bulk/tmp/berni/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/libintl-stub/include -D_REENTRANT -D_GNU_SOURCE -I/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/apr/include -I/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/apr-util/include -I/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/apr-util/xml/expat/lib -I/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/libtpl-1.5/src -I/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/stfu -I/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/sqlite -I/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/pcre -I/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/speex/include -Ilibs/speex/include -I/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/srtp/include -I/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/srtp/crypto/include -Ilibs/srtp/crypto/include -I/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/spandsp/src -I/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/tiff-4.0.2/libtiff -DENABLE_SRTP -I/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/libedit/src -DSWITCH_HAVE_LIBEDIT -I/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/libzrtp/third_party/bgaes -I/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/libzrtp/third_party/bnlib -isystem /bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/libzrtp/include -I/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/curl/include -I/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/src/include -I/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/src/include -I/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/libteletone/src -I/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/stfu -fPIC -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -DENABLE_ZRTP -DHAVE_OPENSSL -Wall -std=c99 -pedantic -Wdeclaration-after-statement -MT libfreeswitch_la-switch_rtp.lo -MD -MP -MF .deps/libfreeswitch_la-switch_rtp.Tpo -c src/switch_rtp.c  -fPIC -DPIC -o .libs/libfreeswitch_la-switch_rtp.o
cc1: note: someone does not honour COPTS correctly, passed 0 times
In file included from src/switch_rtp.c:53:0:
/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/srtp/include/srtp_priv.h:86:3: error: type of bit-field 'version' is a GCC extension [-Werror=edantic]
/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/srtp/include/srtp_priv.h:87:3: error: type of bit-field 'p' is a GCC extension [-Werror=edantic]
/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/srtp/include/srtp_priv.h:88:3: error: type of bit-field 'x' is a GCC extension [-Werror=edantic]
/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/srtp/include/srtp_priv.h:89:3: error: type of bit-field 'cc' is a GCC extension [-Werror=edantic]
/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/srtp/include/srtp_priv.h:90:3: error: type of bit-field 'm' is a GCC extension [-Werror=edantic]
/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/srtp/include/srtp_priv.h:134:3: error: type of bit-field 'version' is a GCC extension [-Werror=edantic]
/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/srtp/include/srtp_priv.h:135:3: error: type of bit-field 'p' is a GCC extension [-Werror=edantic]
/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/srtp/include/srtp_priv.h:136:3: error: type of bit-field 'rc' is a GCC extension [-Werror=edantic]
/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/libs/srtp/include/srtp_priv.h:137:3: error: type of bit-field 'pt' is a GCC extension [-Werror=edantic]
cc1: all warnings being treated as errors
make[5]: *** [libfreeswitch_la-switch_rtp.lo] Error 1
make[5]: Leaving directory `/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b'
make[3]: *** [/bulk/tmp/berni/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/freeswitch-1.5.2b/.built] Error 2
make[3]: Leaving directory `/bulk/tmp/berni/openwrt/trunk/feeds/telephony/freeswitch'
make[2]: *** [package/feeds/telephony/freeswitch/compile] Error 2
make[2]: Leaving directory `/bulk/tmp/berni/openwrt/trunk'
make[1]: *** [/bulk/tmp/berni/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/bulk/tmp/berni/openwrt/trunk'
make: *** [world] Fehler 2

Attachments (2)

.config (136.5 KB) - added by anonymous 5 years ago.
freeswitch.diff (421 bytes) - added by berni@… 4 years ago.
Patch

Download all attachments as: .zip

Change History (8)

comment:1 Changed 5 years ago by slachta@…

Hello Berni,

could you try it with the latest revision of telephony repository? I have succesfully compiled freeswitch with the latest revision. Also could you paste your buildroot .config file?

Jiri

comment:2 Changed 5 years ago by anonymous

Still happening, I'm attaching my .config

Changed 5 years ago by anonymous

comment:3 Changed 5 years ago by berni@…

Due to the faint hope for this being an upstream problem after all I reported it to FreeSWITCH Jira:
http://jira.freeswitch.org/browse/FS-5564

Changed 4 years ago by berni@…

Patch

comment:4 Changed 4 years ago by berni@…

Attached patch is ugly as hell (default CFLAGS are "-Wall -std=c99 -pedantic", this patch removes -pedantic and also ignores an unused variable), but it works.

root@router:~# cat /etc/openwrt_release 
DISTRIB_ID="OpenWrt"
DISTRIB_RELEASE="Bleeding Edge"
DISTRIB_REVISION="r37268"
DISTRIB_CODENAME="barrier_breaker"
DISTRIB_TARGET="ar71xx/generic"
DISTRIB_DESCRIPTION="OpenWrt Barrier Breaker r37268"
root@router:~# opkg list-installed | grep freeswitch
freeswitch - 1.5.5b-4eee5ae
freeswitch-collection-minimal - 1.5.5b-4eee5ae
freeswitch-config-minimal - 1.5.5b-4eee5ae
freeswitch-mod-codec2 - 1.5.5b-4eee5ae
freeswitch-mod-commands - 1.5.5b-4eee5ae
freeswitch-mod-dialplan-xml - 1.5.5b-4eee5ae
freeswitch-mod-dptools - 1.5.5b-4eee5ae
freeswitch-mod-event-socket - 1.5.5b-4eee5ae
freeswitch-mod-hash - 1.5.5b-4eee5ae
freeswitch-mod-local-stream - 1.5.5b-4eee5ae
freeswitch-mod-sndfile - 1.5.5b-4eee5ae
freeswitch-mod-sofia - 1.5.5b-4eee5ae
freeswitch-mod-syslog - 1.5.5b-4eee5ae
freeswitch-mod-tone-stream - 1.5.5b-4eee5ae
freeswitch-tools - 1.5.5b-4eee5ae
root@router:~# freeswitch -version
FreeSWITCH version: 1.5.5b ()

comment:5 Changed 4 years ago by anonymous

Fixed upstream, ticket can be closed

comment:6 Changed 4 years ago by florian

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.