Yahoo Groups archive

Milter-greylist

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

Message

Compile milter-greylist with 64 bit compiler on Solaris

2007-02-20 by An.H.Nguyen

Milter-greylist crashes every 30 minutes on my Solaris 8 with "out of memory problem" and "too many open files error".
So I try to recompile it with 64 bit compiler.
I've changed the Makefile to enable 64 bit
(CFLAGS= -m64 -g -O2 -Wall -D_REENTRANT -D__EXTENSIONS__ -D_BSD_SOURCE)
I'm getting stuck with this error:
ld: warning: file /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/../../../libmilter.a(main.o): wrong ELF class: ELFCLASS32
Does anyone know how to get around this problem?
Thanks,
An Nguyen
bash-2.03# make
gcc -o milter-greylist milter-greylist.o pending.o sync.o dnsrbl.o list.o macro.o conf_yacc.o dump_yacc.o conf.o autowhite.o dump.o spf.o acl.o -lpthread -lsocket -lresolv -lnsl -lmilter
ld: fatal: file milter-greylist.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to milter-greylist
collect2: ld returned 1 exit status
make: *** [milter-greylist] Error 1
bash-2.03# gcc -m64 -o milter-greylist milter-greylist.o pending.o sync.o dnsrbl.o list.o macro.o conf_yacc.o dump_yacc.o conf.o autowhite.o dump.o spf.o acl.o -lpthread -lsocket -lresolv -lnsl -lmilter
ld: warning: file /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/../../../libmilter.a(main.o): wrong ELF class: ELFCLASS32
Undefined ; first referenced
symbol in file
smfi_setconn milter-greylist.o
smfi_addheader milter-greylist.o
smfi_getpriv milter-greylist.o
smfi_getsymval milter-greylist.o
smfi_main milter-greylist.o
smfi_setreply milter-greylist.o
smfi_setpriv ; milter-greylist.o
smfi_register ; milter-greylist.o
ld: fatal: Symbol referencing errors. No output written to milter-greylist
collect2: ld returned 1 exit status

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.