Yahoo Groups archive

Milter-greylist

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

Message

Re: [milter-greylist] Compile milter-greylist with 64 bit compiler on Solaris

2007-02-20 by Nerijus Baliunas

On Tue, 20 Feb 2007 01:37:47 -0800 "An.H.Nguyen" <AnNguyen251@...> wrote:

> 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

So you are linking with -m64 only, I think you should recompile with this flag all the files too.
I.e. add -m64 to Makefile or CFLAGS when configuring.

Regards,
Nerijus

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.