[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [leafnode-list] Newsq problems on FreeBSD
It being T-day I am just reading mail.. Will sit down later with this to
see what info I can dig up.
Like to wish everyone a Happy Thanksgiving.
Ron
On Thu, 25 Nov 1999, Joerg Dietrich was heard blurting out:
> On Tue, Nov 23, 1999 at 11:38:10AM +0100, Cornelius Krasel wrote:
> > Here is the output of the make concerning newsq:
> >
> > /newsq.c: In function `main':
> > /newsq.c:50: warning: long unsigned int format, different type arg (arg 3)
>
> Same as on HP/UX.
>
> > Here is what the outpu looks like when you run newsq:
> >
> > insane-the> ./newsq
> > 25671-943312396-1: 608 bytes, spooled (null) From: Mon Nov 22 15:13:16 1999
> >
> > Ngrp: insane@xxxxxxxxxxxxxxxxxxxxx (Ron Rosson)
> > Subj: sdnet.test
> >
> > ----- End of forwarded message from Ron 'The InSaNe One' Rosson -----
> >
> > What strikes me as particularly odd is the odd reference to a nullpointer
>
> This is arcane, to say the least. A patch which remedies the warning on
> HP/UX is attached (as suggested by Mathias Andree). However, newsq works
> on HP/UX, even without this patch.
> Ron, could you test, if this patch gives you a working newsq? If
> not, could you please compile with -pedantic and tell us what the output
> is. It also could be helpful to know which compiler you are using; are
> you sure you have the appropriate binutils (if gcc)? Could you also
> compile without -O flags? Is there a bug list for your libc?
> Any other suggestions?
>
> Happy thanksgiving,
> Jo:rg
>
> --
> Fortune cookie of the day:
> "The sixties were good to you, weren't they?"
> -- George Carlin
> [-- mutt.octet.filter file type: "gzip compressed data, deflated, original filename, last modified: Wed Nov 24 21:44:57 1999, max compression, os: Unix" --]
>
> --- newsq.c.orig Sun Nov 21 10:48:21 1999
> +++ newsq.c Thu Nov 25 00:03:31 1999
> @@ -41,12 +41,13 @@
> else if ( S_ISREG( st.st_mode ) ) {
> f = fopen( de->d_name, "r" );
> if ( f ) {
> - printf("%s: %8lu bytes, spooled %s\tFrom: %-.66s\n"
> + printf("%s: %8li bytes, spooled %s\tFrom: %-.66s\n"
> "\tNgrp: %-.66s\n\tSubj: %-.66s\n",
> - de->d_name, st.st_size, ctime(&st.st_mtime),
> - fgetheader( f, "From:" ),
> - fgetheader( f, "Newsgroups:" ),
> - fgetheader( f, "Subject:") );
> + de->d_name, (long int) st.st_size,
> + ctime(&st.st_mtime),
> + fgetheader( f, "From:" ),
> + fgetheader( f, "Newsgroups:" ),
> + fgetheader( f, "Subject:") );
> fclose(f);
> }
> else
--
-------------------------------------------------------------------
Ron Rosson ... and a UNIX user said ...
The InSaNe One rm -rf *
insane@xxxxxxxxxxxxx and all was /dev/null and *void()
-------------------------------------------------------------------
Adults are just kids that owe money
--
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list