Thread View: news.software.nntp
1 messages
1 total messages
Started by Bill Rayburn
Thu, 11 May 1995 00:00
Help - Solaris sys/vnode.h, sys/stream.h problem
Author: Bill Rayburn
Date: Thu, 11 May 1995 00:00
Date: Thu, 11 May 1995 00:00
63 lines
3110 bytes
3110 bytes
This is weird. Any info would be appreciated.
I'm installing INN 1.4sec on a Sparc 2 running Solaris 2.4. I get
this problem when compiling any program that includes netinet/in.h.
The reason I've crossposted to other groups is because I can recreate
the problem with the following source code:
#include <netinet/in.h>
main ()
{
printf("howdy\n");
}
(Actually, the problem occurs with any salutation.)
Anyway, when either gcc or our SPARCompiler get to the "netinet/in.h"
include, they issue warning over lines in sys/vnode.h and then spit
out an error for line 472 in sys/stream.h.
But here's the kicker! I go to another box (that happens to be a Sparc 1000),
and I can successfully compile the same test program with the SPARCompiler!
Same include files!
Needless to say, I am at a loss. Does anyone know what I might be
doing wrong?
I've appended gcc's full list of complaints, if anyone's interested.
Thank you,
Bill Rayburn
Systems Programmer
wmr2@pge.com
Pacific Gas & Electric Co.
---------------------------------------
news02# gcc test.c
In file included from /usr/include/sys/stream.h:16,
from /usr/include/netinet/in.h:28,
from test.c:3:
/usr/include/sys/vnode.h:256: warning: `struct uio' declared inside parameter list
/usr/include/sys/vnode.h:256: warning: its scope is only this definition or declaration,
/usr/include/sys/vnode.h:256: warning: which is probably not what you want.
/usr/include/sys/vnode.h:257: warning: `struct uio' declared inside parameter list
/usr/include/sys/vnode.h:280: warning: `struct uio' declared inside parameter list
/usr/include/sys/vnode.h:283: warning: `struct uio' declared inside parameter list
In file included from /usr/include/netinet/in.h:28,
from test.c:3:
/usr/include/sys/stream.h:472: parse error before `uio_t'
/usr/include/sys/stream.h:472: warning: no semicolon at end of struct or union
/usr/include/sys/stream.h:473: warning: data definition has no type or storage class
/usr/include/sys/stream.h:474: parse error before `}'
/usr/include/sys/stream.h:474: warning: data definition has no type or storage class
/usr/include/sys/stream.h:484: parse error before `uio_t'
/usr/include/sys/stream.h:484: warning: no semicolon at end of struct or union
/usr/include/sys/stream.h:485: warning: data definition has no type or storage class
news02#
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads