Path: utzoo!utstat!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!abcfd20.larc.nasa.gov!tadguy From: tadguy@abcfd01.larc.nasa.gov (Tad Guy) Newsgroups: news.software.nntp Subject: Re: NNTP with CNEWS with DBZ Message-ID: Date: 30 Jul 90 15:28:54 GMT References: <6313@helios.ee.lbl.gov> Sender: news@abcfd20.larc.nasa.gov (USENET File Owner) Organization: NASA/Langley Research Center, Hampton, VA Lines: 33 In-Reply-To: jef@ace.ee.lbl.gov's message of 30 Jul 90 06:29:31 GMT In article <6313@helios.ee.lbl.gov> jef@ace.ee.lbl.gov (Jef Poskanzer) writes: > Does anybody do this? Is there some trick that we're missing? Nntpd > claims that cnews already has whatever article we offer to it. I thought > that configuring NNTP to use DBM calls but linking with the DBZ library > would be enough, but apparently not. If you define BSD_43, common/conf.h forces a defintion of NDBM, even if you've explicitly defined DBM earlier in the file. The following patch prevents this behavior. After patching, link with dbz.o (not -ldbm), and it should correctly reject dups. ...tad *************** *** 127,134 **** # define READ_SUPER # endif # endif ! # ifndef NDBM ! # define NDBM # endif #endif --- 127,136 ---- # define READ_SUPER # endif # endif ! # ifndef DBM ! # ifndef NDBM ! # define NDBM ! # endif # endif #endif