HTTP Anti-Virus Proxy http://havp.hege.li/forum/ |
|
HAVP - 64 bits Intel Processor http://havp.hege.li/forum/viewtopic.php?f=3&t=286 |
Page 1 of 1 |
Author: | ariumbr [ 05 Sep 2007 10:58 ] |
Post subject: | HAVP - 64 bits Intel Processor |
Hello my friends! I hope u can help me hehe i try so hard install the havp in a intel pentium D 64bits but seems like the havp dont read the conf file iven if i use the command havp -c .../havp.config i´ve got allways the same error:(iven if i delete the .config file) havp: error while loading shared libraries: libclamav.so.2: cannot open shared object file: No such file or directory im using this kernel: Linux wireless 2.6.19 #2 SMP Tue Sep 4 07:37:11 BRT 2007 x86_64 GNU/Linux total used free shared buffers cached Mem: 1949 319 1630 0 85 75 Swap: 486 0 486 with debian etch! i already did this install on intel 32 bits and this works! but i NEED to install in this 64bits machine right now! Please my friends help me Rgds Luiz Biazus PS: hege if u need i can disponibilize this hardware to fix if this problem exist |
Author: | hege [ 05 Sep 2007 14:03 ] |
Post subject: | |
Is your ClamAV 64-bit too? You can verify it with like "file /usr/local/lib/libclamav*": /usr/local/lib/libclamav.so.2.0.8: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped In this case it's 32-bit and cannot be used with 64-bit HAVP. You could try to compile havp as 32-bit with "./configure CFLAGS=-m32". Or then compile ClamAV with "./configure CFLAGS=-m64" or such. |
Author: | arium [ 05 Sep 2007 15:05 ] |
Post subject: | |
hello hege!!!!!! look!!! libclamav.so.2.0.8: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped =========================================== wireless:/usr/src/havp-0.86# ./configure CFLAGS=-m64 checking for g++... g++ checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ar... ar checking for perl... perl checking OS... Linux checking for mandatory locking support... OS supported checking for ClamAV scanner library... found 0.91.2 in /usr/local checking for Trend Micro scanner... /etc/iscan/libvsapi.so not found, disabled configure: creating ./config.status config.status: creating Makefile config.status: creating havp/Makefile config.status: creating havp/scanners/Makefile config.status: creating etc/havp/havp.config config.status: creating havp/default.h MAKE -============ wireless:/usr/src/havp-0.86# make cd havp && make make[1]: Entrando no diretório `/usr/src/havp-0.86/havp' g++ -m64 -I/usr/local/include -Wall -O2 -DHAVE_CONFIG_H -c -o helper.o helper.cp p g++ -m64 -I/usr/local/include -Wall -O2 -DHAVE_CONFIG_H -c -o logfile.o logfile. cpp g++ -m64 -I/usr/local/include -Wall -O2 -DHAVE_CONFIG_H -c -o scannerhandler.o s cannerhandler.cpp g++ -m64 -I/usr/local/include -Wall -O2 -DHAVE_CONFIG_H -c -o connectiontobrowse r.o connectiontobrowser.cpp g++ -m64 -I/usr/local/include -Wall -O2 -DHAVE_CONFIG_H -c -o genericscanner.o g enericscanner.cpp g++ -m64 -I/usr/local/include -Wall -O2 -DHAVE_CONFIG_H -c -o httphandler.o http handler.cpp g++ -m64 -I/usr/local/include -Wall -O2 -DHAVE_CONFIG_H -c -o params.o params.cp p g++ -m64 -I/usr/local/include -Wall -O2 -DHAVE_CONFIG_H -c -o sockethandler.o so ckethandler.cpp g++ -m64 -I/usr/local/include -Wall -O2 -DHAVE_CONFIG_H -c -o connectiontohttp.o connectiontohttp.cpp g++ -m64 -I/usr/local/include -Wall -O2 -DHAVE_CONFIG_H -c -o havp.o havp.cpp g++ -m64 -I/usr/local/include -Wall -O2 -DHAVE_CONFIG_H -c -o proxyhandler.o pro xyhandler.cpp proxyhandler.cpp: In member function âint ProxyHandler::CommunicationHTTP(Scanne rHandler&, bool)â: proxyhandler.cpp:824: warning: comparison between signed and unsigned integer ex pressions proxyhandler.cpp:848: warning: comparison between signed and unsigned integer ex pressions proxyhandler.cpp:950: warning: comparison between signed and unsigned integer ex pressions g++ -m64 -I/usr/local/include -Wall -O2 -DHAVE_CONFIG_H -c -o utils.o utils.cpp g++ -m64 -I/usr/local/include -Wall -O2 -DHAVE_CONFIG_H -c -o whitelist.o whitel ist.cpp cd scanners && make make[2]: Entrando no diretório `/usr/src/havp-0.86/havp/scanners' g++ -m64 -I/usr/local/include -Wall -O2 -DHAVE_CONFIG_H -c -o avgscanner.o avgsc anner.cpp g++ -m64 -I/usr/local/include -Wall -O2 -DHAVE_CONFIG_H -c -o f-protscanner.o f- protscanner.cpp g++ -m64 -I/usr/local/include -Wall -O2 -DHAVE_CONFIG_H -c -o kasperskyscanner.o kasperskyscanner.cpp g++ -m64 -I/usr/local/include -Wall -O2 -DHAVE_CONFIG_H -c -o nod32scanner.o nod 32scanner.cpp g++ -m64 -I/usr/local/include -Wall -O2 -DHAVE_CONFIG_H -c -o clamdscanner.o cla mdscanner.cpp g++ -m64 -I/usr/local/include -Wall -O2 -DHAVE_CONFIG_H -c -o sophiescanner.o so phiescanner.cpp g++ -m64 -I/usr/local/include -Wall -O2 -DHAVE_CONFIG_H -c -o avastscanner.o ava stscanner.cpp g++ -m64 -I/usr/local/include -Wall -O2 -DHAVE_CONFIG_H -c -o arcavirscanner.o a rcavirscanner.cpp g++ -m64 -I/usr/local/include -Wall -O2 -DHAVE_CONFIG_H -c -o clamlibscanner.o c lamlibscanner.cpp rm -f scanners.a ar cr scanners.a avgscanner.o f-protscanner.o kasperskyscanner.o nod32scanner.o clamdscanner.o sophiescanner.o avastscanner.o arcavirscanner.o clamlibscanner.o make[2]: Saindo do diretório `/usr/src/havp-0.86/havp/scanners' g++ -m64 -I/usr/local/include -Wall -O2 -o havp helper.o logfile.o scannerhandle r.o connectiontobrowser.o genericscanner.o httphandler.o params.o sockethandler. o connectiontohttp.o havp.o proxyhandler.o utils.o whitelist.o scanners/scanners .a -L/usr/local/lib -lclamav make[1]: Saindo do diretório `/usr/src/havp-0.86/havp' ===================== MAKE INSTALL wireless:/usr/src/havp-0.86# make install cd havp && make install make[1]: Entrando no diretório `/usr/src/havp-0.86/havp' ../install-sh -d /usr/local/sbin ../install-sh -s -m 755 havp /usr/local/sbin/havp ../install-sh -d -m 755 /var/log/havp ../install-sh -d -m 755 /var/tmp/havp ../install-sh -d -m 755 /var/run/havp ../install-sh -d /etc/init.d ../install-sh -m 644 ../etc/havp/havp.config /usr/local/etc/havp/havp.config.default ../install-sh -m 644 ../etc/havp/havp.config /usr/local/etc/havp/havp.config cp -r ../etc/havp/templates /usr/local/etc/havp/ chmod -R a+rX /usr/local/etc/havp/templates make[1]: Saindo do diretório `/usr/src/havp-0.86/havp' =================== HAVP EXEC TEST wireless:/usr/local/etc/havp# havp -h havp: error while loading shared libraries: libclamav.so.2: cannot open shared object file: No such file or directory wireless:/usr/local/etc/havp# havp havp: error while loading shared libraries: libclamav.so.2: cannot open shared object file: No such file or directory wireless:/usr/local/etc/havp# havp -c /usr/local/etc/havp/havp.config havp: error while loading shared libraries: libclamav.so.2: cannot open shared object file: No such file or directory =============== Clamav Work Test (fine) wireless:/usr/local/etc/havp# freshclam ClamAV update process started at Wed May 9 08:45:20 2007 main.cvd is up to date (version: 44, sigs: 133163, f-level: 20, builder: sven) Downloading daily-4160.cdiff [100%] Downloading daily-4161.cdiff [100%] Downloading daily-4162.cdiff [100%] daily.inc updated (version: 4162, sigs: 17573, f-level: 21, builder: ccordes) Database updated (150736 signatures) from database.clamav.net (IP: 216.24.174.245) =================== wireless:/usr/local/etc/havp# clamscan havp.config havp.config: OK ----------- SCAN SUMMARY ----------- Known viruses: 150736 Engine version: 0.91.2 Scanned directories: 0 Scanned files: 1 Infected files: 0 Data scanned: 0.01 MB Time: 2.474 sec (0 m 2 s) ========================= like i said the havp dont use ur config file any ideia? Should i use everything in 32-bits?! :~ Rgds |
Author: | hege [ 05 Sep 2007 15:09 ] |
Post subject: | |
Do you have /usr/local/lib in /etc/ld.so.conf? If you do, then try "ldd havp" and "strace havp". |
Author: | arium [ 05 Sep 2007 15:32 ] |
Post subject: | |
wireless:/etc# cat /etc/ld.so.conf include /etc/ld.so.conf.d/*.conf just it!! how i add? echo "include /usr/local/lib" >> /etc/ld.so.conf ====== look the x86_64-linux-gnu.conf wireless:/etc/ld.so.conf.d# cat x86_64-linux-gnu.conf # Multiarch support /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu |
Author: | hege [ 05 Sep 2007 15:33 ] |
Post subject: | |
arium wrote: how i add?
echo "include /usr/local/lib" >> /etc/ld.so.conf Just the path.. echo "/usr/local/lib" >> /etc/ld.so.conf |
Author: | hege [ 05 Sep 2007 15:38 ] |
Post subject: | |
And I guess you need to run "ldconfig" after that. |
Author: | arium [ 05 Sep 2007 15:42 ] |
Post subject: | |
wireless:/usr/local/sbin# ldd havp libclamav.so.2 => not found libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00002b3224c53000) libm.so.6 => /lib/libm.so.6 (0x00002b3224e52000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00002b3224fd4000) libc.so.6 => /lib/libc.so.6 (0x00002b32250e1000) /lib64/ld-linux-x86-64.so.2 (0x00002b3224b3b000) wireless:/usr/local/sbin# strace havp execve("/usr/local/sbin/havp", ["havp"], [/* 22 vars */]) = 0 uname({sys="Linux", node="wireless", ...}) = 0 brk(0) = 0x54b000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory ) mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2 af39494a000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory ) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=14603, ...}) = 0 mmap(NULL, 14603, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2af39494c000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory ) open("/lib/tls/x86_64/libclamav.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) stat("/lib/tls/x86_64", 0x7fff161730a0) = -1 ENOENT (No such file or directory ) open("/lib/tls/libclamav.so.2", O_RDONLY) = -1 ENOENT (No such file or directo ry) stat("/lib/tls", 0x7fff161730a0) = -1 ENOENT (No such file or directory ) open("/lib/x86_64/libclamav.so.2", O_RDONLY) = -1 ENOENT (No such file or dire ctory) stat("/lib/x86_64", 0x7fff161730a0) = -1 ENOENT (No such file or directory ) open("/lib/libclamav.so.2", O_RDONLY) = -1 ENOENT (No such file or directory ) stat("/lib", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0 open("/usr/lib/tls/x86_64/libclamav.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) stat("/usr/lib/tls/x86_64", 0x7fff161730a0) = -1 ENOENT (No such file or direc tory) open("/usr/lib/tls/libclamav.so.2", O_RDONLY) = -1 ENOENT (No such file or dir ectory) stat("/usr/lib/tls", 0x7fff161730a0) = -1 ENOENT (No such file or directory ) open("/usr/lib/x86_64/libclamav.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) stat("/usr/lib/x86_64", 0x7fff161730a0) = -1 ENOENT (No such file or directory ) open("/usr/lib/libclamav.so.2", O_RDONLY) = -1 ENOENT (No such file or directo ry) stat("/usr/lib", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0 open("/lib/x86_64-linux-gnu/tls/x86_64/libclamav.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) stat("/lib/x86_64-linux-gnu/tls/x86_64", 0x7fff161730a0) = -1 ENOENT (No such file or directory) open("/lib/x86_64-linux-gnu/tls/libclamav.so.2", O_RDONLY) = -1 ENOENT (No suc h file or directory) stat("/lib/x86_64-linux-gnu/tls", 0x7fff161730a0) = -1 ENOENT (No such file or directory) open("/lib/x86_64-linux-gnu/x86_64/libclamav.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) stat("/lib/x86_64-linux-gnu/x86_64", 0x7fff161730a0) = -1 ENOENT (No such file or directory) open("/lib/x86_64-linux-gnu/libclamav.so.2", O_RDONLY) = -1 ENOENT (No such fi le or directory) stat("/lib/x86_64-linux-gnu", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 open("/usr/lib/x86_64-linux-gnu/tls/x86_64/libclamav.so.2", O_RDONLY) = -1 ENO ENT (No such file or directory) stat("/usr/lib/x86_64-linux-gnu/tls/x86_64", 0x7fff161730a0) = -1 ENOENT (No s uch file or directory) open("/usr/lib/x86_64-linux-gnu/tls/libclamav.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) stat("/usr/lib/x86_64-linux-gnu/tls", 0x7fff161730a0) = -1 ENOENT (No such fil e or directory) open("/usr/lib/x86_64-linux-gnu/x86_64/libclamav.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) stat("/usr/lib/x86_64-linux-gnu/x86_64", 0x7fff161730a0) = -1 ENOENT (No such file or directory) open("/usr/lib/x86_64-linux-gnu/libclamav.so.2", O_RDONLY) = -1 ENOENT (No suc h file or directory) stat("/usr/lib/x86_64-linux-gnu", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 writev(2, [{"havp", 4}, {": ", 2}, {"error while loading shared libra"..., 36} , {": ", 2}, {"libclamav.so.2", 14}, {": ", 2}, {"cannot open shared object fi le", 30}, {": ", 2}, {"No such file or directory", 25}, {"\n", 1}], 10havp: er ror while loading shared libraries: libclamav.so.2: cannot open shared object file: No such file or directory ) = 118 exit_group(127) = ? Process 8555 detached wireless:/usr/local/sbin# havp havp: error while loading shared libraries: libclamav.so.2: cannot open shared object file: No such file or directory |
Author: | arium [ 05 Sep 2007 15:47 ] |
Post subject: | |
hege wrote: And I guess you need to run "ldconfig" after that.
I reply Before see this hehehe with ldconfig look!!!! Note: MAXSERVERS is unusually high! You are sure you want this? Starting HAVP Version: 0.86 Could not open lock testfile /havp/havp-3F05Ps: Permission denied Maybe you need to: chown havp /havp Could not open lock testfile /havp/havp-p96iMG: Permission denied Maybe you need to: chown havp /havp Could not open lock testfile /havp/havp-79EsHW: Permission denied Maybe you need to: chown havp /havp now is just .config HAHAHAH Man U are Gr8!!!!! Thank-u very much hege !!!! |
Page 1 of 1 | All times are UTC + 2 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |