[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: linux-kernel-headers: linux-netlink-compilation.patch avoids compilation of tipc-config (error output)



Hi Again,

I forgot to paste the error output - sorry for that!

izac@me:~/tipcutils/tipcutils-1.0.1$ LANG="C" make
cc -Wall -O2    -c -o tipc-config.o tipc-config.c
tipc-config.c:184: warning: 'struct nlattr' declared inside parameter list
tipc-config.c:184: warning: its scope is only this definition or declaration, 
which is probably not what you want
tipc-config.c: In function 'nla_data':
tipc-config.c:186: error: 'NLA_HDRLEN' undeclared (first use in this function)
tipc-config.c:186: error: (Each undeclared identifier is reported only once
tipc-config.c:186: error: for each function it appears in.)
tipc-config.c: At top level:
tipc-config.c:189: warning: 'struct nlattr' declared inside parameter list
tipc-config.c: In function 'nla_ok':
tipc-config.c:191: error: dereferencing pointer to incomplete type
tipc-config.c:192: error: dereferencing pointer to incomplete type
tipc-config.c:192: error: dereferencing pointer to incomplete type
tipc-config.c:193: error: dereferencing pointer to incomplete type
tipc-config.c: In function 'nla_next':
tipc-config.c:198: warning: implicit declaration of function 'NLA_ALIGN'
tipc-config.c:198: error: dereferencing pointer to incomplete type
tipc-config.c: In function 'nla_put_string':
tipc-config.c:208: error: dereferencing pointer to incomplete type
tipc-config.c:208: error: 'NLA_HDRLEN' undeclared (first use in this function)
tipc-config.c:209: error: dereferencing pointer to incomplete type
tipc-config.c:210: warning: passing argument 1 of 'nla_data' from incompatible 
pointer type
tipc-config.c: In function 'nla_get_u16':
tipc-config.c:217: warning: passing argument 1 of 'nla_data' from incompatible 
pointer type
tipc-config.c: In function 'get_genl_family_id':
tipc-config.c:370: error: 'NLA_HDRLEN' undeclared (first use in this function)
tipc-config.c:394: warning: passing argument 1 of 'nla_ok' from incompatible 
pointer type
tipc-config.c:395: error: dereferencing pointer to incomplete type
tipc-config.c:373: warning: unused variable 'reply'
tipc-config.c:370: warning: unused variable 'request'
tipc-config.c: In function 'nla_ok':
tipc-config.c:194: warning: control reaches end of non-void function
make: *** [tipc-config.o] Error 1
izac@me:~/tipcutils/tipcutils-1.0.1$

Regards,
Martin


Am Sonntag, 27. August 2006 15:32 schrieb Martin Peylo:
> Hi GNU Libc Maintainers,
>
> I tried to build tipc-config which is used for the configuration of TIPC -
> experimental in the kernel since version 2.6.16. It is available at fill in
> http://tipc.sourceforge.net/download.html as the "TIPC utils package".
>
> I figured out that it fails to build against linux-kernel-headers version
> 2.6.17.6-1 - currently in etch - because of the linux-netlink-compilation
> patch which alters linux/netlink.h. There is no problem building against
> the kernel.org version of kernel 2.6.17.6.
>
> As I see this patch is still applied in version 2.6.17-10 currently in sid.
>
> I'm don't know anything about the reasons for the patch and I don't know if
> the TIPC developers have used something they shouldn't have. So I didn't
> wanted to file a bug report before asking if you think you could remove the
> patch or better give the TIPC people some advise what the should alter in
> their application.
>
> Thanks for all your work!
> Martin



Reply to: