Path: utzoo!utstat!helios.physics.utoronto.ca!jarvis.csri.toronto.edu!mailrus!ncar!tank!mimsy!mojo!smaug From: smaug@eng.umd.edu (Kurt Lidl) Newsgroups: news.software.b Subject: Re: Cnews and gcc 1.36 on UNIXPC Summary: gcc on SunOS 4.0.3c Keywords: gcc, sun, fast Message-ID: <1989Dec5.085741.23099@eng.umd.edu> Date: 5 Dec 89 08:57:41 GMT References: <1989Dec2.022346.436@ivucsb.sba.ca.us> <1989Dec2.235241.6935@utzoo.uucp> Sender: news@eng.umd.edu (The News System) Reply-To: smaug@eng.umd.edu (Kurt Lidl) Followup-To: news.software.b Organization: Dragon Finishing School of Unix and Magic Lines: 36 In article <1989Dec2.235241.6935@utzoo.uucp> henry@utzoo.uucp (Henry Spencer) writes: >In article <1989Dec2.022346.436@ivucsb.sba.ca.us> 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'd suspect problems with the interface to the dbm library. As I >understand it -- I haven't used gcc significantly -- gcc does *not* >use pcc-compatible conventions for calling struct-valued functions >unless told to. The dbm interface includes some such functions. [This is exactly the behavior I experienced when I was running C News with the default Sun dbm libraries. Thanks to Felix Lee for the fix -- it got me up and running in the first place.] Our current setup of C News on our sun 3 systems was built using gcc v1.35. Here are my compiler invocation lines: CC= gcc COPTS= -O -traditional -fpcc-struct-return In addition to this, I use the dbz routines that have appeared here lately. (I suppose that actually, since I am now not confined by the system dbm routines, I could drop the -fpcc-struct-return flag... Oh well. This works well.) My personal advice for someone who is going to run C News is to add the dbz routines to the libcnews.a and link with that. No more special dbm libraries, and just one library to have to link the nntp stuff with... But, I didn't write the software, so this is only an opinion. -- /* Kurt J. Lidl (smaug@eng.umd.edu) | X Windows: Power Tools */ /* UUCP: uunet!eng.umd.edu!smaug | for Power Fools */