Bug#767500: kamailio FTBFS on mipsel, -minline-all-stringops unrecognized

Dejan Latinovic Dejan.Latinovic at imgtec.com
Fri Oct 31 13:55:50 UTC 2014


Package: kamailio
Version: 4.2.0-1
Tags: sid patch
Severity: important
Justification: FTBFS
User: debian-mips-dev-discuss at lists.alioth.debian.org
Usertags: mips-patch


While trying to build kamailio mipsel architecture,
build failswith an error:

> gcc -mips2 -funroll-loops -minline-all-stringops -ftree-vectorize -fno-strict-overflow -Wall -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2   -DNAME='"kamailio"' -DVERSION='"4.2.0"' -DARCH='"mips2"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.9.1"' -D__CPU_mips2 -D__OS_linux -DSER_VER=4002000 -DCFG_DIR='"/etc/kamailio/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP -DF_MALLOC -DDBG_F_MALLOC -DMEM_JOIN_FREE -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DWITH_AS_SUPPORT -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DUSE_RAW_SOCKS -DHAVE_SELECT   -c pass_fd.c -o pass_fd.o -MMD -MP
> gcc: error: unrecognized command line option '-minline-all-stringops'
> make[1]: *** [pass_fd.o] Error 1

Patch fix-mips.patch fixes this issue is attached.


Beside that,
it is nedded to add mipsel and mips in debian control.
Also, mono module should be excluded for mips (be).
Patch adapt-rules-and-control.patch contains these changes.


After applying this two patches,
I was able to successfully build kamailio for both mips and mipsel.



Could you please consider including this patch?

Best regards,
Dejan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-mips.patch
Type: text/x-patch
Size: 1409 bytes
Desc: fix-mips.patch
URL: <http://lists.alioth.debian.org/pipermail/pkg-voip-maintainers/attachments/20141031/3375bfdf/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: adapt-rules-and-control.patch
Type: text/x-patch
Size: 10269 bytes
Desc: adapt-rules-and-control.patch
URL: <http://lists.alioth.debian.org/pipermail/pkg-voip-maintainers/attachments/20141031/3375bfdf/attachment-0003.bin>


More information about the Pkg-voip-maintainers mailing list