[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Hmm - warnings etc
Yesterday I compiled zmailer from CVS and I got few warnings:
1)
execute.c: In function `execute':
execute.c:480: warning: passing arg 2 of `execvp' from incompatible pointer type
Line 480:
execvp(av[0], (void**)av);
2)
dnsgetrr.c:348: warning: static declaration for `__res_hnok' follows non-static
dnsgetrr.c:349: warning: static declaration for `__res_dnok' follows non-static
static int res_hnok(cp)const char *cp;{return 1;}
static int res_dnok(cp)const char *cp;{return 1;}
3)
egcs -DHAVE_CONFIG_H -I./../../include -I../../include -I../.. -DBIFF -DRBIFF -DRBIFF_ALWAYS -c ./mailbox.c
../mailbox.c: In function `program':
../mailbox.c:2093: warning: assignment discards `const' from pointer target type
../mailbox.c:2115: warning: passing arg 2 of `execve' from incompatible pointer type
../mailbox.c:2115: warning: passing arg 3 of `execve' from incompatible pointer type
../mailbox.c: In function `appendlet':
../mailbox.c:2669: warning: assignment discards `const' from pointer target type
../mailbox.c:2683: warning: assignment discards `const' from pointer target type
2093
cp = cmdbuf+1;
2115
execve(argv[0], argv, env);
2669
s = dp->let_buffer + dp->msgbodyoffset;
2683
s = s2;
I'm using:
glibc-2.0.99-1d
egcs-1.1-1d
Zmailer compiled with:
../configure \
--with-ipv6 \
--mandir=/usr/man \
--libdir=/usr/lib \
--prefix=/usr/lib/zmailer \
--with-postoffice=/var/spool/postoffice \
--with-system-malloc \
--with-mailshare=/etc/zmailer \
--with-zconfig=/etc/zmailer/zmailer.conf \
--with-mailbin=/usr/lib/zmailer \
--with-mailvar=/etc/zmailer \
--without-fsync \
--with-ta-mmap \
--includedir=/usr/lib/zmailer
Also I have one small suggestion. In post-install.sh there is:
....
if [ ! -f ../$x ] ; then
mv $x ..
else
....
Maybe change mv to cp (mv will remove original-proto file; in some cases
original proto file can be usefull etc.)
Thats all for today ;)
PS> If You reply please don't CC: to me. I'm subscribed to zmailer list :)
PS2> I posted this message second time because:
Nov 5 10:03:34 linstar smtp[23550]: S.qEIkG113426:
to=<zmailer@nic.funet.fi>, delay=02:07:16, xdelay=00:00:05, mailer=smtp,
relay=nic.funet.fi ([128.214.248.6|25|195.164.211.2|4292]), stat=deferred
^M<<- MAIL From:<misiek@zsz2.starachowice.pl> BODY=8BITMIME SIZE=2909^M->>
501 5.1.7 where is <...> in that?
Huh ?
--
-< Arkadiusz Miśkiewicz >------------------------< Cron on IRC >-
http://www.misiek.eu.org mailto:misiek@zsz2.starachowice.pl
SysAdm ZSZ2 http://www.zsz2.starachowice.pl