[comp.unix.i386] Help with Interactive and news

mark@kodak.UUCP (Mark Hilliard) (08/29/89)

Has anyone gotten news to compile properly on Interactives 2.02?
I have been trying all day and keep getting the following error messages.
Does anyone have any idea what might be wrong?



"virtterm.c", line 838: unknown size
"virtterm.c", line 843: ws_row undefined
"virtterm.c", line 843: member of structure or union required
"virtterm.c", line 844: ws_col undefined
"virtterm.c", line 844: member of structure or union required
"virtterm.c", line 980: unknown siz*** Error code 1
"virtterm.c", line 985: ws_row undefined
"virtterm.c", line 985: member of structure or union required
"virtterm.c", line 986: ws_col undefined
"virtterm.c", line 986: member of structure or union required

Stop.

Thanks 

Mark Hilliard
.

cpcahil@virtech.UUCP (Conor P. Cahill) (08/29/89)

In article <2069@kodak.UUCP>, mark@kodak.UUCP (Mark Hilliard) writes:
> Has anyone gotten news to compile properly on Interactives 2.02?
> I have been trying all day and keep getting the following error messages.
> Does anyone have any idea what might be wrong?

David Raines posted the following to the net a while back-------

I got the source for bnews-2.11 from UUNET.  Other than the standard
localize.sh changes for USG/SysV, the only thing that wouldn,t compile 
was virtterm.c.   Add the following includes:

	#include <sys/stream.h>
	#include <sys/ptem.h>

The 'winsize' structure is defined in ptem.h, which is dependent on stream.h.
Apparently this is a change from earlier versions.
-- 
+-----------------------------------------------------------------------+
| Conor P. Cahill     uunet!virtech!cpcahil      	703-430-9247	!
| Virtual Technologies Inc.,    P. O. Box 876,   Sterling, VA 22170     |
+-----------------------------------------------------------------------+

pcg@aber-cs.UUCP (Piercarlo Grandi) (08/29/89)

In article <1086@virtech.UUCP> cpcahil@virtech.UUCP (Conor P. Cahill) writes:
    In article <2069@kodak.UUCP>, mark@kodak.UUCP (Mark Hilliard) writes:
    > Has anyone gotten news to compile properly on Interactives 2.02?
    > I have been trying all day and keep getting the following error messages.
    > Does anyone have any idea what might be wrong?
    
    David Raines posted the following to the net a while back-------
    
    I got the source for bnews-2.11 from UUNET.  Other than the standard
    localize.sh changes for USG/SysV, the only thing that wouldn,t compile 
    was virtterm.c.   Add the following includes:
    
    	#include <sys/stream.h>
    	#include <sys/ptem.h>
    
    The 'winsize' structure is defined in ptem.h, which is dependent on stream.h.
    Apparently this is a change from earlier versions.

Actually the better course is to do a '#undef TIOCGWINSZ'; on a stock 386/ix
the window size is fixed... Actually I don't like the idea of including into
user level programs headers, like <sys/stream.h>, that contain kernel level
declarations. AT&T ought to be less sloppy and surround the kernel only
parts of such headers with a nice #ifdef KERNEL. Name space pollution? No
thanks!
-- 
Piercarlo "Peter" Grandi           | ARPA: pcg%cs.aber.ac.uk@nsfnet-relay.ac.uk
Dept of CS, UCW Aberystwyth        | UUCP: ...!mcvax!ukc!aber-cs!pcg
Penglais, Aberystwyth SY23 3BZ, UK | INET: pcg@cs.aber.ac.uk

al@inebriae.UUCP (Al Evans) (08/29/89)

In article <1086@virtech.UUCP> cpcahil@virtech.UUCP (Conor P. Cahill) writes:
>In article <2069@kodak.UUCP>, mark@kodak.UUCP (Mark Hilliard) writes:
>> [statement that he can't get news to compile]
>
>David Raines posted the following to the net a while back-------
>
>I got the source for bnews-2.11 from UUNET.  Other than the standard
>localize.sh changes for USG/SysV, the only thing that wouldn,t compile 
>was virtterm.c.   Add the following includes:
>
>	#include <sys/stream.h>
>	#include <sys/ptem.h>
>
>The 'winsize' structure is defined in ptem.h, which is dependent on stream.h.
>Apparently this is a change from earlier versions.

I just finished fighting with this for a couple of days. The problem is that
unless you have Streams installed, you don't HAVE ptem.h. While termio.h
defines the ioctl call TIOCGWINSZ, the data structure needed as a parameter
to that call is defined elsewhere. Nasty. The problem didn't exist under
1.0.6, because TIOCGWINSZ wasn't defined in termio.h.

The simplest solution I found was to add a line in virtterm.c, right after

#ifdef USG 

saying 

#undef TIOCGWINSZ 

I guess to be correct about it, you really should add the necessary 
edit instruction to your localize script. 
Anyway, this seems to work just fine.
					--Al Evans--
-- 
Al Evans    {tntdev,texbell,ssbn}!inebriae!al
            al@inebriae.WLK.COM