ofono build error on ARM

Rémi Denis-Courmont remi at remlab.net
Sat Aug 1 01:14:13 PDT 2009


Le vendredi 31 juillet 2009 18:13:10 Andres Salomon, vous avez écrit :
> Hi,
>
> I'm seeing the following build error when building ofono on an HTC G1
> phone:
>
> gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include -g -O2 -g -Werror -Wextra
> -Wno-unused-parameter -Wno-missing-field-initializers
> -Wdeclaration-after-statement -Wmissing-declarations -Wredundant-decls
> -Wcast-align -MT netlink.lo -MD -MP -MF .deps/netlink.Tpo -c netlink.c
> -fPIC -DPIC -o .libs/netlink.o
>
> cc1: warnings being treated as errors
> netlink.c: In function ‘g_pn_nl_process’:
> netlink.c:75: error: cast increases required alignment of target type
> netlink.c:107: error: cast increases required alignment of target type
> netlink.c:109: error: cast increases required alignment of target type
> make[2]: *** [netlink.lo] Error 1

I think there is no way to fix this. It comes from the Netlink packet format 
and macros, which are confusing gcc. That's why I hate to enfore -Werror.

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the ofono mailing list