Is this problem because my libmilter.a is a 32 bit
file?
Sendmail libmilter readme does not give me a clue on how to compile it into 64 bit...
Sendmail libmilter readme does not give me a clue on how to compile it into 64 bit...
Anyone please?
----- Original Message -----From: An.H.NguyenSent: Tuesday, February 20, 2007 1:37 AMSubject: [milter-greylist] Compile milter-greylist with 64 bit compiler on Solaris
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: ELFCLASS32Does anyone know how to get around this problem?Thanks,An Nguyenbash-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