Xref: utzoo news.software.b:3719 unix-pc.general:4230 Path: utzoo!utgpu!jarvis.csri.toronto.edu!neat.cs.toronto.edu!moraes Newsgroups: news.software.b,unix-pc.general From: moraes@cs.toronto.edu (Mark Moraes) Subject: Re: Cnews and gcc 1.36 on UNIXPC Message-ID: <89Dec2.021206est.2151@neat.cs.toronto.edu> Organization: Department of Computer Science, University of Toronto References: <1989Dec2.022346.436@ivucsb.sba.ca.us> Date: 2 Dec 89 07:12:30 GMT todd@ivucsb.sba.ca.us (Todd Day) writes: >Usually, I have no trouble with Cnews when using the stock UNIXPC cc >compiler. However, when I tried using gcc1.36, Cnews would claim that >all articles are duplicates (even happens during the regression test!). >Can anyone shed some light on this? I haven't seen this problem, but for a wild guess, are you using dbm from a system library? gcc and cc differ on their convention for returning dbm structs, and programs that use dbm should either use the -fpcc-return option on gcc when compiling, (may not work in gcc versions before 1.35, I think), or compile a version of dbm/sdbm/gdbm/dbz/whatever with gcc and use that. This also applies to any other routines that return structs, rather than pointers to structs. [Geoff Collyer also warns that you had better use gcc -traditional -- he staunchly denies that C News is written in ANSI C, and insists that compiling C News with an ANSI C compiler (alleged or otherwise) will void your warranty...] Brought to you by Super Global Mega Corp .com