You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "ODELL, TODD E (SWBT)" <to...@sbc.com> on 2002/08/26 15:26:51 UTC

Clashing Apache::Symbol - Symbol ?

I just recently got my mod_perl to work. Config is
mod_perl-1.27/Apache-1.3.26 on AIX 4.3.3.

I wrote a PerlAuthenHandler which uses Expect.pm, requiring the normal
Symbol.pm. In my startup.pl script for mod_perl I had this line:
use lib qw(/usr/opt/perl5/lib/site_perl/5.6.1/aix/Apache);
I get a "bareword" error when IO:Handle tries to call the gensym(Symbol.pm)
BUT if I comment the above line out it seems to get past that. I see that
there is an Apache::Symbol which looks quite different than the 'normal'
one.
My question is by letting the normal Symbol.pm load, so IO:Handle will work,
is that going to mess things up since the Apache::Symbol is different? Or
will everything be able to know which to use?

Second the reason I'm using Expect is to wrap a Unix SecurID shell. I've
tried installing the packages at CPAN for SecurID but I don't have access
any .h files, or libraries for this SecurID shell so nothing has been
installable. Any suggestions would be GREAT!

Todd E. O'Dell
Network Services - TSS Staff
Room 1118
500 E. 8th
Kansas City, MO 64106
Office: (816)275-3626
Alpha Page: 8883573754@archwireless.net
to2958@sbc.com


Re: Clashing Apache::Symbol - Symbol ?

Posted by Stas Bekman <st...@stason.org>.
ODELL, TODD E (SWBT) wrote:
> I just recently got my mod_perl to work. Config is
> mod_perl-1.27/Apache-1.3.26 on AIX 4.3.3.
> 
> I wrote a PerlAuthenHandler which uses Expect.pm, requiring the normal
> Symbol.pm. In my startup.pl script for mod_perl I had this line:
> use lib qw(/usr/opt/perl5/lib/site_perl/5.6.1/aix/Apache);
> I get a "bareword" error when IO:Handle tries to call the gensym(Symbol.pm)
> BUT if I comment the above line out it seems to get past that. I see that
> there is an Apache::Symbol which looks quite different than the 'normal'
> one.
> My question is by letting the normal Symbol.pm load, so IO:Handle will work,
> is that going to mess things up since the Apache::Symbol is different? Or
> will everything be able to know which to use?

eh? why in the world you are trying to do that? there is no 
/usr/opt/perl5/lib/site_perl/5.6.1/aix/Apache, there is
/usr/opt/perl5/lib/site_perl/5.6.1/aix. Of course you will have problems 
when you load the wrong package. It's Apache::Symbol, not Symbol in the 
dir Apache/.


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com