Article View: news.software.readers
Article #21602Re: help with knews!
From: Pascal
Date: Mon, 13 May 1996 00:00
Date: Mon, 13 May 1996 00:00
58 lines
2450 bytes
2450 bytes
In article <4msj9u$mc9@oravannahka.helsinki.fi>, hkantola@cc.Helsinki.FI (Heikki Kantola) writes: >>>newsrc.c: In function `parse_newsrc': >>>newsrc.c:565: storage size of `tv_sec' isn't known >> >>This looks like yet another bug in the Solaris <sys/stat.h> header file. >>You should probably ask in a Solaris newsgroup. If you find the problem, >>let me know so I can add it to my 'hints and hacks' web page. > >Or could that just result from not using the "#define tv_sec _tv_sec"- >hack? I also suggest to use gcc instead of Solaris's cc if possible as >I think I once compiled knews with cc and I remember then knews failed >to save .newsrc for some odd reason... > >-- >Heikki "Hezu" Kantola, <Heikki.Kantola@Helsinki.FI> >L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan >osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta >tunnilta. > Yes, there is a bug in the Solaris 2.4 version of the sys/stat.h. I've had the same problem while compiling knews on my machine. The bug is due to the mispelling of the '_POSIX_C_SOURCE' compilation switch (missing leading underscore) in the definition of the 'st_atime', 'st_mtime' and 'st_ctime' fields of the 'stat' structure type: #if (defined(_POSIX_C_SOURCE) && (POSIX_C_SOURCE <= 2)) || \ ^ **** missing underscore **** defined(_XOPEN_SOURCE) #define st_atime st_atim._tv_sec #define st_mtime st_mtim._tv_sec #define st_ctime st_ctim._tv_sec #else #define st_atime st_atim.tv_sec #define st_mtime st_mtim.tv_sec #define st_ctime st_ctim.tv_sec #endif /* defined(_POSIX_C_SOURCE) && (POSIX_C_SOURCE <= 2).)... */ Personnaly, I've copied a corrected version of that file into the knews source directory and then I modified 'newsrc.c' to include this local 'stat.h' instead of 'sys/stat.h'. Cheers, Pascal.
Technical Details
Message-ID:
<4n7op8$o1l@ns1.nl.cis.philips.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<4mni8e$rj1@news.ariadne-t.gr> <4mq08l$14u@news.kth.se>Show Full Headers
Complete Article Headers
Message-ID: <4n7op8$o1l@ns1.nl.cis.philips.com> Subject: Re: help with knews! Date: Mon, 13 May 1996 00:00:00 +0000 From: ukcgaul@ukpmr.cs.philips.nl (Pascal) References: <4mni8e$rj1@news.ariadne-t.gr> <4mq08l$14u@news.kth.se> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 154600429 Organization: Camembert! Newsgroups: news.software.readers