[milters] Archive

Lists Index Date Thread Search

Article: 916
From: Jon Rowlan
Date: 2010-07-20 05:19:24 -0400
Subject: RE: milter-ahead with Debian Testing

-----Original Message-----
From: milters@milter.info [mailto:milters@milter.info] On Behalf Of
Skull
Sent: 19 July 2010 20:46
To: milters@milter.info
Subject: [milters] 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.

Didn't seem to make a difference to my configure ..

I still get

LibSnert/1.73.17
Copyright 1996, 2010 by Anthony Howe. All rights reserved.

  Platform............: Linux gcc
  Berkeley DB.........: 4.8 -ldb-4.8
  POSIX Threads.......: yes yes
  SQLite3.............: yes
  Sendmail libmilter..: yes
  Semaphore API.......: SYSTEMV_API
  Shared Memory API...: SYSTEMV_API
  CFLAGS..............:
-I/sads/milter-ahead/version-1.11/org/sqlite/include -D_REENTRANT -O2
-Wall -I${top_srcdir}/../../include
  LDFLAGS.............: -L/sads/milter-ahead/version-1.11/org/sqlite/lib
-L${top_srcdir}/../../lib
  LIBS................: -lpthread -ldl

Use ls -l on the library I get ...

/usr/lib/libmilter.so -> /usr/lib/libmilter/libmilter.so
/usr/lib/libmilter/libmilter.so -> libmilter.so.1.0.1
/usr/lib/libmilter/libmilter.so.1.0.1 -> ../libmilter.so.1.0.1
-rw-r--r-- 1 root root 54628 Jan 29 13:27 /usr/lib/libmilter.so.1.0.1

Is configure looking for some other indicator?

jON





Lists Index Date Thread Search