* Compile error in Tru64UNIX V5.1
@ 2001-07-16 13:06 Ginny E. Kim
2001-07-16 16:14 ` Brian Haley
0 siblings, 1 reply; 5+ messages in thread
From: Ginny E. Kim @ 2001-07-16 13:06 UTC (permalink / raw)
I got following errors while compiling my program in Tru64UNIX V5.1
(For your information, it has no problem in Tru64UNIX V4.0F)
-------------------------------^
cc: Error: /sys/include/machine/pcb.h, line 179: In the declaration of
"x", the array bound "((int)(&((struct stack_layout
...)(0))->pcb)&127)?-1:1" is not a positive integer. (notposint)
struct _pcb_align_check { char x[((int)stack_to_pcb(0) & 127) ? -1 :
1]; };
-------------------------------^
cc: Warning: /sys/include/netinet/proto_ipv6.h, line 98: In this
declaration, the enum "in6_disposition" is not defined. (undefenum)
enum in6_disposition ip6_process_fragment P((struct ip6_rxinfo *
const,
^
cc: Warning: /sys/include/netinet/proto_ipv6.h, line 125: In this
declaration, the enum "nd6_cache_state" is not defined. (undefenum)
struct nd6_llinfo *nd6_cache_lookup P((struct in6_ifnet *,
-------------------------------------^
cc: Warning: /sys/include/netinet/ipv6_swtab.h, line 65: In this
declaration, the enum "nd6_cache_state" is not defined. (undefenum)
struct nd6_llinfo * (*nd6_cache_lookup) P((struct in6_ifnet *,
------------------------------------------------^
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?
For second, third, forth, all of them have same problem..
"in6_disposition" and "nd6_cache_state" not defined, is defined each
in /usr/include/netinet/in6_var.h and /usr/include/netinet/nd6_var.h
in Tru64UNIX V5.1.
But, this files have fundamentally problems.
</usr/include/netinet/in6_var.h>_________________________________
#include <nd6_cache.h>
#include <ipv6_swtab.h>
#include <in_route.h>
. . .
enum in6_disposition {
IN6_RX_PROCESS_NEXT_HEADER,
. . .
};
__________________________________________________________________
<ipv6_swtab.h> always include <proto_ipv6.h>, so, <proto_ipv6.h> can't
refer "enum in6_disposition".
Like this, <nd6_var.h> has same case.
</usr/include/netinet/nd6_var.h>________________________________
#include <in6.h>
#include <ip6.h>
#include <in6_var.h>
.........................
enum nd6_cache_state {
ND6_CACHE_INCOMPLETE, ND6_CACHE_UNRECHANGEBLE,
..........................
};
___________________________________________________________________
<in6.h> always include <proto_ipv6.h>, so, <proto_ipv6.h> can't refer
"enum nd6_cache_state".
ARE THESE ESSENTIAL AND INELUCTABLE PROBLEM, or OS PROBLEM CAN BE
PATCHED?
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Compile error in Tru64UNIX V5.1
2001-07-16 13:06 Compile error in Tru64UNIX V5.1 Ginny E. Kim
@ 2001-07-16 16:14 ` Brian Haley
2001-07-17 12:33 ` Ginny E. Kim
0 siblings, 1 reply; 5+ messages in thread
From: Brian Haley @ 2001-07-16 16:14 UTC (permalink / raw)
"Ginny E. Kim" wrote:
> cc: Warning: /sys/include/netinet/proto_ipv6.h, line 98: In this
> declaration, the enum "in6_disposition" is not defined. (undefenum)
> enum in6_disposition ip6_process_fragment P((struct ip6_rxinfo *
> const,
>
> <ipv6_swtab.h> always include <proto_ipv6.h>, so, <proto_ipv6.h> can't
> refer "enum in6_disposition".
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?
-Brian
-----------------------------------------------
Brian P. Haley
Tru64 UNIX Networking Group
Compaq Computer Corporation
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Compile error in Tru64UNIX V5.1
2001-07-16 16:14 ` Brian Haley
@ 2001-07-17 12:33 ` Ginny E. Kim
2001-07-17 21:03 ` Brian Haley
0 siblings, 1 reply; 5+ messages in thread
From: Ginny E. Kim @ 2001-07-17 12:33 UTC (permalink / raw)
-------------------------------^
cc: Error: /sys/include/machine/pcb.h, line 179: In the declaration of
"x", the array bound "((int)(&((struct stack_layout
...)(0))->pcb)&127)?-1:1" is not a positive integer. (notposint)
struct _pcb_align_check { char x[((int)stack_to_pcb(0) & 127) ? -1 :
1]; };
--------------------------------
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).
> 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.
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?
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Compile error in Tru64UNIX V5.1
2001-07-17 12:33 ` Ginny E. Kim
@ 2001-07-17 21:03 ` Brian Haley
2001-07-20 5:57 ` Ginny E. Kim
0 siblings, 1 reply; 5+ messages in thread
From: Brian Haley @ 2001-07-17 21:03 UTC (permalink / raw)
"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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Compile error in Tru64UNIX V5.1
2001-07-17 21:03 ` Brian Haley
@ 2001-07-20 5:57 ` Ginny E. Kim
0 siblings, 0 replies; 5+ messages in thread
From: Ginny E. Kim @ 2001-07-20 5:57 UTC (permalink / raw)
Brian Haley <haley@zk3.dec.com> wrote in message news:<3B54A804.1EB13AA8@zk3.dec.com>...
> "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?
I'm develping firewall in compaq tru64unix platform. And, I want to
make main firewall module to be loadable kernel module(driver). I
should know about Internet protocols supporting IPv6.
>
> > 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?
I had included "netinet/in.h" in my program.. It(netinet/in.h) include
"netinet/in6.h", and as same way, "netinet/in6.h" include
"netinet/ipv6_swtab.h"....so, I had compiling error above...
I think "netinet/in.h" included in my program is essential header file
in program using internet protocol...
Until now, I didn't get solutions about that problem..
Could you give me one solution?
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-07-20 5:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-16 13:06 Compile error in Tru64UNIX V5.1 Ginny E. Kim
2001-07-16 16:14 ` Brian Haley
2001-07-17 12:33 ` Ginny E. Kim
2001-07-17 21:03 ` Brian Haley
2001-07-20 5:57 ` Ginny E. Kim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox