Cross compile error

Fei Ding <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAGmPkfJtMng+j3zoVEopwF+g_jTB=ym3nuiJ39_4EA7159bPRA@mail.gmail.com>
Hi

I want to compile a gdbserver for android device on Linux Ubuntu 14.04
(AMD64), and I've installed cross compile tools with `apt-get install
gcc-arm-linux-androideabi`, my option of configure script for gdb is
`--target=arm-linux-androideabi`, option for gdbserver is
`--host=arm-linux-androideabi`.

gdb has compiled successfully, but gdbserver has failed, like this:
========================
arm-linux-androideabi-gcc -g -O2    -I. -I. -I./../common
-I./../regformats -I./../../include -I./../gnulib/import
-Ibuild-gnulib-gdbserver/import -Wall -Wdeclaration-after-statement
-Wpointer-arith -Wformat-nonliteral -Wno-char-subscripts -Wempty-body
-Werror -DGDBSERVER -c -o linux-osdata.o -MT linux-osdata.o -MMD -MP
-MF .deps/linux-osdata.Tpo ../common/linux-osdata.c
../common/linux-osdata.c:1055:1: error: conflicting types for 'group_from_gid'
In file included from ../common/linux-osdata.c:37:0:
/usr/lib/gcc/arm-linux-androideabi/4.7.3/../../../../arm-linux-androideabi/include/grp.h:72:8:
note: previous declaration of 'group_from_gid' was here
make=: *** [linux-osdata.o] Error 1
=========================

How can I solve this?  Thanks.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.