[milters] Archive

Lists Index Date Thread Search

Article: 912
From: Skull
Date: 2010-07-19 15:46:02 -0400
Subject: Re: milter-ahead with Debian Testing

On 7/17/10 1:23 PM, Jon Rowlan wrote:
> Hi all,
> 
> I am working with Debian Testing (Squeeze) and sendmail 8.14.3 and
> milter-ahead 1.1
> 
> I am having a problem getting the correct LIBS definition to build
> milter-ahead.
> 
> The result of ./configure gives ...
> 
> LibSnert/1.61.829
> Copyright 1996, 2006 by Anthony Howe. All rights reserved.
> 
>   Platform..........: Linux gcc
>   pthread & mutex...: yes yes
>   Semaphore.........: SYSTEMV_API
>   Shared Memory.....: SYSTEMV_API
>   Time..............: POSIX_API
>   Berkeley DB.......: 4.8
>   libmilter.........: required
>   CFLAGS............: -D_REENTRANT -O2 -Wall -I${top_srcdir}/../../
>   LDFLAGS...........: -L${top_srcdir}/../../lib
>   LIBS..............: -lpam -lrt -lpthread -ldb-4.8 -ldl
> 
> Whereas on a previous build on an earlier platform I get ..
> 
> LibSnert/1.61.829
> Copyright 1996, 2006 by Anthony Howe. All rights reserved.
> 
>   Platform..........: Linux gcc
>   pthread & mutex...: yes yes
>   Semaphore.........: SYSTEMV_API
>   Shared Memory.....: SYSTEMV_API
>   Time..............: POSIX_API
>   Berkeley DB.......: 4.4
>   libmilter.........: yes
>   CFLAGS............: -D_REENTRANT -I
> /usr/local/BerkeleyDB.4.4/include/. -O2 -Wall
> -I${top_srcdir}/../../include
>   LDFLAGS...........: -L /usr/local/BerkeleyDB.4.4/lib/.
> -L${top_srcdir}/../../lib
>   LIBS..............: -lmilter -lpam -lrt -lpthread -ldb-4.4 -ldl
> 
> I have, as suggested in a previous article, rebuilt clean and this has
> made no difference.
> 
> I don't know which part of the configure is failing but comparing my
> logs from way back and now, this looks like it may be the cause:
> 
> configure:15882: $? = 0
> configure:15885: test -s conftest.o
> configure:15888: $? = 0
> configure:15948: result: yes
> configure:16040: checking for smfi_main in -lmilter
> configure:16071: gcc -o conftest -D_REENTRANT -O2 -Wall
> -I${top_srcdir}/../../include   -L${top_srcdir
> }/../../lib  conftest.c -lmilter  -lpam -lrt -lpthread -ldb-4.8 -ldl
>> &5
> /usr/bin/ld: cannot find -lmilter
> 
> Can anyone advise?

Create a symlink in /usr/lib/libmilter.so pointing to
/usr/lib/libmilter/libmilter.so, then restart the install procedure from
libsnert.

It's expected to be there but debian systems do not create it.

-- 
Paranoia is a disease unto itself. And may I add: the person standing
next to you may not be who they appear to be, so take precaution.
-----------------------------------------------------------------------------
http://bofhskull.wordpress.com/

Lists Index Date Thread Search