Blue Moon System Operator wrote:


I've scoured the web and only found the reference to configure using the wrong mfapi.h. Since I know my sendmail-8.13.3 mfapi.h is the only one it can be using, what else could be causing this?

I'm baffled by this, clamav-0.86.1 builds and runs fine on a FreeBSD 4.5 release box with sendmail 8.12.11 running on it.

The clamav-0.86.1 build dies with "undefined reference to `smfi_opensocket'" on my FreeBSD 5.2.1 box running sendmail 8.13.3. clamav-0.85.1 was previously built and that milter has been running fine on the same FreeBSD 5.2.1 box.

I have verified that /usr/include/libmilter/mfapi.h is identical to the sendmail-8.13.3/include/libmilter/mfapi.h which is running on the same FreeBSD 5.2.1-RELEASE box.

configure:12376: checking libmilter/mfapi.h usability
configure:12388: gcc -c -I/usr/local/include  conftest.c >&5
configure:12394: $? = 0
configure:12397: test -z || test ! -s conftest.err
configure:12400: $? = 0
configure:12403: test -s conftest.o
configure:12406: $? = 0
configure:12416: result: yes
configure:12420: checking libmilter/mfapi.h presence
configure:12430: gcc -E  conftest.c
configure:12436: $? = 0
configure:12456: result: yes
configure:12491: checking for libmilter/mfapi.h
configure:12498: result: yes

 # locate mfapi
dir path.../sendmail-8.12.10/include/libmilter/mfapi.h
dir path.../sendmail-8.13.3/include/libmilter/mfapi.h
/usr/include/libmilter/mfapi.h

I even tried using the sendmail-8.12.10 mfapi.h for kicks, same smfi_opensocket error.

Making all in clamav-milter
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../clamd -I../libclamav -I../shared -I/usr/local/include -MT clamav-milter.o -MD -MP -MF ".deps/clamav-milter.Tpo" -c -o clamav-milter.o clamav-milter.c; then mv -f ".deps/clamav-milter.Tpo" ".deps/clamav-milter.Po"; else rm -f ".deps/clamav-milter.Tpo"; exit 1; fi /usr/local/bin/bash ../libtool --mode=link gcc -I/usr/local/include -L/usr/local/lib -o clamav-milter cfgparser.o getopt.o memory.o misc.o clamav-milter.o ../libclamav/libclamav.la -lmilter -pthread -lc_r -lwrap gcc -I/usr/local/include -o .libs/clamav-milter cfgparser.o getopt.o memory.o misc.o clamav-milter.o -L/usr/local/lib ../libclamav/.libs/libclamav.so -lz -lbz2 -lgmp -lmilter -lc_r -lwrap -Wl,--rpath -Wl,/usr/local/lib
clamav-milter.o: In function `main':
clamav-milter.o(.text+0x1eb5): undefined reference to `smfi_opensocket'
*** Error code 1

Stop in /html/projects/clamav/clamav-0.86.1/clamav-milter.
*** Error code 1

Stop in /html/projects/clamav/clamav-0.86.1.
*** Error code 1

Stop in /html/projects/clamav/clamav-0.86.1.


TIA for any more insight into this one.

Henry

J. Henry Priebe Jr.    Blue Moon Internet Corp Network Administrator
www.bluemoon.net       Internet Access & Web Hosting
www.railfan.net        Railfan Network Services
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html


Ran into this one myself today..

cd SENDMAILSRC/libmilter
./Build
make install

then run make on clamav

James



--
James Conner
Passageway Communications
Phone: 403-862-2290

Photo Galleries: http://www.pbase.com/bish0p
Random Ramblings: http://blogs.passageway.com/james


_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to