WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: On Access Virus Protection ?  (Read 38279 times)

Offline remus

  • Sr. Member
  • ****
  • Posts: 371
Re: On Access Virus Protection ?
« Reply #30 on: December 22, 2011, 07:35:39 AM »
I'll follow your advice.

Step one: work out how to get all the dependencys installed and the main app working.

Step two: turn it all into an extension.

How's that sound.
Live long and prosper.

Offline remus

  • Sr. Member
  • ****
  • Posts: 371
Re: On Access Virus Protection ?
« Reply #31 on: December 22, 2011, 09:53:31 AM »
Problem 7 : checking for libccgnu2 via ccgnu2-config... configure: error: libccgnu2 not found!

I downloaded: commoncpp2-1.8.1.tar.gz
Un Zip with tar
sudo ./configure was ok
sudo make failed

Code: [Select]
applog.cpp: In member function 'void ost::logger::logFileName(const char*, bool)':
applog.cpp:345:43: error: 'S_IREAD' was not declared in this scope
applog.cpp:345:53: error: 'S_IWRITE' was not declared in this scope
applog.cpp:345:61: error: 'mkfifo' was not declared in this scope
applog.cpp: In constructor 'ost::AppLog::AppLog(const char*, bool, bool)':
applog.cpp:459:46: error: 'S_IREAD' was not declared in this scope
applog.cpp:459:56: error: 'S_IWRITE' was not declared in this scope
applog.cpp:459:64: error: 'mkfifo' was not declared in this scope
applog.cpp: In member function 'void ost::AppLog::logFileName(const char*, bool, bool)':
applog.cpp:565:46: error: 'S_IREAD' was not declared in this scope
applog.cpp:565:56: error: 'S_IWRITE' was not declared in this scope
applog.cpp:565:64: error: 'mkfifo' was not declared in this scope
make[2]: *** [applog.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Live long and prosper.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: On Access Virus Protection ?
« Reply #32 on: December 22, 2011, 10:13:30 AM »

Offline remus

  • Sr. Member
  • ****
  • Posts: 371
Re: On Access Virus Protection ?
« Reply #33 on: December 22, 2011, 11:58:30 PM »
Thx Rich,

Post you've linked http://forum.openscenegraph.org/viewtopic.php?p=39676#39676 says I need to change
Quote
S_IREAD to S_IRUSR & S_IWRITE to S_IWUSR

After reading the INSTALL file I found a section about setting values to variables and passing it to the ./configure script, so I did this.

Code: [Select]
sudo S_IRUSR=S_IREAD S_IWUSR=S_IWRITE ./configureor
Code: [Select]
sudo S_IREAD=S_IRUSR S_IWRITE=S_IWUSR ./configure
Did not do the truck :(
Error output
Code: [Select]
applog.cpp: In constructor 'ost::logger::logger(const char*, bool)':
applog.cpp:300:43: error: 'S_IREAD' was not declared in this scope
applog.cpp:300:53: error: 'S_IWRITE' was not declared in this scope
applog.cpp:300:61: error: 'mkfifo' was not declared in this scope
applog.cpp: In member function 'void ost::logger::logFileName(const char*, bool)':
applog.cpp:345:43: error: 'S_IREAD' was not declared in this scope
applog.cpp:345:53: error: 'S_IWRITE' was not declared in this scope
applog.cpp:345:61: error: 'mkfifo' was not declared in this scope
applog.cpp: In constructor 'ost::AppLog::AppLog(const char*, bool, bool)':
applog.cpp:459:46: error: 'S_IREAD' was not declared in this scope
applog.cpp:459:56: error: 'S_IWRITE' was not declared in this scope
applog.cpp:459:64: error: 'mkfifo' was not declared in this scope
applog.cpp: In member function 'void ost::AppLog::logFileName(const char*, bool, bool)':
applog.cpp:565:46: error: 'S_IREAD' was not declared in this scope
applog.cpp:565:56: error: 'S_IWRITE' was not declared in this scope
applog.cpp:565:64: error: 'mkfifo' was not declared in this scope
make[1]: *** [applog.lo] Error 1
make[1]: Leaving directory `/mnt/sda1/common/commoncpp2-1.8.1/src'
make: *** [check-recursive] Error 1
Live long and prosper.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: On Access Virus Protection ?
« Reply #34 on: December 23, 2011, 12:03:51 AM »
Hi remus
You need to change it in the source code. Open the file called  applog.cpp  and make the changes
in there.

Offline remus

  • Sr. Member
  • ****
  • Posts: 371
Re: On Access Virus Protection ?
« Reply #35 on: December 23, 2011, 07:21:55 AM »
I've made variable name modifications to src/applog.ccp

changed S_IREAD to S_IRUSR & S_IWRITE to S_IWUSR

Remaining Error:
Code: [Select]
applog.cpp:345:60: error: 'mkfifo' was not declared in this scope
I'll have a look on google.
« Last Edit: December 23, 2011, 08:28:55 PM by remus »
Live long and prosper.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: On Access Virus Protection ?
« Reply #36 on: December 23, 2011, 02:59:47 PM »
Hi remus
Open applog.cpp and look for two lines that say:
#include <sys/types.h>
#include <sys/stat.h>
in that order near the beginning of the file. If they are not there, add them and try again.

Offline remus

  • Sr. Member
  • ****
  • Posts: 371
Re: On Access Virus Protection ?
« Reply #37 on: December 23, 2011, 09:43:45 PM »
Thx Rich,
That got commoncpp2-1.8.1.tar.gz installed.

Problem 7 : checking for libccgnu2 via ccgnu2-config... configure: error: libccgnu2 not found!
[SOLVED]
Made changes to src/applog.ccp (S_IREAD to S_IRUSR & S_IWRITE to S_IWUSR)
Added-
#include <sys/types.h>
#include <sys/stat.h>
To list of include files at top of applog.ccp

clamfs now passes ./configure
There is a make error
Code: [Select]
scancache.cxx:40:56: error: expected template-name before '<' token
scancache.cxx:40:56: error: expected '{' before '<' token
scancache.cxx: At global scope:
scancache.cxx:40:56: error: expected unqualified-id before '<' token
make[2]: *** [scancache.o] Error 1
make[2]: Leaving directory `/mnt/sda1/clamfs/clamfs-1.0.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/sda1/clamfs/clamfs-1.0.1'
make: *** [all] Error 2
I'm googling for solutions now
Live long and prosper.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: On Access Virus Protection ?
« Reply #38 on: December 23, 2011, 11:16:52 PM »
Hi remus
Found this:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=564971#16
It suggests this patch for scancache.cxx
Code: [Select]
ScanCache::ScanCache(long int elements, long int expire):
-    ExpireLRUCache<ino_t, CachedResult>::ExpireLRUCache<ino_t, CachedResult>(elements, expire) {
+    ExpireLRUCache<ino_t, CachedResult>::ExpireLRUCache(elements, expire) {
See the line with the - sign in front of it? Find the matching line in the source file and replace it with
the line with the + sign in front of it, leave out the + sign of course. The error message indicates it's
line 46.


Offline remus

  • Sr. Member
  • ****
  • Posts: 371
Re: On Access Virus Protection ?
« Reply #39 on: December 24, 2011, 03:12:23 AM »
Thx Again Rich,

Problem : 8 : scancache.cxx:40:56: error: expected template-name before '<' token
[SOLVED]
I found the line in src/scancache.cxx and replaced it. I then did the following
: make clean
: ./configure
: make
: sudo make install

Its installed :)
I'm pretty nackered after all that.

I"ve yet to test it, after a bit of googling, I found this: http://www.rexswain.com/eicar.html
I'll use that to test it after I've taken a bit of a break from this.

I'll do up some neat and tidy documentation on the procedure to get to this stage.

I'll start making extensions out of these sources.
« Last Edit: December 24, 2011, 08:47:57 AM by remus »
Live long and prosper.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: On Access Virus Protection ?
« Reply #40 on: December 24, 2011, 09:14:02 AM »
Hi remus
Glad to hear it finally compiled and that you will be adding it as an extension.
I was beginning to think I would have to label you as a troublemaker with all those errors. :)
« Last Edit: December 24, 2011, 05:09:30 PM by Rich »

Offline remus

  • Sr. Member
  • ****
  • Posts: 371
Re: On Access Virus Protection ?
« Reply #41 on: December 24, 2011, 09:31:49 AM »
Thanks to:
Rich, Juanito, vinnie, coreplayer2, curaga
For your patients and help.

Sorry I made such a mess of this :)

I'm happy to say that I learn't a few things I did not know before I started.
Live long and prosper.

Offline remus

  • Sr. Member
  • ****
  • Posts: 371
Re: On Access Virus Protection ?
« Reply #42 on: December 25, 2011, 02:00:52 AM »
Errors continue.

Last night I ran the clamfs program with
Code: [Select]
clamfsOutput was to the effect that I must run "clamfs" with path to clamfs.xml to load config.

Well that was enough for me last night.

I loaded up tinycore today, and of course had to reinstall everything as I am a long way off from learning how to make an extension, and this time when I run clamfs I get the following error.

Code: [Select]
clamfs: error while loading shared libraries: librlog.so.5: cannot open shared object file: No such file or directory

find command locates file here:
/usr/local/lib/librlog.so.5

file contents looks like this
Code: [Select]
^?ELF^A^A^A^@^@^@^@^@^@^@^@^@^C^@^C^@^A^@^@^@PA^@^@4^@^@^@dL^F^@^@^@^@^@4^@ ^@^E^@(^@$^@!^@^A^@^@^@^@^@^$
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^G^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^P$
^@¥^K^@^@^ÐW^@^@^N^@^@^@^R^@
^@^Ü^X^@^@°^?^@^@ö      ^@^@^R^@
^@Ó^X^@^@^@^@^@^@^@^@^@^@^R^@^@^@^Ñ^E^@^@^Àv^@^@T^@^@^@^R^@
^@B^U^@^@0y^@^@^Í^@^@^@"^@
^@Ç^X^@^@^@^@^@^@^@^@^@^@^R^@^@^@¥^W^@^@^Ð}^@^@ ^@^@^@^R^@
^@[^Z^@^@^Ù^Í^@^@^T^@^@^@!^@^L^@^^^N^@^@^@^@^@^@^@^@^@^@^R^@^@^@¼^K^@^@ W^@^@^N^@^@^@^R^@
^@J^Y^@^@°^É^@^@a^@^@^@^R^@
^@Ô^A^@^@^@^@^@^@^@^@^@^@^R^@^@^@µ^B^@^@ÐR^@^@¯^A^@^@^R^@
^@^×^Y^@^@^@¶^@^@0^@^@^@!^@^S^@^ß^H^@^@pH^@^@^Ó^@^@^@^R^@
^@^H^X^@^@^P~^@^@4^@^@^@^R^@
^@[^P^@^@ m^@^@^Ö^@^@^@"^@

Any one else had a crack at installing clamfs ?
Am I the only one getting error after error ?
Live long and prosper.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: On Access Virus Protection ?
« Reply #43 on: December 25, 2011, 02:14:37 AM »
Code: [Select]
clamfs: error while loading shared libraries: librlog.so.5: cannot open shared object file: No such file or directory

find command locates file here:
/usr/local/lib/librlog.so.5

When you see an error like this, it's possible that a new library has been installed, but the system hasn't been updated. To do this enter:
Code: [Select]
$ sudo ldconfig..and try again
« Last Edit: December 25, 2011, 02:45:26 AM by Juanito »

Offline remus

  • Sr. Member
  • ****
  • Posts: 371
Re: On Access Virus Protection ?
« Reply #44 on: December 25, 2011, 02:19:59 AM »
That did the trick Juanito.

Code: [Select]
$ sudo ldconfig
ldconfig: /usr/lib/libstdc++.so.6.0.16-gdb.py is not a shared library, skipping
tc@box:/usr/local/bin$ clamfs
16:16:25 (clamfs.cxx:963) ClamFS v1.0.1
16:16:25 (clamfs.cxx:964) Copyright (c) 2007,2008 Krzysztof Burghardt <krzysztof@burghardt.pl>
16:16:25 (clamfs.cxx:965) http://clamfs.sourceforge.net/
16:16:25 (clamfs.cxx:971) ClamFS need to be invoked with one parameter - location of configuration file
16:16:25 (clamfs.cxx:972) Example: clamfs /etc/clamfs/home.xml

This is the expected output.

Any theory's as to why this happened today and not last night ?
I had not made any changes to the system.
Live long and prosper.