Re: [Clamav-users] FreeBSD ./configure --enable-milter = Cannot find libmilter

2008-05-01 Thread Matus UHLAR - fantomas
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, [EMAIL PROTECTED] ; 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


Re: [Clamav-users] FreeBSD ./configure --enable-milter = Cannot find libmilter

2008-04-30 Thread Nigel Horne

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
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] FreeBSD ./configure --enable-milter = Cannot find libmilter

2008-04-30 Thread Matthias Häker


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


Re: [Clamav-users] FreeBSD ./configure --enable-milter = Cannot find libmilter

2008-04-29 Thread Jobst Schmalenbach

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 ([EMAIL PROTECTED]) 
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 [EMAIL PROTECTED]
 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, [EMAIL PROTECTED], 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


Re: [Clamav-users] FreeBSD ./configure --enable-milter = Cannot find libmilter

2008-04-29 Thread Jim Preston
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 ([EMAIL PROTECTED]) 
 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 [EMAIL PROTECTED]
 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 butI 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


Re: [Clamav-users] FreeBSD ./configure --enable-milter = Cannot find libmilter

2008-04-29 Thread Dennis Peterson
Jim Preston wrote:

 I had a similar problem and found an answer on google. I would post the 
 link butI 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