I can answer that one... because I asked the same thing just last night.
See below... Troy
oh, and it's the Makefile in the clamav-milter directory. ;)
> From CVS today (devel-20031204)
>
> When compiling clam with --enable-milter I get this error:
>
> /home/userx/clamav-devel/clamd/cfgfile.c:108: undefined reference to
> `cli_strtok'
> /home/userx/clamav-devel/clamd/cfgfile.c:109: undefined reference to
> `cli_strtok'
> collect2: ld returned 1 exit status
Tomasz checked in my changes :-)
I cleaned up a little bit, and cli_strtok() is a new libclamav function.
Now I see that the Makefile for milter is not created correctly. For
now, please edit it manually and change the "LIBS" variable to:
LIBS = -L../libclamav -lclamav -L/usr/lib/libmilter -lmilter -lpthread
Tomasz, can you please update Makefile.in accordingly? I'm not an
autoconf/automake guru :-(
Sorry,
Thomas
----- Original Message -----
From: "J.D. Bronson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 05, 2003 2:12 PM
Subject: [Clamav-users] problem with build 12/04/2003
make[1]: Entering directory `/junk/clamav-devel-20031204/clamav-milter'
source='clamav-milter.c' object='clamav-milter.o' libtool=no \
depfile='.deps/clamav-milter.Po' tmpdepfile='.deps/clamav-milter.TPo' \
depmode=gcc3 /bin/bash ../depcomp \
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"clamav\"
-DVERSION=\"devel-20031205\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DSCANBUFF=131072 -DFILEBUFF=8192 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1
-DHAVE_SYS_INT_TYPES_H=1 -DHAVE_DLFCN_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_SYS_INTTYPES_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRINGS_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_MMAN_H=1
-DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_MALLOC_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4
-DHAVE_ZLIB_H=1 -DHAVE_BZLIB_H=1 -DNOBZ2PREFIX=1 -DHAVE_SETSID=1
-DHAVE_MEMCPY=1 -DSETPGRP_VOID=1 -DHAVE_GMP=1 -DCLAMD_USE_SYSLOG=1
-DCLAMAVUSER=\"clamav\" -DCLAMAVGROUP=\"clamav\" -DDB1NAME=\"main.cvd\"
-DDB2NAME=\"daily.cvd\" -DDATADIR=\"/var/lib/clamav\" -DCONFDIR=\"/etc\"
-DC_URANDOM=1 -DCL_THREAD_SAFE=1 -D_REENTRANT=1 -DC_SOLARIS=1
-DBUILD_CLAMD=1 -DWORDS_BIGENDIAN=1 -DWORDS_BIGENDIAN=1 -I. -I. -I../clamd
-I../libclamav -I../clamscan -O2 -c `test -f 'clamav-milter.c' || echo
'./'`clamav-milter.c
/bin/bash ../libtool --mode=link gcc -O2 -o
clamav-milter clamav-milter.o ../clamd/cfgfile.o ../clamd/others.o
../clamscan/getopt.o -L../libclamav -L/usr/lib/libmilter -lmilter -lpthread
-lsocket -lnsl -lresolv
mkdir .libs
gcc -O2 -o clamav-milter clamav-milter.o ../clamd/cfgfile.o
../clamd/others.o
../clamscan/getopt.o -L/junk/clamav-devel-20031204/libclamav
-L/usr/lib/libmilter -lmilter -lpthread -lsocket -lnsl -lresolv
../clamd/cfgfile.o(.text+0xb4): In function `parsecfg':
: undefined reference to `cli_strtok'
../clamd/cfgfile.o(.text+0xd0): In function `parsecfg':
: undefined reference to `cli_strtok'
collect2: ld returned 1 exit status
make[1]: *** [clamav-milter] Error 1
make[1]: Leaving directory `/junk/clamav-devel-20031204/clamav-milter'
make: *** [all-recursive] Error 1
--
J.D. Bronson - "The Cisco Kid"
Aurora Health Care // Information Services // Milwaukee, WI USA
Office: 414.978.8282 // Fax: 414.328.8282 // Pager: 414.314.8282
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users
!DSPAM:3fd0e711104672941529835!
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users