*BSD News Article 41546


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.netspace.net.au!serval.net.wsu.edu!netnews.nwnet.net!oracle.pnl.gov!osi-east2.es.net!lll-winken.llnl.gov!uwm.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!Germany.EU.net!krabat!leo
From: leo@krabat.marco.de (Matthias Pfaller)
Newsgroups: comp.os.386bsd.apps
Subject: Re: Problems compiling rxvt 2.09
Message-ID: <4473@krabat.marco.de>
Date: 23 Jan 95 08:50:18 GMT
References: <3fsri9$fi@taz.ramp.com>
Organization: marco GmbH, D-85221 Dachau
Lines: 32
X-Newsreader: TIN [version 1.2 PL2]

Tim Rightnour (garbled@ramp.com) wrote:
> Im running Netbsd 1.0 and X 3.1

> when compiling rxvt 2.09 i recieve the following
> gcc  -O2    -I/usr/X11R6/include   -DBSD -DUTMP_SUPPORT 
> -DUTMP=\"/etc/utmp\" -DBSD -DTTYTAB=\"/etc/ttytab\" -DPRINT_PIPE  -DMAX_REFR
> ESH_PERIOD=10 -DMULTIPLE_CLICKS -DFAKE_RESOURCES -DUSE_XCOPYAREA -DCOLOR 
> -DGRAPHICS -DFUNCPROTO=15 -DNARROWPROTO    -c command.c
> command.c: In function `run_command':
> command.c:376: too few arguments to function `setpgrp'
> command.c:378: too few arguments to function `setpgrp'
> command.c:388: `TCGETS' undeclared (first use this function)
> command.c:388: (Each undeclared identifier is reported only once
> command.c:388: for each function it appears in.)
> command.c:456: `TCSETS' undeclared (first use this function)
> *** Error code 1
>  

> My question is:  A) how do you fix this
> 		 b) WHAT is this.. I see it alot

Why not give setpgrp just as much arguments as it likes to see?
Try setpgrp (0, 0).
To work around the TCGETS/TCSETS problem you probably have to define
FREEBSD. Did you really look at the source before posting?
This still doesn't fix rxvt's broken utmp handling
(if there is interest, I have a patch for this).

	Matthias
-- 
leo@marco.de		in real life: Matthias Pfaller
..!unido!marco!leo	marco GmbH, 85221 Dachau	tel: +49 8131 516142