Yahoo Groups archive

Milter-greylist

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

Message

Re: [milter-greylist] Solaris 2.6 SPARC

2004-09-28 by manu@netbsd.org

Sutherland, James <jsutherl@...> wrote:

A few suggestions. Maybe they don't match the code, I don't have it at
hand yet (mmmmm, Internet at 56kb/s).

> root@hns1 [10:45am] greylist/milter-greylist-1.5.8 5> make
> gcc -g -O2 -Wall -D_XOPEN_SOURCE=500 -D_BSD_SOURCE   -c
> milter-greylist.c -o mil
> ter-greylist.o
> In file included from /usr/include/pthread.h:15,
>                  from dump.h:42,
>                  from milter-greylist.c:69:
> /usr/include/sched.h:51: warning: `struct timespec' declared inside
> parameter li
> st

Try including <sys/time.h> before <pthread.h> in dump.h

> /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/include
> /sys/stream.h:5,
>                  from /usr/include/netinet/in.h:38,
>                  from dump.h:45,
>                  from milter-greylist.c:69:
> /usr/include/sys/resource.h:115: field `ru_utime' has incomplete type
> /usr/include/sys/resource.h:116: field `ru_stime' has incomplete type

What's tge type of the field? Where is it defined? Probably in
<sys/types.h>? Try adding the header before including <netinet/in.h>

> In file included from /usr/include/sys/stream.h:21,
>                  from
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/include
> /sys/stream.h:5,
>                  from /usr/include/netinet/in.h:38,
>                  from dump.h:45,
>                  from milter-greylist.c:69:
> /usr/include/sys/vnode.h:87: parse error before `u_short'

That one will be fixed by including <sys/types.h>

Let's try to fix the first ones, maybe the next errors will disapear.

-- 
Emmanuel Dreyfus
Il y a 10 sortes de personnes dans le monde: ceux qui comprennent 
le binaire et ceux qui ne le comprennent pas.
manu@...

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.