Yahoo Groups archive

Milter-greylist

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

Message

Re: [milter-greylist] syncing problem on AIX

2007-01-11 by Mike Burns

FYI.  I think I've solved this problem.  It was a problem with errno not 
being set because of some threads issue.  bind() in local_addr() then wasn't 
setting errno appropriately causing syncing to fail.  I've been able to get 
syncing to work on AIX by either adding -D_THREAD_SAFE when using gcc or 
compiling with xlc_r instead.  Even though configure was adding -lpthread to 
the link step that apparently wasn't enough.  With either of these two 
options however, I had to make two small changes to list.h.  The error I get 
when compiling milter-greylist.c is (gcc)

list.h:36: error: redefinition of 'struct list'

or (xlc_r)

"list.h", line 36.11: 1506-334 (S) Identifier list has already been defined 
on line 178 of "/usr/include/grp.h".

In <grp.h> there's a struct name _grjunk within an _THREAD_SAFE #ifdef that 
defines

         struct list
         {
                 char *name;
                 struct list *nxt;
         } *_minuslist;

If I rename "list" on lines 36 and 66 in list.h to something else, then it 
compiles fine.  Those two lines in list.h are

LIST_HEAD(list, list_entry);
         struct list al_head;


On Thu, 4 Jan 2007, Mike Burns wrote:

> Hello,
>
> I'm running milter-greylist 3.0 on AIX 5.3, with sendmail 8.13.8.
> milter-greylist works fine running standalone on AIX, but when I try to sync
> it to other peer machines (Solaris 9 and Fedora Core 3) it fails to sync to
> them.  It can receive sync messages from the other machines fine.  When the
> AIX box tries to sync to the other peers the following messages are logged
>
> Dec 21 09:01:41 ibm2 mail:debug milter-greylist: sync_sender running
> Dec 21 09:01:41 ibm2 mail:err|error milter-greylist: local_addr: bind
> failed: No such file or directory
> Dec 21 09:01:41 ibm2 mail:debug milter-greylist: sync_sender sleeping, done
> 0 entries in 0.047040s
>
> I'll see one "local_addr: bind failed" message for each peer in the conf
> file.  After this the AIX box never tries to sync to the other machines
> again until I restart milter-greylist.  Actually, the other peer machines
> don't log an "Incoming MX sync connexion" from the AIX box, so it doesn't
> appear to be getting that far.
>
> I can successfully telnet from the AIX box to port 5252 on one of the other
> machines and add an entry manually so it doesn't look like a connectivity
> problem.  One other odd message I see from time to time only on the AIX box
> is
>
> Dec 21 09:14:00 ibm2 mail:debug milter-greylist: smfi_getsymval failed for
> {if_addr}
>
> Has anyone encountered these messages before and know how to resolve them or
> does anyone have suggestions on how to further debug the problem?
>
> Thanks.
>
> - Mike
>
> --------------------------------------------------------------------------
> Mike Burns                                     Emerging Technologies Group
> burns@...                  Academic Services and Emerging Technologies
> +1 814 863 5606                          The Pennsylvania State University
>

- Mike

--------------------------------------------------------------------------
Mike Burns                                     Emerging Technologies Group
burns@...                  Academic Services and Emerging Technologies
+1 814 863 5606                          The Pennsylvania State University

Attachments

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.