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

Re: [leafnode-list] Leafnode-1.9.5b2



Joerg Dietrich wrote:

> On Sun, Nov 21, 1999 at 07:07:55PM +0100, Cornelius Krasel wrote:
> > Ron Rosson got a warning when compiling newsq on FreeBSD. It later
> > crashed indeed on him. Can anyone else on this list reproduce this?
> > (I can't.) The warning concerns the printf() statement which produces
> > the newsq output, but I don't remember the exact wording of the
> > message.
> 
> This one?
> /newsq.c: In function `main':
> /newsq.c:49: warning: long unsigned int format, unsigned int arg (arg
> 3)

Yes, I think so. Good that it also happens on HP/UX, because I have access
to one :-) (st.st_size is defined as off_t; unfortunately it is not at
all clear without parsing the config files whether off_t is long or not.
I guessed it is, but it probably depends on the file system.)

> 28 % uname -a
> HP-UX shp2 B.10.20 A 9000/780 2006109567 two-user license
> 
> I also get a lot of 
> cc1: warning: `-g' not supported by this configuration of GCC
> on this system.

Hm. Maybe we can fix this using autoconf.

> I also tried to compile it on
> 132 % uname -a
> ULTRIX spckln 4.3 1 RISC
> 
> but it said 
> leafnode.h:42: #error "Leafnode does not compile with BSD 4.2 syslog"

Which is true. The problem is that I don't have information about BSD 4.2
syslog, therefore it's not easy to fix the error. If I am correctly
informed, this syslog variant doesn't support different "facilities"
and "priorities" for logging.

> No problems, except
> miscutil.c: In function `chdirgroup':
> miscutil.c:267: warning: subscript has type `char'
> on
> bash$ uname -a
> OSF1 cipw04.physik.uni-bonn.de V4.0 878 alpha

This is something for Matthias Andree, I guess (he fixed a lot of similar
warnings with isascii() :-) The offending line is

*p = tolower(*p);

and p is a pointer to char. However, tolower() is defined as
int tolower( int ), so it probably involves some kind of casting.

> miscutil.c: In function `lockfile_exists':
> miscutil.c:131: warning: int format, pid_t arg (arg 3)

fprintf( lf, "%d", getpid() );

Hmmm. Casting again, I guess.

> /fetchnews.c: In function `main':
> /fetchnews.c:1572: warning: function declaration isn't a prototype
> on
> [jdietri1@larry /tmp/leafnode-1.9.5b2]uname -a
> SunOS larry 5.6 Generic_105181-09 sun4u sparc SUNW,Ultra-4

This confuses me. The line is

if ( signal( SIGINT, sig_int ) == SIG_ERR )

where sig_int is a function. How does one have to write this correctly?

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