Bug 11921 - two types specified in one empty declaration
Summary: two types specified in one empty declaration
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 3.2.2
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-14 13:49 UTC by Sanjana
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sanjana 2003-08-14 13:49:57 UTC
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
Comment 1 Andrew Pinski 2003-08-14 13:53:52 UTC
Read http://gcc.gnu.org/bugs.html.
We need the preprocessed source file.
Also we usually do not help people write their code.
Comment 2 Andrew Pinski 2003-09-05 01:55:11 UTC
This is not the place to help programming use a news group.