[Clamav-users] problems compiling on rh7.3
Hi, I am having this problem to compile clamav, the problem comes when i do --enable-milter in the ./configure then make. If i dont use that, it compile with no problem. Any hint or help? Regards... -=Raul=- gcc -DHAVE_CONFIG_H -DSENDMAIL_BIN=\"/usr/sbin/sendmail\" -I. -I. -I.. -I../ clam d -I../libclamav -I../shared-g -O2 -c `test -f 'clamav-milter.c' || echo './ '`clamav-milter.c /bin/sh ../libtool --mode=link gcc -g -O2 -o clamav-milter cfgparser.o getop t.o memory.o clamav-milter.o -L../libclamav -lclamav -L/usr/lib/libmilter -lmil ter -lwrap -lpthread gcc -g -O2 -o .libs/clamav-milter cfgparser.o getopt.o memory.o clamav-milter.o -L/usr/local/src/clamav-0.70/libclamav /usr/local/src/clamav-0.70/libclamav/.li bs/libclamav.so -lz -lbz2 -lgmp -lnsl -L/usr/lib/libmilter -lmilter -lwrap - lpth read /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libmilter.a(main.o): In functio n `smfi_register': main.o(.text+0x74): undefined reference to `strlcpy' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libmilter.a(main.o): In functio n `smfi_setconn': main.o(.text+0x12f): undefined reference to `strlcpy' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libmilter.a(listener.o): In fun ction `mi_milteropen': listener.o(.text+0x184): undefined reference to `strlcpy' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libmilter.a(engine.o): In funct ion `st_connectinfo': engine.o(.text+0x83a): undefined reference to `strlcpy' collect2: ld returned 1 exit status make[2]: *** [clamav-milter] Error 1 make[2]: Leaving directory `/usr/local/src/clamav-0.70/clamav-milter' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/clamav-0.70' make: *** [all] Error 2 --- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
Re: [Clamav-users] problems compiling on rh7.3
On Monday 03 May 2004 7:27 pm, Raul Elizondo wrote: > I am having this problem to compile clamav, the problem comes when i > do --enable-milter in the ./configure then make. If i dont use that, it > compile with no problem. Have you followed the instructions in the INSTALL document, including installing the sendmail-devel RPM? > -=Raul=- -- Nigel Horne. Arranger, Composer, Typesetter. NJH Music, Barnsley, UK. ICQ#20252325 [EMAIL PROTECTED] http://www.bandsman.co.uk --- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
RE: [Clamav-users] problems compiling on rh7.3
>Sent: Monday, May 03, 2004 1:19 PM > >looks like libsm from sendmail > >Try downloading and installing the sendmail-devel kit > >Or > >downloading and compiling libmilter from sendmail source distribution >and using that path to the configure script Hi again, Sendmail-devel for this distro/version is already installed and updated, however, i downloaded sendmail-8.12.11 from sendmail (next version of the one i got installed in that box which is 8.11.6-27.73), and i get the same error even i re-ran the configure with new paths. the line for configure was: ./configure --enable-milter --prefix=/usr --sysconfdir=/etc -libdir=/usr/loc al/src/sendmail-8.12.11/obj.Linux.2.4.20-18.7.i686/sendmail -includedir=/usr /local/src/sendmail-8.12.11/libmilter/ and the errors compiling are almost the same: Making all in clamav-milter make[2]: Entering directory `/usr/local/src/clamav-0.70/clamav-milter' /bin/sh ../libtool --mode=link gcc -g -O2 -o clamav-milter cfgparser.o getopt.o memory.o clamav-milter.o -L../libclamav -lclamav -L/usr/lib/libmilter -lmilter -lwr ap -lpthread gcc -g -O2 -o .libs/clamav-milter cfgparser.o getopt.o memory.o clamav-milter.o -L/usr/local/src/clamav-0.70/libclamav /usr/local/src/clamav-0.70/libclamav/.libs/libclamav.so -lz -lbz2 -lgmp -lns l -L/usr/lib/libmilter -lmilter -lwrap -lpthread -Wl,--rpath -Wl,/usr/local/ src/sendmail-8.12.11/obj.Linux.2.4.20-18.7.i686/sendmail /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libmilter.a(main.o): In function `smfi_register': main.o(.text+0x74): undefined reference to `strlcpy' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libmilter.a(main.o): In function `smfi_setconn': main.o(.text+0x12f): undefined reference to `strlcpy' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libmilter.a(listener.o): In function `mi_milteropen': listener.o(.text+0x184): undefined reference to `strlcpy' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libmilter.a(engine.o): In function `st_connectinfo': engine.o(.text+0x83a): undefined reference to `strlcpy' collect2: ld returned 1 exit status make[2]: *** [clamav-milter] Error 1 make[2]: Leaving directory `/usr/local/src/clamav-0.70/clamav-milter' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/clamav-0.70' make: *** [all] Error 2 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Joe Maimon Sent: Monday, May 03, 2004 1:19 PM To: [EMAIL PROTECTED] Subject: Re: [Clamav-users] problems compiling on rh7.3 looks like libsm from sendmail Try downloading and installing the sendmail-devel kit Or downloading and compiling libmilter from sendmail source distribution and using that path to the configure script Raul Elizondo wrote: >Hi, > >I am having this problem to compile clamav, the problem comes when i >do --enable-milter in the ./configure then make. If i dont use that, it >compile with no problem. > >Any hint or help? > >Regards... > >-=Raul=- > >gcc -DHAVE_CONFIG_H -DSENDMAIL_BIN=\"/usr/sbin/sendmail\" -I. -I. -I.. -I.. / >clam >d -I../libclamav -I../shared-g -O2 -c `test -f 'clamav-milter.c' || echo >'./ >'`clamav-milter.c >/bin/sh ../libtool --mode=link gcc -g -O2 -o clamav-milter cfgparser.o >getop >t.o memory.o >clamav-milter.o -L../libclamav -lclamav -L/usr/lib/libmilter -lmil >ter -lwrap -lpthread >gcc -g -O2 -o .libs/clamav-milter cfgparser.o getopt.o memory.o >clamav-milter.o > -L/usr/local/src/clamav-0.70/libclamav >/usr/local/src/clamav-0.70/libclamav/.li >bs/libclamav.so -lz -lbz2 -lgmp -lnsl -L/usr/lib/libmilter -lmilter -lwrap - >lpth >read >/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libmilter.a(main.o): In >functio >n `smfi_register': >main.o(.text+0x74): undefined reference to `strlcpy' >/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libmilter.a(main.o): In >functio >n `smfi_setconn': >main.o(.text+0x12f): undefined reference to `strlcpy' >/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libmilter.a(listener.o): In >fun >ction `mi_milteropen': >listener.o(.text+0x184): undefined reference to `strlcpy' >/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libmilter.a(engine.o): In >funct >ion `st_connectinfo': >engine.o(.text+0x83a): undefined reference to `strlcpy' >collect2: ld returned 1 exit status >make[2]: *** [clamav-milter] Error 1 >make[2]: Leaving directory `/usr/local/src/clamav-0.70/clamav-milter' >make[1]: *** [all-recursive] Error 1 >make[1]: Leaving directory `/usr/local/src/clamav-0.70' >make: *** [all] Error 2 > > > > >--- >This SF.Net email is sponsored by: Oracle 10g >Get cert
Re: [Clamav-users] problems compiling on rh7.3
Hi Te problems is that you don´t have strlcpy function. You can resolve it adding it to ./clamav-0.70/clamav-milter/clamav-milter.c size_t strlcpy(char *dst, const char *src, size_t dstsize) { if (strlen(src) < dstsize) { strcpy(dst,src); } else { strncpy(dst,src,dstsize-1); dst[dstsize-1] = '\0'; } return strlen(src); } Roberto - Original Message - From: "Raul Elizondo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 03, 2004 1:27 PM Subject: [Clamav-users] problems compiling on rh7.3 > Hi, > > I am having this problem to compile clamav, the problem comes when i > do --enable-milter in the ./configure then make. If i dont use that, it > compile with no problem. > > Any hint or help? > > Regards... > > -=Raul=- > > gcc -DHAVE_CONFIG_H -DSENDMAIL_BIN=\"/usr/sbin/sendmail\" -I. -I. -I.. -I../ > clam > d -I../libclamav -I../shared-g -O2 -c `test -f 'clamav-milter.c' || echo > './ > '`clamav-milter.c > /bin/sh ../libtool --mode=link gcc -g -O2 -o clamav-milter cfgparser.o > getop > t.o memory.o > clamav-milter.o -L../libclamav -lclamav -L/usr/lib/libmilter -lmil > ter -lwrap -lpthread > gcc -g -O2 -o .libs/clamav-milter cfgparser.o getopt.o memory.o > clamav-milter.o > -L/usr/local/src/clamav-0.70/libclamav > /usr/local/src/clamav-0.70/libclamav/.li > bs/libclamav.so -lz -lbz2 -lgmp -lnsl -L/usr/lib/libmilter -lmilter -lwrap - > lpth > read > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libmilter.a(main.o): In > functio > n `smfi_register': > main.o(.text+0x74): undefined reference to `strlcpy' > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libmilter.a(main.o): In > functio > n `smfi_setconn': > main.o(.text+0x12f): undefined reference to `strlcpy' > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libmilter.a(listener.o): In > fun > ction `mi_milteropen': > listener.o(.text+0x184): undefined reference to `strlcpy' > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libmilter.a(engine.o): In > funct > ion `st_connectinfo': > engine.o(.text+0x83a): undefined reference to `strlcpy' > collect2: ld returned 1 exit status > make[2]: *** [clamav-milter] Error 1 > make[2]: Leaving directory `/usr/local/src/clamav-0.70/clamav-milter' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/usr/local/src/clamav-0.70' > make: *** [all] Error 2 > > > --- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id66&op=click ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
Re: [Clamav-users] problems compiling on rh7.3
looks like libsm from sendmail Try downloading and installing the sendmail-devel kit Or downloading and compiling libmilter from sendmail source distribution and using that path to the configure script Raul Elizondo wrote: Hi, I am having this problem to compile clamav, the problem comes when i do --enable-milter in the ./configure then make. If i dont use that, it compile with no problem. Any hint or help? Regards... -=Raul=- gcc -DHAVE_CONFIG_H -DSENDMAIL_BIN=\"/usr/sbin/sendmail\" -I. -I. -I.. -I../ clam d -I../libclamav -I../shared-g -O2 -c `test -f 'clamav-milter.c' || echo './ '`clamav-milter.c /bin/sh ../libtool --mode=link gcc -g -O2 -o clamav-milter cfgparser.o getop t.o memory.o clamav-milter.o -L../libclamav -lclamav -L/usr/lib/libmilter -lmil ter -lwrap -lpthread gcc -g -O2 -o .libs/clamav-milter cfgparser.o getopt.o memory.o clamav-milter.o -L/usr/local/src/clamav-0.70/libclamav /usr/local/src/clamav-0.70/libclamav/.li bs/libclamav.so -lz -lbz2 -lgmp -lnsl -L/usr/lib/libmilter -lmilter -lwrap - lpth read /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libmilter.a(main.o): In functio n `smfi_register': main.o(.text+0x74): undefined reference to `strlcpy' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libmilter.a(main.o): In functio n `smfi_setconn': main.o(.text+0x12f): undefined reference to `strlcpy' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libmilter.a(listener.o): In fun ction `mi_milteropen': listener.o(.text+0x184): undefined reference to `strlcpy' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libmilter.a(engine.o): In funct ion `st_connectinfo': engine.o(.text+0x83a): undefined reference to `strlcpy' collect2: ld returned 1 exit status make[2]: *** [clamav-milter] Error 1 make[2]: Leaving directory `/usr/local/src/clamav-0.70/clamav-milter' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/clamav-0.70' make: *** [all] Error 2 --- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users --- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
[Clamav-users] problems compiling on rh7.3
Hi Te problems is that you don´t have strlcpy function. You can resolve it adding it to ./clamav-0.70/clamav-milter/clamav-milter.c size_t strlcpy(char *dst, const char *src, size_t dstsize) { if (strlen(src) < dstsize) { strcpy(dst,src); } else { strncpy(dst,src,dstsize-1); dst[dstsize-1] = '\0'; } return strlen(src); } Roberto --- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id66&op=click ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
RE: [Clamav-users] problems compiling on rh7.3
> Hi > > Te problems is that you don´t have strlcpy function. You can resolve it > adding it to ./clamav-0.70/clamav-milter/clamav-milter.c > > size_t strlcpy(char *dst, const char *src, size_t dstsize) { > if (strlen(src) < dstsize) { > strcpy(dst,src); > } else { > strncpy(dst,src,dstsize-1); > dst[dstsize-1] = '\0'; > } > return strlen(src); > } > > > Roberto Yup! it work! Thanks Roberto -=Raul=- --- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id66&op=click ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
Re: [Clamav-users] problems compiling on rh7.3
On Monday 03 May 2004 10:21 pm, Raul Elizondo wrote: > main.o(.text+0x74): undefined reference to `strlcpy' Try the latest version of clamav from CVS. -Nigel -- Nigel Horne. Arranger, Composer, Typesetter. NJH Music, Barnsley, UK. ICQ#20252325 [EMAIL PROTECTED] http://www.bandsman.co.uk --- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users