Hi ALL;
Ok I started this on the sunmanages list but I think it's come to a
head.
The problem.
We have a standard share of /var/opt/modules mounted by a few Solaris
machines 2.6-2.8. I have compiled the Solaris:Kstat module for all three
OS Revs and am trying to load the appropriate Module and sharred object
based on uname -sr
Works a little like this.
BEGIN {
use POSIX qw(uname);
my ($uname_s, $uname_r) = (POSIX::uname())[0,2];
unshift(@INC, "/var/opt/modules/$uname_s/$uname_r" );
}
use Solaris::Kstat;
This adds /var/opt/modules/SunOS/5.6 to INC but
DynaLoader cannot find Kstat.so in
/var/opt/modules/SunOS/5.6/$archname/auto/Kstat/
as documented in the use lib perldoc.
Can't locate loadable object for module Solaris::Kstat in @INC (@INC
contains: /var/opt/modules/SunOS/5.6
/var/opt/local/lib/perl5/5.00503/sun4-solaris
/var/opt/local/lib/perl5/5.00503
/var/opt/local/lib/perl5/site_perl/5.005/sun4-solaris
/var/opt/local/lib/perl5/site_perl/5.005 .) at ./dump_kstat line 9
BEGIN failed--compilation aborted at ./dump_kstat line 9.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]