From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tommy McCabe Subject: Riddles in the dark Date: Mon, 12 Jul 2004 17:49:57 -0700 (PDT) Sender: linux-8086-owner@vger.kernel.org Message-ID: <20040713004957.54461.qmail@web51309.mail.yahoo.com> Mime-Version: 1.0 Return-path: List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-8086@vger.kernel.org ps.c can't compile because of these errors: /usr/lib/bcc/include/linuxmt/sc:25.29: error: need ';' /usr/lib/bcc/include/linuxmt/sc:36.16: error: need ';' /usr/lib/bcc/include/linuxmt/sc:37.16: error: seg_t already declared /usr/lib/bcc/include/linuxmt/sc:37.16: error: need ';' /usr/lib/bcc/include/linuxmt/sc:50.24: error: need ';' /usr/lib/bcc/include/linuxmt/sc:51.22: error: need ';' /usr/lib/bcc/include/linuxmt/sc:52.23: error: __pptr already declared /usr/lib/bcc/include/linuxmt/sc:52.23: error: need ';' /usr/lib/bcc/include/linuxmt/sc:53.21: error: __pptr already declared /usr/lib/bcc/include/linuxmt/sc:53.21: error: need ';' /usr/lib/bcc/include/linuxmt/sc:54.21: error: __pptr already declared /usr/lib/bcc/include/linuxmt/sc:54.21: error: need ';' /usr/lib/bcc/include/linuxmt/sc:92.25: error: need ';' /usr/lib/bcc/include/linuxmt/sc:131.21: error: need ';' Note that the file linuxmt/sc doesn't exist- I assume it to be linxumt/sched.h. The compiler thinks seg_t is a variable name but it's a variable type. Is ps.c itself, I see this: int read_task(fd, off, ds, task_table). What the heck is this? A function declaration? An array? It looked as if it should have a semicolon put after it, but then ps.c returned these errors: ps.c:30.1: error: need variable name ps.c:31.9: error: need ';' ps.c:34.7: error: addr already declared ps.c:34.40: error: initializer too complicated ps.c:35.3: error: need variable name ps.c:35.5: error: need ';' ps.c:35.6: error: need ')' ps.c:35.6: error: need variable name ps.c:35.7: error: need ';' ps.c:35.14: error: need ')' ps.c:35.14: error: need ';' ps.c:35.14: error: need variable name ps.c:35.20: error: need ';' ps.c:35.30: error: need ')' ps.c:35.30: error: lseek already declared ps.c:35.30: error: need '{' ps.c:35.32: error: need ';' ps.c:35.32: error: bad expression ps.c:35.33: error: need ';' ps.c:35.33: error: bad expression ps.c:35.34: error: need ';' ps.c:35.34: error: bad expression ps.c:35.36: error: need ';' And back at linuxmt/sched.h, it ends with a #endif which isn't preceded by a #indef! What gives? __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail