Hi,

going further gave me a linking error when linking libclamav.so: 
undefined reference to strtok_r.

I solved it with these patches:

--- ./clamav-devel-20031012/libclamav/mbox.c    Sun Oct 12 10:31:12 
2003
+++ ./original/libclamav/mbox.c Wed Oct  1 11:27:42 2003
@@ -64,9 +64,11 @@
 #include "defaults.h"

 /* FIXME: implement HAVE_STRTOK_R */
+#ifndef CL_THREAD_SAFE
 #undef strtok_r
 #undef __strtok_r
 #define strtok_r(a,b,c)        strtok(a,b)
+#endif

 /* required for AIX and Tru64 */
 #ifdef TRUE

--- ./clamav-devel-20031012/libclamav/message.c Sun Oct 12 10:31:53 
2003
+++ ./original/libclamav/message.c      Wed Oct  1 11:28:23 2003
@@ -55,9 +55,11 @@
 #include "strrcpy.h"
 #include "others.h"

+#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

 /* required for AIX and Tru64 */
 #ifdef TRUE

I have libpthread-0.5 and clamd is linked against it and running with 
three threads now, so I could finally build clamav:-)

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