Wow, that did the trick! Taking out #include <assert.h> and replacing it with
the #define macro code below solved the problem. I did this to the following
files:
line.c
text.c
strrcpy.c
I am not a programmer (well, I have a few skills...) so that hampers my ability
to solve compilation issues sometimes. Of course, it does seem Andrey is a bit
familiar with the code!
I did a ldd check on my stuff in /usr/local/lib and bin - nothing missing.
I don't know if these changes are necessary because of my particular compile
environment or if these should go into CVS for other x86 users. Someone did
say they had no problems compiling on x86 both 8 and 9... I didn't have any
problems compiling on Sparc 9.
Thanks!
James
Quoting Andrey Melnikoff <[EMAIL PROTECTED]>:
> In article <[EMAIL PROTECTED]> you wrote:
> > Newsgroups: gmane.comp.security.virus.clamav.user
>
> > FYI, tried compiling a new dev version - same error, but this time it's in
> the
> > text.lo file...
> This crap coming from assert() calls.
>
> > Everything I've compiled has been done with gcc. Even if there were
> something
> > old done with Sun's CC, I wouldn't know where to begin to find those hosed
> > libraries.
> You choice:
>
> 1) search libgcc.a and add it to configure argument
> eg. ./configure ADDITIONAL_LIBS="path/to/libgcc.a" your params
>
> 2) remove all assert code.
>
> 3) grep sources for '<assert.h>' and replease #include <assert.h>
> with this macros:
>
> #define assert(expr) \
> if(!(expr)) { \
> cli_errmsg("Assertion failed! %s,%s,%s,line=%d\n", \
> #expr,__FILE__,__FUNCTION__,__LINE__); \
> abort(); \
> }
>
> 4) simply put this macros to libclamav/others.h
>
> I suggest this method.
>
----------------------------------------------------
This mail sent through jkm.NET secure webmail server
_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users