Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to compile tcng-10b (linux traffic control next generation) in ubuntu hardy. I'm getting the following errors. By looking at file ksvc.c I've noticed that errors occur whenever struct sk_buff is used. Any suggestions on how to fix this?
ksvc.c:28: warning: ‘struct sock’ declared inside parameter list
ksvc.c:28: warning: its scope is only this definition or declaration, which is probably not what you want
ksvc.c:46: warning: no previous prototype for ‘printk’
ksvc.c: In function ‘__kfree_skb’:
ksvc.c:70: error: dereferencing pointer to incomplete type
ksvc.c:71: error: dereferencing pointer to incomplete type
ksvc.c: In function ‘alloc_skb’:
ksvc.c:81: error: invalid application of ‘sizeof’ to incomplete type ‘struct sk_buff’
ksvc.c:82: error: dereferencing pointer to incomplete type
ksvc.c:83: error: dereferencing pointer to incomplete type
ksvc.c:83: error: dereferencing pointer to incomplete type
ksvc.c:83: error: dereferencing pointer to incomplete type
ksvc.c:83: error: dereferencing pointer to incomplete type
ksvc.c:84: error: dereferencing pointer to incomplete type
ksvc.c:88: error: dereferencing pointer to incomplete type
ksvc.c:89: error: dereferencing pointer to incomplete type
ksvc.c:89: error: invalid application of ‘sizeof’ to incomplete type ‘struct sk_buff’
ksvc.c:90: error: dereferencing pointer to incomplete type
ksvc.c:91: error: dereferencing pointer to incomplete type
ksvc.c:91: error: dereferencing pointer to incomplete type
ksvc.c: In function ‘rtnetlink_send’:
ksvc.c:150: error: dereferencing pointer to incomplete type
use Synaptic to install this, unless you really need to compile from source. if the latter is true then you would need to post the code for us to look at, or send it to the developers of the tool if it is actually a bug (well, compilation error, not a bug).
Synaptic is in System->Administration. use the 'Search' button to find 'tcng'. you should be able to install it with GUI-only, no command line stuff.
I've successfully installed tcng from the ubuntu repos using synaptic. However I don't want to use the tcng in the ubuntu repos because it doesn't have tcsim (traffic control simulator).
The problem is not in the tool itself because I've installed it before in Feisty. Now that I've updated to Hardy I can't seem to get it compiled. I'm I missing a package?
The errors happen to be in the followin two functions:
is it just the above warnings and errors that you showed in post #1? or is there a larger list? did you read and follow the README for tcng exactly? (ie installed required libraries, etc)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.