Thread View: news.software.nntp
10 messages
10 total messages
Started by Andrew Michael
Mon, 03 Jan 2000 00:00
auto posting from solaris
Author: Andrew Michael
Date: Mon, 03 Jan 2000 00:00
Date: Mon, 03 Jan 2000 00:00
22 lines
1665 bytes
1665 bytes
Once a week we automatically post a report about earthquake activity in Northern California to a few usenet groups. I had this smoothly working on SunOS 4.x with Pnews and inews, but I can't get the versions I have to compile under Solaris. And the versions I find around the net are rather old. So, I am looking for a program that can post to usenet from a shell script running under SunOS 5.6 and/or 5.7. This machine does not need to receive any news feeds or have any users reading news on it. It just needs to post a few files each week. Any suggestions on what I should use and where I should get it from. The posting will be done to a newserver we have running on a different machine. Thanks for any help. I am just trying to avoid having to do this with a web browser each week. Thanks again, Andy Michael michael@usgs.gov
Re: auto posting from solaris
Author: Andrew Michael
Date: Tue, 04 Jan 2000 00:00
Date: Tue, 04 Jan 2000 00:00
19 lines
1351 bytes
1351 bytes
Darren Wyn Rees wrote: > > > have you considered 'auto-faq' ? it's a perl script, you'll need > to slightly modify it to do your job above. i have the url > http://www.novia.net/~pschleck/auto-faq/ (but if it's outdated, > try searching for 'autofaq' and 'kluft'). That still uses inews to actually send the articles. So, I guess my question should really be for a version of inews that compiles on Solaris or SunOS 5.6 or 5.7. Andy
Re: auto posting from solaris
Author: Russ Allbery
Date: Tue, 04 Jan 2000 00:00
Date: Tue, 04 Jan 2000 00:00
15 lines
1144 bytes
1144 bytes
Mike Horwath <drechsau+usenet@yuck.net> writes: > Grab the nn sources and steal the inews out of that. Fear the nn sources. Yeah, that inews is probably okay (if very minimal in functionality), but I just had to compile the latest nn on nine platforms. Fear the nn sources. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: auto posting from solaris
Author: Russ Allbery
Date: Tue, 04 Jan 2000 00:00
Date: Tue, 04 Jan 2000 00:00
20 lines
1566 bytes
1566 bytes
Mike Horwath <drechsau+usenet@yuck.net> writes: > Russ Allbery <rra@stanford.edu> wrote: >> Yeah, that inews is probably okay (if very minimal in functionality), >> but I just had to compile the latest nn on nine platforms. >> Fear the nn sources. > Have you talked with Mr. Pins regarding this? Last I heard, he was halfway through a complete rewrite, which is exactly what it needs, so I didn't bother to bug him about it. Besides, the horribly brutal hacks that I perpetrated on the poor ULTRIX-era source code to get it to compile on modern systems could hardly have been called contributable improvements.... -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: auto posting from solaris
Author: Russ Allbery
Date: Wed, 05 Jan 2000 00:00
Date: Wed, 05 Jan 2000 00:00
37 lines
2397 bytes
2397 bytes
Michael T Pins <mtpins@visi.com> writes: > Russ Allbery <rra@stanford.edu> writes: >> Fear the nn sources. > Which platforms gave you problems? I don't recall getting any bug > reports.... Yeah, I mentioned that in another message. If I'd had any useful input, I would have sent it, but I didn't. nn 6.5.4 didn't compile cleanly on anything before I lobotomized the variadic argument mechanism, IIRC... it definitely had severe problems on Digital Unix 4.0 (where I had to make some nasty hacked changes to the terminal handling to get it to build against ncurses 4.1) and I seem to recall a series of problems in AIX and IRIX as well. And I can't get the termcap code to work right on libc5 Linux, but that could be due to weirdness in my local machine. The main problem on all platforms was that it includes syslog.h, which assumes stdarg, which redefines all of the stuff that varargs defines, and nn only understands varargs. I fixed that by turning off syslog support, for the most part, and played around with header order and #undef until I got it to build. This could be due to the fact that I was building with gcc 2.95.1 which uses its own variadic argument headers. I'm not holding it against you. :) I know you're working on a rewrite, which I'm very much looking forward to, and I was expecting it to be a pain to compile the older version. It's not really the fault of the code; it's just very old code. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: auto posting from solaris
Author: Michael T Pins
Date: Wed, 05 Jan 2000 00:00
Date: Wed, 05 Jan 2000 00:00
33 lines
2026 bytes
2026 bytes
Russ Allbery <rra@stanford.edu> writes: >Mike Horwath <drechsau+usenet@yuck.net> writes: >> Grab the nn sources and steal the inews out of that. >Fear the nn sources. >Yeah, that inews is probably okay (if very minimal in functionality), but >I just had to compile the latest nn on nine platforms. *very* minimal in funtionality. Kim stripped it down to do only what nn needed. It's going away entirely in nn7. >Fear the nn sources. Which platforms gave you problems? I don't recall getting any bug reports.... nn-6.5.4 (and now nn-6.5.5, which I released yesterday) compiles out of the box on Solaris, SunOS, NetBSD, FreeBSD, NeXTSTEP, HP-UX, and Domain/OS for sure (as that's what I have sitting around to test it on). Granted, the source code is ugly (which is why nn7 is a complete re-write) but it compiles easily on just about anything unix-like. -- ************************************************************************** * Michael T Pins | mtpins@visi.com * * keeper of the nn sources | mtpins@icaen.uiowa.edu * * ftp://ftp.visi.com/users/mtpins | #include <std.disclaimer> *
Re: auto posting from solaris
Author: Kjetil Torgrim Homme
Date: Thu, 13 Jan 2000 00:00
Date: Thu, 13 Jan 2000 00:00
19 lines
1500 bytes
1500 bytes
[Andrew Michael] > % make > cc -O -I.. -I../conf -c inews.c > "inews.c", line 32: identifier redeclared: getopt > current : function(int, pointer to pointer to char, pointer to char) returning int > previous: function(int, pointer to const pointer to char, pointer to const char) returning int : "/usr/include/stdio.h", line 329 Just remove line 32, or edit it to fit the declaration in stdio. The rest are just warnings. You will get another error, getservbyname is not present in libc, so you have to add "-lsocket -lnsl" to the link line. Kjetil T.
Re: auto posting from solaris
Author: Kjetil Torgrim Homme
Date: Thu, 13 Jan 2000 00:00
Date: Thu, 13 Jan 2000 00:00
14 lines
1141 bytes
1141 bytes
[Andrew Michael] > That still uses inews to actually send the articles. So, I guess > my question should really be for a version of inews that compiles > on Solaris or SunOS 5.6 or 5.7. Amazing! Noone has mentioned fluffy's mini-inews! <URL:http://members.xoom.com/meowing/cssri/> Kjetil T.
Re: auto posting from solaris
Author: Andrew Michael
Date: Thu, 13 Jan 2000 00:00
Date: Thu, 13 Jan 2000 00:00
29 lines
1930 bytes
1930 bytes
Dear Kjetil, Many thanks. I had tried the first part, but didn't realize how to manage the second part. It is now all up and running and I am much happier having a piece of code that I can compile. Thanks again, Andy Kjetil Torgrim Homme wrote: > [Andrew Michael] > > > % make > > cc -O -I.. -I../conf -c inews.c > > "inews.c", line 32: identifier redeclared: getopt > > current : function(int, pointer to pointer to char, pointer to char) returning int > > previous: function(int, pointer to const pointer to char, pointer to const char) returning int : "/usr/include/stdio.h", line 329 > > Just remove line 32, or edit it to fit the declaration in stdio. > > The rest are just warnings. > > You will get another error, getservbyname is not present in libc, so > you have to add "-lsocket -lnsl" to the link line. > > Kjetil T.
Re: auto posting from solaris
Author: Andrew Michael
Date: Thu, 13 Jan 2000 00:00
Date: Thu, 13 Jan 2000 00:00
56 lines
2913 bytes
2913 bytes
Thanks for the tip. I actually have had problems compiling it though.
It gives errors due to the
redefinition of things like getopt and lower. This was on SunOS 5.6
using the Sun cc compiler.
The errors are shown below in case anyone is interested. I actually got
the old SunOS 4.x inews
running by copying the executable across from a SunOS 4.x machine. So,
I have a working copy
of inews now. However, I won't be able to do that trick again in the
future as the SunOS 4.x machine
will go away soon. So, if someone does know how to solve this I would
be happy to know the answer.
Thanks again,
Andy
% make
cc -O -I.. -I../conf -c inews.c
"inews.c", line 32: identifier redeclared: getopt
current : function(int, pointer to pointer to char, pointer to
char) ret
urning int
previous: function(int, pointer to const pointer to char,
pointer to con
st char) returning int : "/usr/include/stdio.h", line 329
"inews.c", line 491: warning: identifier redeclared: lower
current : function() returning char
previous: function(char) returning char : "inews.c", line 40
"inews.c", line 522: warning: identifier redeclared: lower
current : function() returning char
previous: function(char) returning char : "inews.c", line 40
"inews.c", line 523: warning: Prototype mismatch in arg 1 for function
lower:
function : old style declaration char promoted to int
prototype: char
cc: acomp failed for inews.c
*** Error code 2
make: Fatal error: Command failed for target `inews.o'
%
Kjetil Torgrim Homme wrote:
> [Andrew Michael]
>
> > That still uses inews to actually send the articles. So, I guess
> > my question should really be for a version of inews that compiles
> > on Solaris or SunOS 5.6 or 5.7.
>
> Amazing! Noone has mentioned fluffy's mini-inews!
>
> <URL:http://members.xoom.com/meowing/cssri/>
>
> Kjetil T.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads