Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Thread

Compiling with Bind9

Compiling with Bind9

2006-08-07 by Jack L. Stone

Just tried to use this compile config to compile gl-2.1.12 with Bind9:

./configure --with-user=smmsp --enable-dnsrbl --with-libbind && make

During the build with Bind9, I noticed these warnings. Are they fatal?
Compliled finished okay but, I haven't installed yet:

=================================================
config.status: creating config.h
gcc -g -O2 -Wall -Iyes/include/bind -Iyes/include -D_BSD_SOURCE -c
milter-greylist.c
gcc -g -O2 -Wall -Iyes/include/bind -Iyes/include -D_BSD_SOURCE -c pending.c
gcc -g -O2 -Wall -Iyes/include/bind -Iyes/include -D_BSD_SOURCE -c sync.c
sync.c: In function `sync_send':
sync.c:283: warning: int format, different type arg (arg 4)
sync.c:295: warning: int format, different type arg (arg 5)
sync.c:313: warning: int format, different type arg (arg 5)
sync.c:329: warning: int format, different type arg (arg 5)
sync.c:339: warning: int format, different type arg (arg 5)
sync.c: In function `peer_connect':
sync.c:397: warning: int format, different type arg (arg 5)
sync.c:454: warning: int format, different type arg (arg 5)
sync.c:536: warning: int format, different type arg (arg 5)
sync.c:549: warning: int format, different type arg (arg 5)
sync.c:563: warning: int format, different type arg (arg 5)
sync.c:571: warning: int format, different type arg (arg 5)
sync.c: In function `sync_queue':
sync.c:1232: warning: int format, different type arg (arg 4)
sync.c: In function `select_protocol':
sync.c:1415: warning: int format, different type arg (arg 5)
sync.c:1424: warning: int format, different type arg (arg 5)
gcc -g -O2 -Wall -Iyes/include/bind -Iyes/include -D_BSD_SOURCE -c dnsrbl.c
gcc -g -O2 -Wall -Iyes/include/bind -Iyes/include -D_BSD_SOURCE -c list.c
bison -y -p`echo conf_yacc.c|sed 's/^\([^_]\{1,\}_\).*$/\1/'` conf_yacc.y
mv y.tab.c conf_yacc.c
flex -oconf_lex.c conf_lex.l
gcc -g -O2 -Wall -Iyes/include/bind -Iyes/include -D_BSD_SOURCE -c conf_yacc.c
bison -y -p`echo dump_yacc.c|sed 's/^\([^_]\{1,\}_\).*$/\1/'` dump_yacc.y

etc, etc........... all okay beyond this
=============================================

(^_^)
Happy trails,
Jack L. Stone

System Admin
Sage-american

Re: [milter-greylist] Compiling with Bind9

2006-08-07 by Emmanuel Dreyfus

On Mon, Aug 07, 2006 at 12:06:03PM -0500, Jack L. Stone wrote:
> sync.c:283: warning: int format, different type arg (arg 4)
> sync.c:295: warning: int format, different type arg (arg 5)
> sync.c:313: warning: int format, different type arg (arg 5)
> sync.c:329: warning: int format, different type arg (arg 5)
> sync.c:339: warning: int format, different type arg (arg 5)

It's always q_len. Does it improves with that?

Index: sync.h
===================================================================
RCS file: /cvsroot/milter-greylist/sync.h,v
retrieving revision 1.17
diff -U2 -r1.17 sync.h
--- sync.h      1 Aug 2006 14:55:20 -0000       1.17
+++ sync.h      7 Aug 2006 19:11:30 -0000
@@ -69,5 +69,5 @@
        struct synclist p_deferred;
        LIST_ENTRY(peer) p_list;
-       size_t p_qlen;
+       unsigned int p_qlen;
        int p_flags;
        int p_vers;

-- 
Emmanuel Dreyfus
manu@...

Re: [milter-greylist] Compiling with Bind9

2006-08-07 by Jack L. Stone

At 07:11 PM 8.7.2006 +0000, you wrote:
>On Mon, Aug 07, 2006 at 12:06:03PM -0500, Jack L. Stone wrote:
>> sync.c:283: warning: int format, different type arg (arg 4)
>> sync.c:295: warning: int format, different type arg (arg 5)
>> sync.c:313: warning: int format, different type arg (arg 5)
>> sync.c:329: warning: int format, different type arg (arg 5)
>> sync.c:339: warning: int format, different type arg (arg 5)
>
>It's always q_len. Does it improves with that?
>
>Index: sync.h
>===================================================================
>RCS file: /cvsroot/milter-greylist/sync.h,v
>retrieving revision 1.17
>diff -U2 -r1.17 sync.h
>--- sync.h      1 Aug 2006 14:55:20 -0000       1.17
>+++ sync.h      7 Aug 2006 19:11:30 -0000
>@@ -69,5 +69,5 @@
>        struct synclist p_deferred;
>        LIST_ENTRY(peer) p_list;
>-       size_t p_qlen;
>+       unsigned int p_qlen;
>        int p_flags;
>        int p_vers;
>
>-- 
>Emmanuel Dreyfus
>manu@...
>

Looks like the patch failed:

root@sageweb>> patch < ../patch.2.1.12
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: sync.h
|===================================================================
|RCS file: /cvsroot/milter-greylist/sync.h,v
|retrieving revision 1.17
|diff -U2 -r1.17 sync.h
|--- sync.h      1 Aug 2006 14:55:20 -0000       1.17
|+++ sync.h      7 Aug 2006 19:11:30 -0000
--------------------------
Patching file sync.h using Plan A...
Hunk #1 failed at 69.
1 out of 1 hunks failed--saving rejects to sync.h.rej
done

(^_^)
Happy trails,
Jack L. Stone

System Admin
Sage-american

Re: [milter-greylist] Compiling with Bind9

2006-08-07 by Emmanuel Dreyfus

On Mon, Aug 07, 2006 at 04:14:43PM -0500, Jack L. Stone wrote:
> Looks like the patch failed:
 
I beleive you'll be able to apply it by hand.

-- 
Emmanuel Dreyfus
manu@...

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.