Subject: | ERROR Mesg: Your vendor has not defined SGI::FAM macro FAM_DEBUG_OFF at test.pl line 5 |
Hi,
When trying to
my $fam=SGI::FAM->new('test_app');
the module returns the error message:
Your vendor has not defined SGI::FAM macro FAM_DEBUG_OFF at test.pl line 5
Problem is: in auto/SGI/FAM/new.al is trying to call FAM_DEBUG_OFF() while this is a constant. So I've changed it to FAM_DEBUG_OFF and now it works nicely!
--- new.al.orig 2005-09-21 12:55:00.000000000 +0200
+++ new.al 2005-09-21 12:54:49.000000000 +0200
@@ -8,7 +8,7 @@
my ($class, $appname)=@_;
my $rawconn=new FAMConnectionPtr;
err $rawconn->Open2($appname or $0);
- bless {conn => $rawconn, monitors => {},
+ bless {conn => $rawconn, monitors => {}, debug => FAM_DEBUG_OFF,
suspended => {}, reqnums => {}}, $class;
}