Hello, I am working on Red Hat 9, the kernel version is 2.4.20-8 and gcc version is 3.2.2 . I am trying to write a program for using hooks in the kernel. Getting the following error in the file hook.h "two types specified in one empty declaration" . This error occures at the structure definitions of hook_rec_s and hook_head_s. Getting another error while using the HOOK macro. It says "called object is not a function". I found an appropriate reply but it talks about unsuccessfull "make modules". Is it the only reason for the occurence of the error? Please excuse me if have written nonsense. Im just a beginner and Im really worried about these errors. Hope there's somebody out there who can bail me out of these errors. Thanking you, Smitha
Read http://gcc.gnu.org/bugs.html. We need the preprocessed source file. Also we usually do not help people write their code.
This is not the place to help programming use a news group.