Yahoo Groups archive

Milter-greylist

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

Message

Disabling ipv6 support in 2.1.2 with #undef AF_INET6 gives pending.c errors

2006-01-22 by Sysadmin

Hello.

I had problem compiling milter-greylist 2.0.2 in older linux (pending.c: 
structure has no
member named `sin6_scope_id') and Emmanuel Dreyfus suggested to disable 
ipv6
support and add an #undef AF_INET6 after the includes in pending.c and 
it worked great.

However using same trick in milter-greylist 2.1.2 gives errors:

gcc -g -O2 -Wall -D_XOPEN_SOURCE=500 -D_BSD_SOURCE   -c -o 
milter-greylist.o
milter-greylist.c
gcc -g -O2 -Wall -D_XOPEN_SOURCE=500 -D_BSD_SOURCE   -c -o pending.o 
pending.c
pending.c: In function `pending_get':
pending.c:184: `AF_INET6' undeclared (first use in this function)
pending.c:184: (Each undeclared identifier is reported only once
pending.c:184: for each function it appears in.)
pending.c: In function `pending_put':
pending.c:214: `AF_INET6' undeclared (first use in this function)
pending.c: In function `pending_del':
pending.c:278: `AF_INET6' undeclared (first use in this function)
pending.c:271: warning: `b' might be used uninitialized in this function
pending.c: In function `pending_check':
pending.c:332: `AF_INET6' undeclared (first use in this function)
pending.c:322: warning: `b' might be used uninitialized in this function
make: *** [pending.o] Error 1


-- 
Sysadmin

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.