(Minimally snipping since to preserve context since the original post was on another list)
On Thu, Sep 17, 2009 at 11:41:52PM +0200, Rolf E. Sonneveld <[email protected]> wrote: > running Ubuntu Server 8.04 LTS. Trying to compile dkim-filter 2.8.3. > First I installed libmilter using: > > $ sudo apt-get install libmilter1 libsendmail-pmilter-perl > libmilter1-dbg libmilter1 libmilter-dev > > Next I editted the file site.config.m4.dist and uncommented the last two > lines in this section: > > dnl libmilter -- Sendmail's milter library > dnl > dnl This must be in the search rules for your compile. If necessary, > dnl adjust the paths below and enable the lines by deleting "dnl" from the > dnl front of them. > APPENDDEF(`bld_dkim_filter_INCDIRS', `-I/usr/include/libmilter ') > APPENDDEF(`bld_dkim_filter_LIBDIRS', `-L/usr/lib/libmilter ') > > After running: > > $ sh ./Build > > I get: > > [...] > make[1]: Entering directory > `/home/user/dkim-milter-2.8.3/obj.Linux.2.6.24-16-server.i686/dkim-filter' > cc -o dkim-filter -lpthread config.o dkim-ar.o dkim-arf.o dkim-crypto.o > dkim-db.o dkim-filter.o stats.o test.o util.o -lmilter As you can see from the above command line, the -L isn't being passed properly. So we can start from the most obvious ones: Did you rename site.config.m4.dist to site.config.m4 and make sure it's placed in devtools/Site? If you ran a build before tweaking site.config.m4, did you also remember to ./Build clean and rm -r obj.*? > /home/user/dkim-milter-2.8.3/obj.Linux.2.6.24-16-server.i686/libdkim/libdkim.a > > /home/user/dkim-milter-2.8.3/obj.Linux.2.6.24-16-server.i686/libsm/libsm.a > -ldb -lresolv -lcrypt -lnsl -ldl -lssl -lcrypto > /usr/bin/ld: cannot find -lmilter > collect2: ld returned 1 exit status > make[1]: *** [dkim-filter] Error 1 > make[1]: Leaving directory > `/home/user/dkim-milter-2.8.3/obj.Linux.2.6.24-16-server.i686/dkim-filter' > make: *** [all] Error 2 > > The contents of /usr/include/libmilter: > > $ ls -l /usr/include/libmilter/* > -rw-r--r-- 1 root root 16588 2006-11-02 03:44 /usr/include/libmilter/mfapi.h > -rw-r--r-- 1 root root 4727 2007-03-27 20:53 /usr/include/libmilter/mfdef.h > > The contents of /usr/lib/libmilter: > > $ ls -l /usr/lib/libmilter > total 304 > -rw-r--r-- 1 root root 67348 2008-01-24 15:30 libmilter.a > lrwxrwxrwx 1 root root 14 2009-09-17 23:22 libmilter.so -> > libmilter.so.1 > lrwxrwxrwx 1 root root 17 2009-09-17 23:22 libmilter.so.1 -> > ../libmilter.so.1 > -rw-r--r-- 1 root root 209504 2008-01-24 15:30 libsm.a > -rw-r--r-- 1 root root 19612 2008-01-24 15:30 libsmutil.a > > $ ls -l /usr/lib/libmilter.so.1 > -rw-r--r-- 1 root root 46372 2008-01-24 15:30 libmilter.so.1 > > What do I do wrong? -- Mike Markley <[email protected]> Everyone is entitled to an informed opinion. - Harlan Ellison ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ dkim-milter-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dkim-milter-discuss
