I got past this error by including linux/uio.h in the .c file but not
sure that is where the
header file should be included.
On Fri, Jan 15, 2010 at 11:47 AM, Shirish Pargaonkar
<shirishpargaonkar at gmail.com> wrote:> Not sure if this is a known error during samba4 source code compilation
> and how to fix it (which file has struct iovec defined and where to include
it)
>
>
> Compiling ../libcli/util/tstream.c
> ../libcli/util/tstream.c:39: error: field ?tmp_vector? has incomplete type
> The following command failed:
>
> ? ? ? ?DATA_BLOB pdu_blob;
> ? ? ? ?struct iovec tmp_vector;
> };
>
> ?pwd ? ? ? ?= /usr/src/gitsamba/samba/source4
> Compiling ../libcli/util/tstream.c
> ../libcli/util/tstream.c:39: error: field ?tmp_vector? has incomplete type
> The following command failed:
> gcc -I../lib/tevent ? -I../lib/talloc -Ilib/replace ? ? -fPIC
> -I./include -I. -I./lib -I./../lib/replace
> -I./../lib/talloc -I./.. -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H ?-c
> ../libcli/util/tstream.c -o
> ../libcli/util/tstream.o
> make: *** [../libcli/util/tstream.o] Error 1
>