ofono build error on ARM

Andres Salomon dilinger at collabora.co.uk
Fri Jul 31 08:30:51 PDT 2009


On Fri, 31 Jul 2009 11:13:10 -0400
Andres Salomon <dilinger at collabora.co.uk> wrote:

> 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
> 

Note that building the file without -Wcast-align fixes the
issue.  Perhaps just that single file should be built without cast
alignment checking?


More information about the ofono mailing list