MAC-OSX [was: bogofilter-1.1.4 - new current release]

David Relson relson at osagesoftware.com
Mon Jan 8 13:16:40 CET 2007


On Mon, 8 Jan 2007 11:12:58 +0200
Andras Salamon wrote:

> I'm seeing problems compiling the 1.1.4 release on Mac OS X 10.4.8.
> With a fink installation of sqlite3 and libiconv, the correct
> configure line is something like:
> 
> ./configure --with-libsqlite3-prefix=/sw --with-database=sqlite3
> --with-libiconv-prefix=/sw
> 
> which yields a src/Makefile including the lines:
> 
> am__append_9 = -L/sw/lib -liconv
> LDADD = libbogofilter.a $(am__append_8) $(am__append_9) \
>         $(am__append_11)
> bogofilter_DEPENDENCIES = $(LDADD) $(am__append_4)
> bogofilter$(EXEEXT): $(bogofilter_OBJECTS) $(bogofilter_DEPENDENCIES)
> [...commands to make bogofilter here...]
> 
> The -L/sw/lib in the dependencies then causes make to fail:
> make[3]: *** No rule to make target `-L/sw/lib', needed by
> `bogofilter'.  Stop.
> 
> I don't know much about recent versions of autotools, but program.am
> from automake-1.9.6 has:
> 
> %PROGRAM%%EXEEXT%: $(%XPROGRAM%_OBJECTS) $(%XPROGRAM%_DEPENDENCIES)
> %%DIRSTAMP%
> 
> which seems to indicate that the -L/sw/lib should not be making its
> way into bogofilter_DEPENDENCIES.
> 
> -- Andras Salamon                   andras at dns.net

Hi Andras,

What is the _exact_ configure command you are using?  What is the full
path to your sqlite3 library? What is the output of command 

  egrep -e "^(LDFLAGS|LIBS|LIBDB|GSL_LIBS|LIBICONV)" config.log

On my Linux workstation, after running

 ./configure --with-libsqlite3-prefix=/sw --with-database=sqlite3
             --with-libiconv-prefix=/sw  

The last few lines printed are:

  configure:  LDFLAGS=
  configure:     LIBS=-lm 
  configure:    LIBDB=/sw/lib/libsqlite3.a
  configure: GSL_LIBS=libbf_gsl.a
  configure: LIBICONV=

and src/Makefile has

   LIBSQLITE3 = /sw/lib/libsqlite3.a
   LTLIBSQLITE3 = -L/sw/lib -lsqlite3

What do you have on MAC-OSX?

HTH,

David



More information about the bogofilter-dev mailing list