[LITMUS^RT] CreateAPluginTutorial - Step4 : error when compiling

Schorr Stefan stschorr at eit.uni-kl.de
Tue May 7 09:29:49 CEST 2013


Hi all,

I'm trying to follow the Create A Plugin Tutorial from the webpage.
The first steps work like a charm, step 4 however doesn't compile :(

I copied the code from the website and I created a new local git
branch, so I'm absolutely sure that the only file I changed - apart
from the Makefile - is sched_demo.c (so I don't understand why
the error messages below point to .h files).

Please give me some hint what goes wrong here...

Best Regards
Stefan


Here's the error I get, when doing make bzImage

In file included from litmus/sched_demo.c:3:
include/litmus/litmus.h:74: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘litmus_clock’
include/litmus/litmus.h: In function ‘is_kernel_np’:
include/litmus/litmus.h:120: error: dereferencing pointer to incomplete type
include/litmus/litmus.h: In function ‘is_user_np’:
include/litmus/litmus.h:125: error: dereferencing pointer to incomplete type
include/litmus/litmus.h:125: error: dereferencing pointer to incomplete type
include/litmus/litmus.h: In function ‘request_exit_np’:
include/litmus/litmus.h:133: error: dereferencing pointer to incomplete type
include/litmus/litmus.h:134: error: dereferencing pointer to incomplete type
include/litmus/litmus.h:134: error: dereferencing pointer to incomplete type
include/litmus/litmus.h:134: error: dereferencing pointer to incomplete type
include/litmus/litmus.h:135: error: dereferencing pointer to incomplete type
include/litmus/litmus.h: In function ‘make_np’:
include/litmus/litmus.h:142: error: dereferencing pointer to incomplete type
include/litmus/litmus.h: In function ‘take_np’:
include/litmus/litmus.h:150: error: dereferencing pointer to incomplete type
include/litmus/litmus.h: In function ‘request_exit_np_atomic’:
include/litmus/litmus.h:156: error: storage size of ‘old’ isn’t known
include/litmus/litmus.h:156: error: storage size of ‘new’ isn’t known
include/litmus/litmus.h:158: error: dereferencing pointer to incomplete type
include/litmus/litmus.h:159: error: dereferencing pointer to incomplete type
include/litmus/litmus.h:171: error: dereferencing pointer to incomplete type
include/litmus/litmus.h:171: warning: type defaults to ‘int’ in declaration of ‘__ret’
include/litmus/litmus.h:171: error: dereferencing pointer to incomplete type
include/litmus/litmus.h:171: warning: type defaults to ‘int’ in declaration of ‘__old’
include/litmus/litmus.h:171: error: dereferencing pointer to incomplete type
include/litmus/litmus.h:171: warning: type defaults to ‘int’ in declaration of ‘__new’
include/litmus/litmus.h:171: error: dereferencing pointer to incomplete type
include/litmus/litmus.h:171: error: dereferencing pointer to incomplete type
include/litmus/litmus.h:171: error: dereferencing pointer to incomplete type
include/litmus/litmus.h:171: error: dereferencing pointer to incomplete type
include/litmus/litmus.h:171: error: dereferencing pointer to incomplete type
include/litmus/litmus.h:156: warning: unused variable ‘new’
include/litmus/litmus.h:156: warning: unused variable ‘old’
include/litmus/litmus.h: In function ‘clear_exit_np’:
include/litmus/litmus.h:208: error: dereferencing pointer to incomplete type
include/litmus/litmus.h:209: error: dereferencing pointer to incomplete type
include/litmus/litmus.h: In function ‘is_np’:
include/litmus/litmus.h:219: error: dereferencing pointer to incomplete type
include/litmus/litmus.h:219: error: dereferencing pointer to incomplete type
include/litmus/litmus.h:219: error: dereferencing pointer to incomplete type
include/litmus/litmus.h: In function ‘is_present’:
include/litmus/litmus.h:230: error: dereferencing pointer to incomplete type
include/litmus/litmus.h: In function ‘is_completed’:
include/litmus/litmus.h:235: error: dereferencing pointer to incomplete type
include/litmus/litmus.h: At top level:
include/litmus/litmus.h:253: error: expected ‘)’ before ‘time’
include/litmus/litmus.h: In function ‘get_control_page’:
include/litmus/litmus.h:267: error: dereferencing pointer to incomplete type
include/litmus/litmus.h: In function ‘has_control_page’:
include/litmus/litmus.h:272: error: dereferencing pointer to incomplete type
In file included from litmus/sched_demo.c:4:
include/litmus/rt_domain.h: At top level:
include/litmus/rt_domain.h:53: error: expected specifier-qualifier-list before ‘lt_t’
include/litmus/rt_domain.h: In function ‘is_queued’:
include/litmus/rt_domain.h:105: error: dereferencing pointer to incomplete type
include/litmus/rt_domain.h:106: error: dereferencing pointer to incomplete type
include/litmus/rt_domain.h: In function ‘remove’:
include/litmus/rt_domain.h:111: error: dereferencing pointer to incomplete type
make[1]: *** [litmus/sched_demo.o] Error 1
make: *** [litmus] Error 2

-- 
*****************************************
 Dipl.-Ing. Stefan Schorr
 
 University of Kaiserslautern
 Department of Electrical Engineering
 Chair of Real-Time Systems

 Postfach 3049
 67653 Kaiserslautern,
 Germany
***************************************** 





More information about the litmus-dev mailing list