Hello,

I am really a newbe to Solaris and having tough time with making clamav work
I am compiling clamav-antivirus and it complian about cann't find libmilter
Error
***************************************************************************
./configure --enable-milter
checking for __gmpz_init in -lgmp... no
checking for mpz_init in -lgmp... no
configure: WARNING: ****** GNU MP 2 or newer NOT FOUND - digital signature 
support will be disabled !
checking for mi_stop in -lmilter... no
checking for library containing strlcpy... no
checking for mi_stop in -lmilter... no
configure: error: Cannot find libmilter
***************************************************************************
Info about Solaris 10 sparc 5 version of
 clamav is clamav-0.88.3 
sendmail is sendmail-8.13.7. 
Openssl is openssl-0.9.8a

When I look at the config.log file for clamav I found it was complaining about 
WRONGELFCLASS 32. So I recompiled sendmail with opessl. And then openssl was 
also complaining about wrong ELFCLASS 32 so if you see I use ssl which come 
with Solaris 10 and use the 64 bit version and it work fine but still clam 
would not work.
***************************************************************************
Clam log file
configure:13742: result: no
configure:13752: checking for mi_stop in -lmilter
configure:13787: gcc -o conftest -g -O2   -lsocket -lnsl  -lsocket -lnsl 
-lpthread -lresolv  conftest.c -lmilter   -lsocket -lnsl >&5
ld: fatal: file /usr/lib/libmilter.so: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:13793: $? = 1
configure: failed program was:
***************************************************************************

Here is  site.config.m4 configuretion file
***************************************************************************
dnl ## for libmilter ##
APPENDDEF(`conf_sendmail_ENVDEF', `-DMILTER')
APPENDDEF(`conf_libmilter_ENVDEF', `-D_FFR_MILTER_ROOT_UNSAFE')

dnl ## for starttls ##
define(`confSTDIO_TYPE', `portable')
APPENDDEF(`conf_sendmail_ENVDEF', `-DSTARTTLS -DHASURANDOMDEV')
APPENDDEF(`conf_sendmail_LIBS', `-lssl -lcrypto')
APPENDDEF(`confLIBDIRS', `-L/opt/sfw/lib/sparcv9')
APPENDDEF(`confINCDIRS', `-I/usr/local/ssl/include')

***************************************************************************
If I say
bash-3.00# whereis libmilter
libmilter: /usr/lib/libmilter.so /usr/include/libmilter
but it is not creating libmilter.a which is the linker file

I am have no clue what to do.
Any help would be really would be really appreciated.


Thanking in advance.
Max
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to