[news.software.b] Cnews fails on RS/6000

bglenden@colobus.cv.nrao.edu (Brian Glendenning) (04/30/91)

I recently tried to install Cnews on an IBM RS/6000. Everything seemed
to go smoothly (minor changes to libc/getdate.y and libc/datetok.c and
rna/defs.h required to get things by the compiler) however when I went
to test things with "make r" the relaynews test failed.

In particular, errlog contained:
./relaynews: error writing `/dev/null', probably the disk filled (Invalid argument)

Before I go hunting through the code, has anyone seen this before, or
does anyone have any advice? Has anyone got Cnews to run on a RS/6000
before, or am I looking at real work?

Thanks for any advice/suggestions/whatever.

Brian
--
       Brian Glendenning - National Radio Astronomy Observatory
bglenden@nrao.edu          bglenden@nrao.bitnet          (804) 296-0286

flee@cs.psu.edu (Felix Lee) (04/30/91)

>to test things with "make r" the relaynews test failed.
>In particular, errlog contained:
>./relaynews: error writing `/dev/null', probably the disk filled (Invalid argument)

This is harmless.  relaynews tries to fsync() output files for
reliability.  The regression test uses /dev/null for batch files.  AIX
doesn't let you fsync() a file descriptor that isn't open to a real
file (it returns -1 and EBADF).

There's a comment in notebook/problems about this, referring to
AIX/370.  It looks like all versions of AIX will refuse to fsync()
non-files.  Mach (on the NeXTs) also has this problem.
--
Felix Lee	flee@cs.psu.edu

bglenden@polaris.cv.nrao.edu (Brian Glendenning) (05/04/91)

By the way, do you know how to drop the block size, and bump up the
number of inodes on a partition under AIX? Thanks.

Brian