Installation of CNews on 3B1 (LONG)
    Ralph Russo 
    rmr at cci632.UUCP
       
    Thu Feb 22 04:26:48 AEST 1990
    
    
  
In response to a couple of postings regarding installation of
CNews on 3B1:
I successfully installed CNews on 3B1 about 4 weeks ago.  It's running
now with no problems...
Attached to the end of this posting is a record of my answers to the
build script.  (My responses may be stupid in cases BUT,
they DO work :-)
BUT FIRST: There is one thing I might have done better: I responded
Yes to the question about "does my system have an ldiv() like the ANSI
one?" and the REAL answer is that the 3B1 doesn't.  The 3B1 version
returns a different value than the one cnews is expecting.
WHAT I DID TO FIX THE LDIV PROBLEM: I went into the file
cnews/libfake/ldiv.c and changed the name of the function from ldiv to
xldiv, built ldiv.o, Then, used the ar command to install the new
object (ldiv.o) into cnews/libcnews.a NEXT: Changed the call in
libcnews/ltoza.c from ldiv to xldiv. then rebuilt relaynews.
I THINK THE PRECEEDING DESCRIPTION IS CORRECT.  I DIDN'T TAKE
NOTES!!!!
ALSO - I'M NOT SURE I HAVE FOUND ALL CASES WHERE LDIV IS USED !!!!!
ALSO - I made no attempt to use shared libraries or to strip to
executables.
ALSO - I accidentally used the GNU GCC preprocessor (but, this
__SHOULD__ have no effect on the outcome HA HA)
ONE MORE ALSO - I did have to tweak a shell script or two and change a
couple of permissions here and there...
I'd be happy to provide anybody help in their porting effort!
Ralph Russo
======== (Abbreviated) INTERACTION WITH BUILD SCRIPT FOLLOWS ==============
$ pwd
/u/ralph/c/cnews/cnews/conf
$ sh build
[...]
What user id should be used for news files [news]? 
What group id should be used for news files [news]? mail
What user id should be used for news programs [bin]? 
What group id should be used for news programs [bin]?
Do the C News sources belong to bin [yes]? 
[...]
Where should articles live [/usr/spool/news]? 
Where should control files live [/usr/lib/news]? 
Where should programs live [/usr/lib/newsbin]? 
C News by default assumes that all normal Unix programs can be found
in /bin or /usr/bin.  This is naive, especially on Berkeley-derived
systems where some standard programs inexplicably moved to /usr/ucb.
It would appear that /usr/ucb does not exist or is not needed
for normal operation on your system.  Is that right [yes]? 
Is there any other directory which should be searched to find
standard programs on your system [no]? yes
What is the full name of the directory? /usr/local/bin
Should it go before or after the others [after]? 
Is there any other directory which should be searched to find
standard programs on your system [no]? 
[...]
What umask should C News use [002]? 
[...]
Where should C News mail trouble reports [usenet]? ralph
[...]
Where should the shell configuration file be
located [/usr/lib/news/bin/config]? 
What is the full pathname of the chown command [/etc/chown]? /bin/chown
Can I say '/bin/chown news.mail file' to change both the user id
and group id of a file [yes]? no
Is there a chgrp command to change the group of a file [yes]? 
What is the full pathname of the chgrp command [/etc/chgrp]? /bin/chgrp
[...]
Which best describes your system [v7]? usg
[...]
Which best describes your system [big]? 
[...]
Does your system have  fsync() [yes]? no
Does your system have  getopt() [yes]? 
Does your system have  memcpy() [yes]? 
Does your system have  memcmp() [yes]? 
Does your system have  memchr() [yes]? 
Does your system have  memset() [yes]? 
Does your system have  mkdir() [yes]? no
Does your system have  putenv() [yes]? 
Does your system have  strchr() [yes]? 
Does your system have  strrchr() [yes]? 
Does your system have  strpbrk() [yes]? 
Does your system have  strspn() [yes]? 
Does your system have  strcspn() [yes]? 
Does your system have  strtok() [yes]? 
Does your system have  symlink() [yes]? no
Does your system have a library function ldiv() as in ANSI C? [no]? yes
Does your system have the "dbm" library [yes]? no
[...]
Do you want to use our fast stdio library [yes]? no
[...]
is usually faster than portable C.  Is your strchr() function
indeed fast (okay to guess) [yes]? 
[...]
Can this system do setuid(geteuid()) [yes]? no
[...]
Does your system have an ANSI-C-conforming <stdlib.h> [yes]? no
Does your system have an ANSI-C-conforming <string.h> [yes]? no
Does your system have <sys/timeb.h> [yes]? no
[...]
The modern standard is that it returns "int".  Does your sprintf()
return "char *" [no]? 
[...]
Does your system have a 'ranlib' command [no]? 
Does your "ar" have a "symdef" feature [yes]? 
[...]
What is the name of the C compiler to be used [cc]? 
[...]
What options should be given to the compiler [-O]? 
[...]
On many modern systems the preferred form is the default.  What options,
if any, should be given for linking [none]? 
[...]
either full pathnames or -l... options.  What libraries, in addition
to the one(s) picked up automatically by the compiler, should be used
when linking C News [none]? 
Does your system have a "hostname" command [yes]? no
Does it have a "uname" command with a "-n" option [yes]? 
[...]
Which one is most appropriate [hdb]? null
[...]
Which one is most appropriate [bsd]? sysv
[...]
Does your "df" accept a directory name as an argument [yes]? no
[...]
Are you planning to use expire to archive news on disk [no]? 
Are you particularly short of disk space [no]? yes
[...]
Are you running C News on a group of machines hooked together with
NFS, with articles filed on only one "server" machine [no]? 
[...]
should be the uucp name.  What is the name of the overall system
for news purposes? ducksoup
[...]
for sites that have one.  What is the mailing-address name of this
system, preferably a domain address [ducksoup.uucp]? frau!ducksoup
What is the name of the organization, for insertion into articles
posted from here? Ralph's Basement
[...]
What is the top-level manual-page directory [/usr/man]? 
[...]
example) were stored in /usr/man/man5.  This has also changed in
some variants.  Has your system made either of these changes [no]? 
[...]
What directory should "rnews" and "cunbatch" go in [/bin]? /usr/bin
[...]
Do you want to install our user-interface programs [yes]? 
[...]
can run them without special arrangements.  What directory should
these commands go in [/bin]? /usr/local/bin
[...]
Will "mail" handle "@" addresses [no]? 
[...]
getting this right for simple postings.  What should the default
newsgroup for postnews be [no default]? 
[...]
probably wise.  What should the default postnews distribution
be [world]? 
[...]
currently on your system.  Do you have any newsgroups containing
confidential or proprietary material [no]? 
    
    
More information about the Comp.sys.att
mailing list