🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #3609

Help - Solaris sys/vnode.h, sys/stream.h problem

#3609
From: Bill Rayburn
Date: Thu, 11 May 1995 00:00
63 lines
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#



Technical Details
Message-ID: <wmr2.75.001469A8@pge.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.programmer.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <wmr2.75.001469A8@pge.com>
Subject: Help - Solaris sys/vnode.h, sys/stream.h problem
Date: Thu, 11 May 1995 00:00:00 +0000
From: wmr2@pge.com (Bill Rayburn)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.programmer.mbox.zip!not-for-mail
X-Deja-AN: 102563326
Sender: news@news01.pge.com
Followup-to: comp.unix.programmer
Organization: Pacific Gas & Electric Co.
Newsgroups: comp.unix.programmer,comp.unix.solaris,news.software.nntp