Please open a bug report about it.
And please check that your cross compilation is sane (no includes from
your local build system).
Regards,
Ovidiu Sas
On Thu, Sep 12, 2013 at 10:10 AM, Tirant Lo Blanc
<tirantloblanc77(a)yahoo.es> wrote:
I managed to fix it by adding:
#include <linux/types.h>
to sipcapture.c and socket_info.c
Thanks to all anyway
----------------------------
Hi,
I've been exploring the possibility to port Kamailio 3.3 (SER) to some MIPS boards. I
didn't have any problem with the first one, with a GCC 4.3.4 toolchain. But on my
second board (gcc 3.4.2) I am having problems when compiling. Are there any requirements
for gcc/binutils/kernel versions?
This is the log I am getting:
CC (mipsel-linux-uclibc-gcc) [ser]sip_msg_clone.o
In file included from atomic_ops.h:181,
from sip_msg_clone.c:43:
atomic/atomic_unknown.h:59:2: warning: #warning no native memory barrier implementations,
falling back to slow lock based workarround
CC (mipsel-linux-uclibc-gcc) [ser]socket_info.o
In file included from socket_info.c:836:
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/netlink.h:22:
error: parse error before "__u32"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/netlink.h:28:
error: parse error before "__u32"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/netlink.h:30:
error: parse error before "nlmsg_flags"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/netlink.h:31:
error: parse error before "nlmsg_seq"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/netlink.h:32:
error: parse error before "nlmsg_pid"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/netlink.h:83:
error: field `msg' has incomplete type
In file included from socket_info.c:837:
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:253:
error: parse error before "__u32"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:255:
error: parse error before "rta_expires"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:256:
error: parse error before "rta_error"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:257:
error: parse error before "rta_used"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:260:
error: parse error before "rta_id"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:261:
error: parse error before "rta_ts"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:262:
error: parse error before "rta_tsage"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:333:
error: parse error before "__s32"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:359:
error: parse error before "__u16"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:361:
error: parse error before "ndm_type"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:404:
error: parse error before "__u32"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:406:
error: parse error before "ndm_updated"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:407:
error: parse error before "ndm_refcnt"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:519:
error: parse error before "__u32"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:521:
error: parse error before "tcm_info"
socket_info.c: In function `addattr_l':
socket_info.c:874: error: dereferencing pointer to incomplete type
socket_info.c:878: error: dereferencing pointer to incomplete type
socket_info.c:882: error: dereferencing pointer to incomplete type
socket_info.c:882: error: dereferencing pointer to incomplete type
socket_info.c: In function `nl_bound_sock':
socket_info.c:891: error: storage size of 'la' isn't known
socket_info.c:891: warning: unused variable `la'
socket_info.c: In function `get_flags':
socket_info.c:929: error: field `nlh' has incomplete type
socket_info.c:953: error: dereferencing pointer to incomplete type
socket_info.c:957: error: dereferencing pointer to incomplete type
socket_info.c:967: error: invalid application of `sizeof' to incomplete type
`nlmsghdr'
socket_info.c:967: error: dereferencing pointer to incomplete type
socket_info.c:967: error: invalid application of `sizeof' to incomplete type
`nlmsghdr'
socket_info.c:967: error: dereferencing pointer to incomplete type
socket_info.c:967: error: dereferencing pointer to incomplete type
socket_info.c:967: error: dereferencing pointer to incomplete type
socket_info.c:967: warning: left-hand operand of comma expression has no effect
socket_info.c:968: error: invalid application of `sizeof' to incomplete type
`nlmsghdr'
socket_info.c:970: error: dereferencing pointer to incomplete type
socket_info.c:970: error: invalid application of `sizeof' to incomplete type
`nlmsghdr'
socket_info.c: In function `build_iface_list':
socket_info.c:996: error: field `nlh' has incomplete type
socket_info.c:1043: error: dereferencing pointer to incomplete type
socket_info.c:1047: error: dereferencing pointer to incomplete type
socket_info.c:1057: error: invalid application of `sizeof' to incomplete type
`nlmsghdr'
socket_info.c:1057: error: dereferencing pointer to incomplete type
socket_info.c:1057: error: invalid application of `sizeof' to incomplete type
`nlmsghdr'
socket_info.c:1057: error: dereferencing pointer to incomplete type
socket_info.c:1057: error: dereferencing pointer to incomplete type
socket_info.c:1057: error: dereferencing pointer to incomplete type
socket_info.c:1057: warning: left-hand operand of comma expression has no effect
socket_info.c:1058: error: invalid application of `sizeof' to incomplete type
`nlmsghdr'
socket_info.c:1060: error: dereferencing pointer to incomplete type
socket_info.c:1060: error: invalid application of `sizeof' to incomplete type
`nlmsghdr'
socket_info.c:1067: error: dereferencing pointer to incomplete type
socket_info.c:1067: error: invalid application of `sizeof' to incomplete type
`nlmsghdr'
make[1]: *** [socket_info.o] Error 1
make: *** [bin] Error 2
Do you have an idea on what could be producing the error?
Thanks and kind regards
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
VoIP Embedded, Inc.
http://www.voipembedded.com