From: kg@gnusys.gun.de (Klaus Guhr)
Subject: Re: C News for Linux
Organization: GNUSYS // Private LINUX Site
Date: Thu, 24 Sep 1992 21:41:35 GMT
X-Newsreader: TIN [version 1.1 PL6]

Kristo Kaarlo Matias (kkk@field.ichaos.nullnet.fi) wrote:
: 
: I'm trying to "port" C News to Linux, and I'd like to know "best"
: answers for the following questions. (from 'build' script).
: 
: <-------------------------------------------->
: C News has libraries for several kinds of Unix:
: 	bsd42	4.2BSD and successors
: 	usg	AT&T System V
: 	v7	Version 7 (4.1BSD is pretty close, ditto Xenix)
: 	v8	Version 8, aka Eighth Edition
: Which best describes your system [v7]?
usg

:  
: C News has libraries for small address spaces (16 bits) and big
: ones (preferably 32 bits, but anything rather bigger than 16).
: Which best describes your system [big]?

big

:  
: Modern Unixes can generally use the setuid() system call to set the
: real and effective user ids to the current effective user id.  In
: old Unixes, only "root" can change the real user id.  This causes
: various problems for C News.  C News provides a small program named
: "setnewsids" to run setuserid-root; all it does is change user and
: group ids and then execute C News "relaynews".  It is needed only on
: uncooperative systems.  Relaynews invokes it automatically if needed
: (and it then invokes relaynews in return).  Can this system do
: setuid(geteuidc)) to change the real uid/gid?

yes


:  
: Very old Unix systems needed the order of object modules in a library
: chosen very carefully.  V7 introduced "ranlib" which removes the need
: for this.  Recent System Vs have had the same facility built into "ar"
: (look for the "symdef" feature in the "ar" manual page) so "ranlib"
: Does your system use ranlib? 

yes

: Does your "ar" have a "symdef" feature?


:  
: Historically the only normal compilation option needed for most
: programs is -O, but again compilers, especially newer ones, differ.
: What options should be given to the compiler [-O]?

-O2 (or higher...)

:  
: The final linking ("ld") step of compiling might need an option,
: such as -n or -i, to produce the preferred form of executable file.
: On most modern systems the default is right.  What options, if any,
: should be given for linking?

-s -jump

:  
: C News often wants to ask how much disk space is available.  The
: format of output from the "df" command unfortunately varies a lot,
: as does the availability of a system call to get the same information.
: C News knows about several different versions (the first three are
: preferred):
: 	statfs	system with standard statfs() (SunOS, 4.4BSD, not System V)
: 	ustat	system with ustat() (most System Vs)
: 	ultrix	DEC Ultrix with DEC's own bizarre statfs()
: 	bsd	4.2/4.3BSD
: 	sysv	old System Vs
: 	xenix	some (all?) Xenixes; some System Vs, e.g. Microport, HP?
: 	sgi	Silicon Graphics Iris systems
: 	v7	plain old style:  no headers or fluff, just name and number
: 	null	don't know or don't care how much space is available
: Which one is most appropriate?
statfs

:  
-- 
Snail: Klaus Guhr, Marktstrasse 33, 5300 Bonn 3, Germany
Phone: ++49 +228 48 53 60       Data: ++49 +228 43 24 33
E-Mail: kg@gnusys.GUN.de