From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,3abcae98fd1b7475 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-07-17 14:15:11 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!news.cpqcorp.net!not-for-mail Message-ID: <3B54A804.1EB13AA8@zk3.dec.com> From: Brian Haley X-Mailer: Mozilla 4.77 [en] (X11; U; OSF1 V4.0 alpha) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: Re: Compile error in Tru64UNIX V5.1 References: <2f6bec0a.0107160506.57384f6e@posting.google.com> <3B5312FA.87308C1A@zk3.dec.com> <2f6bec0a.0107170433.464fceb6@posting.google.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 17 Jul 2001 17:03:00 -0400 NNTP-Posting-Host: 16.140.64.151 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 995403781 16.140.64.151 (Tue, 17 Jul 2001 14:03:01 PDT) NNTP-Posting-Date: Tue, 17 Jul 2001 14:03:01 PDT Organization: Compaq Computer Corporation Xref: archiver1.google.com comp.unix.tru64:3615 "Ginny E. Kim" wrote: > For first error, if I remove that function(struct _pcb_align_check)in > header file, /sys/include/machine/pcb.h, it has no problem.... > Is this Tru64UNIX V5.1 problem itself? > > I didn't get the answer about first problem(above). I'm in the Networking Group and don't know the answer, but it's probably related to _KERNEL as well. > ipv6_swtab.h only includes proto_ipv6.h if _KERNEL is defined from > > what I can tell, so why are you defining it? Are you really doing IPv6 > > development or just including a header based on a man page comment? > > My program is a kind of device driver, so it use _KERNEL. I'm curious why your device driver needs to know about Internet protocols, it shouldn't. Have you read the "Writing Device Drivers" book? > What case is _KERNEL defined in operating system(V5.1)? > That is, what case does system use defined _KERNEL? > Whether it is developed IPv6 or just included a header based-on a man > page comment, is it a problem header file itself? How can I compile > without header file of IPv6, with not having compiling error? _KERNEL is defined when you need kernel internal data structures and functions visible to you, like in device drivers or loadable protocol modules. What header are you including that eventually includes ipv6_swab.h (which includes proto_ipv6.h) and why are you including it? -Brian --------------------------------------------- Brian P. Haley Tru64 UNIX Networking Group Compaq Computer Corporation