Hi,

the new CVS version does not compile here despite the patch which was 
incorporated in my name.

The problem here is that I donīt have the symbol STRTOK_R in my 
libpthread. Maybe ./configure should search for this symbol and not 
trust only the existence of libpthread.so.

I have to remove those lines:
in libclamav/message.c:
#if     defined(NO_STRTOK_R) || !defined(CL_THREAD_SAFE)

and in libclamav/mbox.c
#if     defined(NO_STRTOK_R) || !defined(CL_THREAD_SAFE)

to get it compiled here.
This patch is against CVS 20031013:

--- ../original/libclamav/message.c     Wed Oct  1 11:28:23 2003
+++ ./libclamav/message.c       Mon Oct 13 05:53:50 2003
@@ -55,11 +55,11 @@
 #include "strrcpy.h"
 #include "others.h"
 
-#if    defined(NO_STRTOK_R) || !defined(CL_THREAD_SAFE)
+//#if  defined(NO_STRTOK_R) || !defined(CL_THREAD_SAFE)
 #undef strtok_r
 #undef __strtok_r
 #define strtok_r(a,b,c)        strtok(a,b)
-#endif
+//#endif
 
 /* required for AIX and Tru64 */
 #ifdef TRUE
--- ../original/libclamav/mbox.c        Sun Oct 12 22:13:49 2003
+++ ./libclamav/mbox.c  Mon Oct 13 05:53:40 2003
@@ -69,11 +69,11 @@
 #include "others.h"
 #include "defaults.h"
 
-#if    defined(NO_STRTOK_R) || !defined(CL_THREAD_SAFE)
+//#if  defined(NO_STRTOK_R) || !defined(CL_THREAD_SAFE)
 #undef strtok_r
 #undef __strtok_r
 #define strtok_r(a,b,c)        strtok(a,b)
-#endif
+//#endif
 
 /* required for AIX and Tru64 */
 #ifdef TRUE

Greetings, Bernd



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to