[Pymilter] Building pymilter on debian sarge ?

Stuart D. Gathman stuart at bmsi.com
Tue Mar 21 10:37:48 EST 2006


On Mon, 20 Mar 2006, paddy wrote:

> I get as far as
> 
>   # python setup.py build
>   running build
>   running build_py
>   running build_ext
>   building 'milter' extension
>   gcc -pthread -shared build/temp.linux-i686-2.3/miltermodule.o -lmilter -lsmutil -o build/lib.linux-i686-2.3/milter.so
>   /usr/bin/ld: cannot find -lsmutil
>   collect2: ld returned 1 exit status
>   error: command 'gcc' failed with exit status 1
> 
> I have a libmilter.so but only libsmutil.a
> 
> Am I correct in thinking I need libsmutil.so ?

The name of the sendmail library varies with distro for some reason.  Try
renaming "smutil" to "sm" in setup.py.  Any suggestions on how to make this
change automatically are welcome (perhaps a big table in setup.py).

-- 
	      Stuart D. Gathman <stuart at bmsi.com>
    Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.




More information about the Pymilter mailing list