nfsim on amd64: va_list incompatible type error

Patrick McHardy kaber at trash.net
Fri Jan 7 01:30:16 CET 2005


Max Kellermann wrote:

>gcc -Wmissing-prototypes -Wstrict-prototypes -Wunused -Wall -g -Wa,-W
>-I. -I/home/max/svn/nfsim/core -I/home/max/svn/nfsim/kernelenv/include
>-I/home/max/svn/nfsim/netfilter/include  -c -o core/talloc.o
>core/talloc.c
>core/talloc.c: In function `talloc_vasprintf':
>core/talloc.c:862: error: incompatible types in assignment
>core/talloc.c:868: error: incompatible types in assignment
>core/talloc.c: In function `talloc_vasprintf_append':
>core/talloc.c:906: error: incompatible types in assignment
>core/talloc.c:918: error: incompatible types in assignment
>
>both gcc 1:3.3.5-5 and 3.4.3-6 (Debian) are affected. I found several
>references to this behaviour on the net, one is a gcc bug report:
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8262
>
>.. but I fail to understand how to go around this limitation. When I
>defined HAVE_VA_COPY as a workaround, the error went away. Where is
>HAVE_VA_COPY meant to be defined?
>
I used the same workaround, but this patch should be better. In
samba HAVE_VA_COPY is probably defined by autoconf, but nfsim
doesn't use autoconf.

Regards
Patrick

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 05.diff
Type: text/x-patch
Size: 1462 bytes
Desc: not available
Url : /pipermail/netfilter-devel/attachments/20050107/793396df/05.bin


More information about the netfilter-devel mailing list