monit-dev
[Top][All Lists]
Advanced

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

Random notes


From: Christian Hopp
Subject: Random notes
Date: Mon, 1 Sep 2003 15:39:23 +0200 (CEST)

Hi!

* I have tamed monit to be compiled with Forte C on Solaris.  There
  where mostly warning requiring castings between u-char and char.

* I have started a PLATFORMS file describing the quirks of our
  different supported platforms.  So far I have included GNU/Linux
  (glibc/uClibc/dietlibc) and Solaris (gcc/Forte).

* We should think about splitting monit.1 into monit.1 and monitrc.5.

* Monit + uClibc is working with SSL support now... it was most probably
  working before but now it is tested!

* I have compiled monit with "gcc -pedantic".  It shows some
  meaningful warnings and maybe you have some ideas how we should deal
  with these rather strange issues...

  1) strftime and %z

(...)
gcc -pedantic -c -g -O2 -Wall -D _REENTRANT -I/usr/include -DLINUX  -I.
  -I./device -I./http -I./process -I./protocols util.c -o util.o
(fixed) util.c: In function `replace_string':
(fixed) util.c:274: warning: ISO C90 forbids variable-size array `buf'
util.c: In function `get_RFC822date':
util.c:906: warning: ISO C90 does not support the `%z' strftime format
(...)

     e.g. Solaris officially doesn't do %z either but it does
     silently.  %z is a GNU extension.  So we have to find a different
     solution to be portable!  Furthermore we do use %e and %T which
     is in "Single User Specification" and not supported by ISO C98.

  2) .*printf and format strings... e.g.

(...)
gcc -pedantic -c -g -O2 -Wall -D _REENTRANT -I/usr/include -DLINUX  -I.
  -I./device -I./http -I./process -I./protocols monitor.c -o monitor.o
monitor.c: In function `help':
monitor.c:772: warning: string length `825' is greater than the
   length `509' ISO C89 compilers are required to support
monitor.c:754: warning: string length `824' is greater than the length
   `509' ISO C89 compilers are required to support
(...)

     Funny, or?  But some compilers might have limited length format
     strings.

CHopp

-- 
Christian Hopp                                email: address@hidden
Institut für Elektrische Informationstechnik             fon: +49-5323-72-2113
TU Clausthal, Leibnizstr. 28, 38678 Clausthal-Zellerf.   fax: +49-5323-72-3197
                             pgpkey: https://www.iei.tu-clausthal.de/pgp-keys/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]