On 04/07/2010 10:31 PM, Jack Raats wrote:
> At this moment I'm getting errors compiling clamav 0.96.
> On FrreBSD 6.4-STABLE no errors, but on FreeBSD 7.3-STABLE I'm getting the 
> following errors:
> 
> Can anyone give me a clue to solve this problem?
> 
> Jack
> 
> Errors:
> 
> 
> This program built for i386-portbld-freebsd7.0
> Python 2.5.5
> gmake: Entering directory 
> `/usr/ports/security/clamav/work/clamav-0.96/libclamav/c++/llvm'
> llvm[0]: Running test suite
> gmake[1]: Entering directory 
> `/usr/ports/security/clamav/work/clamav-0.96/libclamav/c++/llvm/test'
> Making a new site.exp file...
> Making LLVM 'lit.site.cfg' file...
> Making LLVM unittest 'lit.site.cfg' file...
> ( ulimit -t 600 ; ulimit -d 512000 ; ulimit -m 512000 ; ulimit -v 512000 ; \
>           
> /usr/ports/security/clamav/work/clamav-0.96/libclamav/c++/llvm/utils/lit/lit.py
>  -s -v --no-tcl-as-sh CodeGen ExecutionEngine Integer Verifier )
> Traceback (most recent call last):
>   File 
> "/usr/ports/security/clamav/work/clamav-0.96/libclamav/c++/llvm/utils/lit/lit.py",
>  line 4, in <module>
>     import lit
>   File 
> "/usr/ports/security/clamav/work/clamav-0.96/libclamav/c++/llvm/utils/lit/lit/__init__.py",
>  line 3, in <module>
>     from lit import main
>   File 
> "/usr/ports/security/clamav/work/clamav-0.96/libclamav/c++/llvm/utils/lit/lit/lit.py",
>  line 9, in <module>
>     import math, os, platform, random, re, sys, time, threading, traceback
>   File "/usr/local/lib/python2.5/threading.py", line 6, in <module>
>     import thread
> ImportError: No module named thread

Looks like an incomplete/broken install of python to me.
lit.py does 'import threading', threading.py is provided by your
system's python, but it tries to import a non-existent module ...

These commands work for me:
$ python2.5
Python 2.5.5 (r255:77872, Feb  2 2010, 00:25:36)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import thread
>>> import threading

$ python
Python 2.6.2 (r262:71600, Sep 21 2009, 11:00:25)
[GCC 4.2.1 20070719  [FreeBSD]] on freebsd8
Type "help", "copyright", "credits" or "license" for more information.
>>> import threading
>>> import thread

Best regards,
--Edwin
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to