From owner-freebsd-questions Fri Jul 12 11:34:18 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B96B037B400 for ; Fri, 12 Jul 2002 11:34:10 -0700 (PDT) Received: from petasus.ch.intel.com (petasus.ch.intel.com [143.182.124.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45ED043E42 for ; Fri, 12 Jul 2002 11:34:10 -0700 (PDT) (envelope-from pavan.balaji@intel.com) Received: from fmsmsxvs043.fm.intel.com (fmsmsxvs043.fm.intel.com [132.233.42.129]) by petasus.ch.intel.com (8.11.6/8.11.6/d: solo.mc,v 1.42 2002/05/23 22:21:11 root Exp $) with SMTP id g6CBaax20967 for ; Fri, 12 Jul 2002 11:36:36 GMT Received: from fmsmsx019.fm.intel.com ([132.233.42.130]) by fmsmsxvs043.fm.intel.com (NAVGW 2.5.2.11) with SMTP id M2002071211330219930 ; Fri, 12 Jul 2002 11:33:02 -0700 Received: by fmsmsx019.fm.intel.com with Internet Mail Service (5.5.2653.19) id <3ZAXF16P>; Fri, 12 Jul 2002 11:34:08 -0700 Message-ID: <3D386AED1B47D411A94300508B11F18703BC5B93@fmsmsx116.fm.intel.com> From: "Balaji, Pavan" To: "'Adam Weinberger'" , "Balaji, Pavan" Cc: questions@FreeBSD.ORG Subject: RE: Problem adding new system call!! Date: Fri, 12 Jul 2002 11:34:00 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="ISO-8859-1" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Oops sorry.. ----- $ make server gcc -I/usr/include -O0 -g -pipe smuck.c -o smuck In file included from smuck.c:8: /usr/include/netinet/smuck.h:15: invalid macro name *** Error code 1 Stop in /usr/home/pavan/Smuck ----- smuck.c: #include int main() { return 0; } ----- smuck.h: #ifndef _NETINET_SMUCK_H_ #define _NETINET_SMUCK_H_ #ifndef _KERNEL #define __BEGIN_DECLS int smucker __P((int, void*, int)); int smuckew __P((int, void*, int)); __END_DECLS #endif /* _KERNEL */ #endif /* _NETINET_SMUCK_H_ */ ----- Any ideas? Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash > -----Original Message----- > From: Adam Weinberger [mailto:adam@vectors.cx] > Sent: Friday, July 12, 2002 1:24 PM > To: Balaji, Pavan > Cc: questions@FreeBSD.ORG > Subject: Re: Problem adding new system call!! > > > ok, this still doesn't show me the code itself that is causing the > problem, and the error message stating what the problem is. don't > describe to me what you did, SHOW me what you did. > > -Adam > > > >> (07.12.2002 @ 1121 PST): Balaji, Pavan said, in 1.7K: << > > > > I added a header file which prototypes the system call. > > > > Btw, I forgot to mention that I changed the > libc/sys/Makefile.inc file to > > add the system call stub too. But, no good!! :-( > > > > > > Pavan Balaji, > > CIS Graduate Student, > > Ohio State University > > > > "Being happy doesn't mean that everything is perfect... It > just means that > > you have decided to see beyond the imperfections" -- Rash > > > > > > > -----Original Message----- > > > From: Adam Weinberger [mailto:adam@vectors.cx] > > > Sent: Friday, July 12, 2002 1:19 PM > > > To: balaji@cis.ohio-state.edu > > > Cc: questions@FreeBSD.ORG > > > Subject: Re: Problem adding new system call!! > > > > > > > > > ok, what is the exact error message, and what is the > exact macro that > > > it's complaining about? > > > > > > you're asking us to debug code we can't see. > > > > > > -Adam > > > > > > > > > >> (07.12.2002 @ 1057 PST): Pavan Balaji said, in 1.0K: << > > > > It doesn't seem to work. The kernel compiles and loads > > > > without any problem, but the user application says > > > > that the header file definition is an invalid macro. > > > > I'm not following any manual, but just using my Linux > > > > experience with FreeBSD (It's not good enough I guess > > > > :-(). > > > > > > > > Any suggestions? > > > > > > > > Pavan Balaji, > > > > CIS Graduate Student, > > > > Ohio State University > > > > > > > > __________________________________________________ > > > > Do You Yahoo!? > > > > Sign up for SBC Yahoo! Dial - First Month Free > > > > http://sbc.yahoo.com > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > > with "unsubscribe freebsd-questions" in the body of the message > > > > > > > >> end of "Problem adding new system call!!" from Pavan Balaji << > > > > > > > > > -- > > > "Oh good, my dog found the chainsaw." > > > -Lilo > > > Adam Weinberger > > > adam@vectors.cx > > > http://www.crackula.com > > > > > > >> end of "RE: Problem adding new system call!!" from Balaji, Pavan << > > > -- > "Oh good, my dog found the chainsaw." > -Lilo > Adam Weinberger > adam@vectors.cx > http://www.crackula.com > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message