Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: users

FreeBSD ./configure --enable-milter = Cannot find libmilter

 

 

ClamAV users RSS feed   Index | Next | Previous | View Threaded


mhaeker at its-h

Apr 29, 2008, 6:18 AM

Post #1 of 7 (115 views)
Permalink
FreeBSD ./configure --enable-milter = Cannot find libmilter

Hi

#clamav-0.93

i want to use clamav-milter on a FreeBsd 4.8 System but if i try
./configure --enable-milter
i get
.....
checking whether setpgrp takes no argument... no
checking for sendmail... /usr/sbin/sendmail
checking for libgmp... yes
checking how to link with libgmp... -lgmp
checking for libiconv_open in -liconv... no
checking for iconv... no
checking whether in_port_t is defined... yes
checking for in_addr_t definition... yes
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

i searched and i found

http://lurker.clamav.net/message/20070716.090500.e2921603.de.html

but it doesn't help

i have sendmail_8.13.8 with milter support
Version 8.13.8
Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7
NAMED_BIND NETINET NETUNIX NEWDB NIS PIPELINING SCANF USERDB
XDEBUG

and the files in /usr/lib/
libmilter.a
libmilter.so
libmilter.so.2
libmilter_p.a


i cannot change/ upgrade Sendmail or FreeBSD

anybody any clue ??


must have something to do with:

dnl --enable-milter
if test "$have_milter" = "yes"; then
dnl libmilter checking code adapted from spamass-milter by
dnl Tom G. Christensen <tgc[at]statsbiblioteket.dk>
dnl Check for libmilter and it's header files in the usual locations
save_LDFLAGS="$LDFLAGS"
CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lpthread"
if test -d /usr/lib/libmilter ; then
CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -L/usr/lib/libmilter"
fi
LDFLAGS="$LDFLAGS -lmilter $CLAMAV_MILTER_LIBS"
AC_CHECK_LIB([milter],[mi_stop],[CLAMAV_MILTER_LIBS="-lmilter
$CLAMAV_MILTER_LIBS"],[.
dnl Older sendmails require libsm or libsmutil for support functions
AC_SEARCH_LIBS([strlcpy], [sm smutil], [test "$ac_cv_search_strlcpy"
= "none required" || CLAMAV_MILTER_XLIB="$ac_cv_search_strlcpy"])
LDFLAGS="$save_LDFLAGS $CLAMAV_MILTER_LIBS $CLAMAV_MILTER_XLIB"
$as_unset ac_cv_lib_milter_mi_stop
AC_CHECK_LIB([milter],[mi_stop],[CLAMAV_MILTER_LIBS="-lmilter
$CLAMAV_MILTER_XLIB $CLAMAV_MILTER_LIBS"],[
AC_MSG_ERROR([Cannot find libmilter])
])
])
LDFLAGS="$save_LDFLAGS"
AC_CHECK_HEADERS([libmilter/mfapi.h],[have_milter="yes"],[
AC_MSG_ERROR([Please install mfapi.h from the sendmail distribution])
])
fi



Matthias

--

IT Service Häker
Matthias Häker
Hein Hoyer Straße 64
20359 Hamburg
Tel: +49 (0)40 98238807
Tel: +49 (0)40 35077502
Fax: +49 (0)40 52596583
Mob: +49 (0)176 65571482
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


jobst at barrett

Apr 29, 2008, 4:16 PM

Post #2 of 7 (109 views)
Permalink
Re: FreeBSD ./configure --enable-milter = Cannot find libmilter [In reply to]

I have not run FreeBsd for years, but it looks you don not have the
sendmail development kit. On a fedora system you need to do something
like:

yum install sendmail-devel


Jobst





On Tue, Apr 29, 2008 at 03:18:31PM +0200, Matthias Häker (mhaeker[at]its-h.de) wrote:
> Hi
>
> #clamav-0.93
>
> i want to use clamav-milter on a FreeBsd 4.8 System but if i try
> ./configure --enable-milter
> i get
> .....
> checking whether setpgrp takes no argument... no
> checking for sendmail... /usr/sbin/sendmail
> checking for libgmp... yes
> checking how to link with libgmp... -lgmp
> checking for libiconv_open in -liconv... no
> checking for iconv... no
> checking whether in_port_t is defined... yes
> checking for in_addr_t definition... yes
> 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
>
> i searched and i found
>
> http://lurker.clamav.net/message/20070716.090500.e2921603.de.html
>
> but it doesn't help
>
> i have sendmail_8.13.8 with milter support
> Version 8.13.8
> Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7
> NAMED_BIND NETINET NETUNIX NEWDB NIS PIPELINING SCANF USERDB
> XDEBUG
>
> and the files in /usr/lib/
> libmilter.a
> libmilter.so
> libmilter.so.2
> libmilter_p.a
>
>
> i cannot change/ upgrade Sendmail or FreeBSD
>
> anybody any clue ??
>
>
> must have something to do with:
>
> dnl --enable-milter
> if test "$have_milter" = "yes"; then
> dnl libmilter checking code adapted from spamass-milter by
> dnl Tom G. Christensen <tgc[at]statsbiblioteket.dk>
> dnl Check for libmilter and it's header files in the usual locations
> save_LDFLAGS="$LDFLAGS"
> CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lpthread"
> if test -d /usr/lib/libmilter ; then
> CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -L/usr/lib/libmilter"
> fi
> LDFLAGS="$LDFLAGS -lmilter $CLAMAV_MILTER_LIBS"
> AC_CHECK_LIB([milter],[mi_stop],[CLAMAV_MILTER_LIBS="-lmilter
> $CLAMAV_MILTER_LIBS"],[.
> dnl Older sendmails require libsm or libsmutil for support functions
> AC_SEARCH_LIBS([strlcpy], [sm smutil], [test "$ac_cv_search_strlcpy"
> = "none required" || CLAMAV_MILTER_XLIB="$ac_cv_search_strlcpy"])
> LDFLAGS="$save_LDFLAGS $CLAMAV_MILTER_LIBS $CLAMAV_MILTER_XLIB"
> $as_unset ac_cv_lib_milter_mi_stop
> AC_CHECK_LIB([milter],[mi_stop],[CLAMAV_MILTER_LIBS="-lmilter
> $CLAMAV_MILTER_XLIB $CLAMAV_MILTER_LIBS"],[
> AC_MSG_ERROR([Cannot find libmilter])
> ])
> ])
> LDFLAGS="$save_LDFLAGS"
> AC_CHECK_HEADERS([libmilter/mfapi.h],[have_milter="yes"],[
> AC_MSG_ERROR([Please install mfapi.h from the sendmail distribution])
> ])
> fi
>
>
>
> Matthias
>
> --
>
> IT Service Häker
> Matthias Häker
> Hein Hoyer Straße 64
> 20359 Hamburg
> Tel: +49 (0)40 98238807
> Tel: +49 (0)40 35077502
> Fax: +49 (0)40 52596583
> Mob: +49 (0)176 65571482
> _______________________________________________
> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
> http://lurker.clamav.net/list/clamav-users.html

--
C is a write-only language.

| |0| | Jobst Schmalenbach, jhs[at]barrett.com.au, General Manager
| | |0| Barrett Consulting Group P/L & The Meditation Room P/L
|0|0|0| +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


jimlinux at commspeed

Apr 29, 2008, 8:38 PM

Post #3 of 7 (109 views)
Permalink
Re: FreeBSD ./configure --enable-milter = Cannot find libmilter [In reply to]

Jobst Schmalenbach wrote:
> I have not run FreeBsd for years, but it looks you don not have the
> sendmail development kit. On a fedora system you need to do something
> like:
>
> yum install sendmail-devel
>
>
> Jobst
>
>
>
>
>
> On Tue, Apr 29, 2008 at 03:18:31PM +0200, Matthias Häker (mhaeker[at]its-h.de) wrote:
>
>> Hi
>>
>> #clamav-0.93
>>
>> i want to use clamav-milter on a FreeBsd 4.8 System but if i try
>> ./configure --enable-milter
>> i get
>> .....
>> checking whether setpgrp takes no argument... no
>> checking for sendmail... /usr/sbin/sendmail
>> checking for libgmp... yes
>> checking how to link with libgmp... -lgmp
>> checking for libiconv_open in -liconv... no
>> checking for iconv... no
>> checking whether in_port_t is defined... yes
>> checking for in_addr_t definition... yes
>> 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
>>
>> i searched and i found
>>
>> http://lurker.clamav.net/message/20070716.090500.e2921603.de.html
>>
>> but it doesn't help
>>
>> i have sendmail_8.13.8 with milter support
>> Version 8.13.8
>> Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7
>> NAMED_BIND NETINET NETUNIX NEWDB NIS PIPELINING SCANF USERDB
>> XDEBUG
>>
>> and the files in /usr/lib/
>> libmilter.a
>> libmilter.so
>> libmilter.so.2
>> libmilter_p.a
>>
>>
>> i cannot change/ upgrade Sendmail or FreeBSD
>>
>> anybody any clue ??
>>
>>
>> must have something to do with:
>>
>> dnl --enable-milter
>> if test "$have_milter" = "yes"; then
>> dnl libmilter checking code adapted from spamass-milter by
>> dnl Tom G. Christensen <tgc[at]statsbiblioteket.dk>
>> dnl Check for libmilter and it's header files in the usual locations
>> save_LDFLAGS="$LDFLAGS"
>> CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lpthread"
>> if test -d /usr/lib/libmilter ; then
>> CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -L/usr/lib/libmilter"
>> fi
>> LDFLAGS="$LDFLAGS -lmilter $CLAMAV_MILTER_LIBS"
>> AC_CHECK_LIB([milter],[mi_stop],[CLAMAV_MILTER_LIBS="-lmilter
>> $CLAMAV_MILTER_LIBS"],[.
>> dnl Older sendmails require libsm or libsmutil for support functions
>> AC_SEARCH_LIBS([strlcpy], [sm smutil], [test "$ac_cv_search_strlcpy"
>> = "none required" || CLAMAV_MILTER_XLIB="$ac_cv_search_strlcpy"])
>> LDFLAGS="$save_LDFLAGS $CLAMAV_MILTER_LIBS $CLAMAV_MILTER_XLIB"
>> $as_unset ac_cv_lib_milter_mi_stop
>> AC_CHECK_LIB([milter],[mi_stop],[CLAMAV_MILTER_LIBS="-lmilter
>> $CLAMAV_MILTER_XLIB $CLAMAV_MILTER_LIBS"],[
>> AC_MSG_ERROR([Cannot find libmilter])
>> ])
>> ])
>> LDFLAGS="$save_LDFLAGS"
>> AC_CHECK_HEADERS([libmilter/mfapi.h],[have_milter="yes"],[
>> AC_MSG_ERROR([Please install mfapi.h from the sendmail distribution])
>> ])
>> fi
>>
>>
>>
>> Matthias
>>
>> --
>>
>> IT Service Häker
>> Matthias Häker
>> Hein Hoyer Straße 64
>> 20359 Hamburg
>> Tel: +49 (0)40 98238807
>> Tel: +49 (0)40 35077502
>> Fax: +49 (0)40 52596583
>> Mob: +49 (0)176 65571482
>> _______________________________________________
>> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
>> http://lurker.clamav.net/list/clamav-users.html
>>
>
>
I had a similar problem and found an answer on google. I would post the
link but....I can not find it again. So paraphrasing what I found:
Download and untar latest Sendmail.
Go to the libmilter directory
run make and make install
rerun configure for Clamav

I have used this solution on three machines (fedora not FreeBSD) and it
should solve your problem

Jim Preston
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


dennispe at inetnw

Apr 29, 2008, 9:16 PM

Post #4 of 7 (109 views)
Permalink
Re: FreeBSD ./configure --enable-milter = Cannot find libmilter [In reply to]

Jim Preston wrote:

> I had a similar problem and found an answer on google. I would post the
> link but....I can not find it again. So paraphrasing what I found:
> Download and untar latest Sendmail.
> Go to the libmilter directory
> run make and make install
> rerun configure for Clamav
>
> I have used this solution on three machines (fedora not FreeBSD) and it
> should solve your problem

You actually run ./Build install in the libmilter subdirectory, and it
really is that simple, usually. You can also run ./Build -n install to
see what it is going to do without actually doing it.

dp
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


njh at bandsman

Apr 30, 2008, 2:25 AM

Post #5 of 7 (101 views)
Permalink
Re: FreeBSD ./configure --enable-milter = Cannot find libmilter [In reply to]

See .../clamav-milter/INSTALL, that answers all.

Look in particular for the paragraph starting:

Solaris 9 and FreeBSD5 have milter support in the supplied sendmail...

It is relevant for your FreeBSD4 as well as FreeBSD4.

-Nigel


mhaeker at its-h

Apr 30, 2008, 7:50 AM

Post #6 of 7 (100 views)
Permalink
Re: FreeBSD ./configure --enable-milter = Cannot find libmilter [In reply to]

Nigel Horne schrieb:
> See .../clamav-milter/INSTALL, that answers all.
>
> Look in particular for the paragraph starting:
>
> Solaris 9 and FreeBSD5 have milter support in the supplied sendmail...
>
> It is relevant for your FreeBSD4 as well as FreeBSD4.
>
> -Nigel
>

i read this and i try but no luck .-)

i found
http://www.gossamer-threads.com/lists/clamav/users/37882
and
my config.log is on
http://its-h.de/service/config.log


and there i found

configure:16431: result: no
configure:16441: checking for mi_stop in -lmilter
configure:16476: gcc -o conftest -g -O2 -lpthread conftest.c
-lmilter >&5
/usr/libexec/elf/ld: cannot find -lpthread
configure:16482: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "clamav"
| #define PACKAGE_TARNAME "clamav"
| #define PACKAGE_VERSION "devel"
| #define PACKAGE_STRING "clamav devel"
| #define PACKAGE_BUGREPORT "http

so it looks for me as if the exit code of
configure:16476: gcc -o conftest -g -O2 -lpthread conftest.c
-lmilter >&5
/usr/libexec/elf/ld: cannot find -lpthread

brings the whole thing to Error ?

coud this be reason that ./configure --enable-milter fails


Matthias
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


uhlar at fantomas

May 1, 2008, 7:58 AM

Post #7 of 7 (93 views)
Permalink
Re: FreeBSD ./configure --enable-milter = Cannot find libmilter [In reply to]

On 30.04.08 16:50, Matthias Häker wrote:
> configure:16431: result: no
> configure:16441: checking for mi_stop in -lmilter
> configure:16476: gcc -o conftest -g -O2 -lpthread conftest.c
> -lmilter >&5
> /usr/libexec/elf/ld: cannot find -lpthread

are you compiling from ports on FreeBSD 4? the ports Makefile doesn't
support FreeBSD4 where you need -pthread instead of -lpthread

--
Matus UHLAR - fantomas, uhlar[at]fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Christian Science Programming: "Let God Debug It!".
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

ClamAV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.