[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] Newsq problems on FreeBSD



Joerg Dietrich wrote:

> 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?

My gut feeling is that on FreeBSD the size of st.st_size will be 8 bytes,
the gcc however treats longs as exactly 4 bytes whereas int may be treated
as 8 bytes. I'll check that with Ron separately.

(I didn't have a look into the patch yet.)

--Cornelius.

-- 
/* Cornelius Krasel, U Wuerzburg, Dept. of Pharmacology, Versbacher Str. 9 */
/* D-97078 Wuerzburg, Germany   email: phak004@xxxxxxxxxxxxxxxxxxxxxx  SP4 */
/* "Science is the game we play with God to find out what His rules are."  */

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list