You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Shannon Eric Peevey <sp...@unt.edu> on 2003/08/13 15:41:12 UTC
Re: Apache::AuthenNTLM module with HP/Apache
Antony Batten wrote:
>Hi,
>
>Sorry to direct email you, but I am desperate, and was hoping the solution
>to the problem below would be a quick one from the people who wrote the
>module ;)
>
>Thanks,
>Antony.
>
>Appologies if this is no longer your domain, but ....
>
>
>[posted to comp.infosystems.www.servers.unix & comp.lang.perl.modules]
>
>We are trying to use the Apache::AuthenNTLM perl module with HP/Apache and
>mod_perl. We have prevented mod_perl from running our cgi-perl scripts (by
>using Apache directives to only use mod_perl for *PL files), as we want to
>use 5.8 for this, and the HP-supplied mod_perl is tied to 5.6.1
>
>Everything installs ok & the server starts ok. However, we get the following
>errors in the errorlog:
>
>[Fri Aug 08 13:39:47 2003] [error] failed to resolve handler
>`Apache::AuthenNTLM' [Fri Aug 08 13:39:47 2003] [error] [client
>30.254.43.59] Can't find 'boot_Authen__Smb' symbol in
>/opt/perl5.8/lib/site_perl/5.8.0/ PA-RISC1.1/auto/Authen/Smb/Smb.sl
>Compilation failed in require at
>/opt/perl5.8/lib/site_perl/5.8.0/PA-RISC1.1/Apache/AuthenNTLM.pm line 29.
>BEGIN failed--compilation aborted at
>/opt/perl5.8/lib/site_perl/5.8.0/PA-RISC1.1/Apache/AuthenNTLM.pm line 29.
>Compilation failed in require at (eval 5) line 3.
>
>Looks an odd error, as the symbol seems to be there (I am no programmer
>though :)
>
>marsweb@lsg03n03 $ nm
>/opt/perl5.8/lib/site_perl/5.8.0/PA-RISC1.1/auto/Authen/Smb/Smb.sl | grep
>boot
>boot_Authen__Smb |30816|extern|entry |
>boot_Authen__Smb |30936|extern|code |$CODE$
>
>Does anyone know what is causing the problem?
>We are really stumped here and I am up against a deadline to get this stuff
>working. All help greatly appreciated....
>
>perl version 5.8.0
>mod_perl version 5.6.1
>Apache::AuthenNTLM version 2.04
>Server version: HP Apache-based Web Server/2.0.43
>
>
>
Can you give us the correct version of mod_perl? (It should be 1.2x or
1.99x)
thanks,
speeves
cws
RE: Apache::AuthenNTLM module with HP/Apache
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Thu, 14 Aug 2003, Antony Batten wrote:
> Have asked the SA chappy to recompile the module as you
> suggested. Not sure if the approach you mention can be
> done though .... I think HP don't want us to add anything
> to their mod_perl distribution by adding modules to the
> main location. Can't we compile the module against 5.6.1
> but then put it somewhere else, and add that location to
> $PERL5LIB ?
Sure - that's quite common to do. The details are in
perlfaq8, but basically one compiles things as
perl Makefile.PL PREFIX=/home/me/perllib \
INSTALLMAN1DIR=/home/me/man/man1 \
INSTALLMAN3DIR=/home/me/man/man3
and 'make install' will place it under /home/me/perllib.
(make sure 'perl' above is your perl-5.6.1, as Shannon
mentioned). You can then either use the PERL5LIB environment
variable, or within your script or startup file, use
"use lib qw(....);" to point to this location.
--
best regards,
randy
RE: Apache::AuthenNTLM module with HP/Apache
Posted by Antony Batten <an...@top-dog.freeserve.co.uk>.
Hi Randy,Shannon ...
Have asked the SA chappy to recompile the module as you suggested.
Not sure if the approach you mention can be done though .... I think HP
don't want us to add anything to their mod_perl distribution by adding
modules to the main location. Can't we compile the module against 5.6.1 but
then put it somewhere else, and add that location to $PERL5LIB ?
I think mod_perl is using a distribution in
/opt/hpws/apache/perl5.6.1/whatever...
We currently have it (compiled against 5.8) in /opt/perl5.8/lib/whatever...
Can we put the (recompiled) module in a new location (say /opt/myperl/lib)
and say PERL5LIB=$PERL5LIB:/opt/myperl/lib ???
Sorry to have interrupted your sleep with my troubles ;)
Thanks all,
Antony.
-----Original Message-----
From: Shannon Eric Peevey [mailto:speeves@unt.edu]
Sent: 14 August 2003 10:35
To: Antony Batten
Cc: 'Randy Kobes'; richter@dev.ecos.de; modperl@perl.apache.org
Subject: Re: Apache::AuthenNTLM module with HP/Apache
Antony Batten wrote:
>Randy,
>
>OK thanks, I'll give that a try. I think we can compile the module
>against 5.6.1 .... It's just that we can't change the 5.6.1 install as
>it would break our support agreement with HP (so I am told) ... I
>presume we just have to 'install' the module in a different place after
>compiling it...
>
>Thanks v. much to all for helping me with this.
>
>Rgds,
>Antony
>
>-----Original Message-----
>From: Randy Kobes [mailto:randy@theoryx5.uwinnipeg.ca]
>Sent: 14 August 2003 07:23
>To: Antony Batten
>Cc: 'Shannon Eric Peevey'; richter@dev.ecos.de; modperl@perl.apache.org
>Subject: RE: Apache::AuthenNTLM module with HP/Apache
>
>
>On Wed, 13 Aug 2003, Antony Batten wrote:
>
>
>
>>Shannon,
>>
>>Thanks very much for the quick response. Here's the info you wanted (I
>>hope):
>>
>>HP-UX_Apache-based_Web_Server/2.0.46 (Unix) mod_perl/1.99_09
>>Perl/v5.6.1 DAV/2 configured
>>
>>Can my career be saved? ;0)
>>
>>Thanks again,
>>Antony.
>>
>>-----Original Message-----
>>From: Shannon Eric Peevey [mailto:speeves@unt.edu]
>>Sent: 13 August 2003 14:41
>>To: Antony Batten
>>Cc: richter@dev.ecos.de; modperl@perl.apache.org
>>Subject: Re: Apache::AuthenNTLM module with HP/Apache
>>
>>
>>Antony Batten wrote:
>>
>>
>[ .. ]
>
>
>>>We are trying to use the Apache::AuthenNTLM perl module with
>>>HP/Apache and mod_perl. We have prevented mod_perl from running our
>>>cgi-perl scripts (by using Apache directives to only use mod_perl for
>>>*PL files), as we want to use 5.8 for this, and the HP-supplied
>>>mod_perl is tied to 5.6.1
>>>
>>>Everything installs ok & the server starts ok. However, we get the
>>>following errors in the errorlog:
>>>
>>>[Fri Aug 08 13:39:47 2003] [error] failed to resolve handler
>>>`Apache::AuthenNTLM' [Fri Aug 08 13:39:47 2003] [error] [client
>>>30.254.43.59] Can't find 'boot_Authen__Smb' symbol in
>>>/opt/perl5.8/lib/site_perl/5.8.0/ PA-RISC1.1/auto/Authen/Smb/Smb.sl
>>>Compilation failed in require at
>>>/opt/perl5.8/lib/site_perl/5.8.0/PA-RISC1.1/Apache/AuthenNTLM.pm line
>>>29. BEGIN failed--compilation aborted at
>>>/opt/perl5.8/lib/site_perl/5.8.0/PA-RISC1.1/Apache/AuthenNTLM.pm line
>>>29. Compilation failed in require at (eval 5) line 3.
>>>
>>>
>
>I'm not sure I'm following your setup - is the mod_perl
>you're trying to use here compiled under Perl 5.6.1? And
>Apache::AuthenNTLM was compiled under Perl 5.8.0? That combination
>probably won't work in principle, as 5.6.1 and 5.8.0 are binary
>incompatible. If you're tied to mod_perl compiled under 5.6.1, try
>compiling and using an Apache::AuthenNTLM compiled under 5.6.1.
>
>
>
Thanks, Randy! (I just woke up in the middle of the night with the same
answer :)) )
Yes, use the perl binary that points to 5.6.1 when you run
"/path/to/perl5.6.1 Makefile.PL". (Running the rest of the install as
normal, of course ;) ) This will place the module in the appropriate
location for your mod_perl, that apache is using, to find it.
speeves
cws
Re: Apache::AuthenNTLM module with HP/Apache
Posted by Shannon Eric Peevey <sp...@unt.edu>.
Antony Batten wrote:
>Randy,
>
>OK thanks, I'll give that a try. I think we can compile the module against
>5.6.1 .... It's just that we can't change the 5.6.1 install as it would
>break our support agreement with HP (so I am told) ... I presume we just
>have to 'install' the module in a different place after compiling it...
>
>Thanks v. much to all for helping me with this.
>
>Rgds,
>Antony
>
>-----Original Message-----
>From: Randy Kobes [mailto:randy@theoryx5.uwinnipeg.ca]
>Sent: 14 August 2003 07:23
>To: Antony Batten
>Cc: 'Shannon Eric Peevey'; richter@dev.ecos.de; modperl@perl.apache.org
>Subject: RE: Apache::AuthenNTLM module with HP/Apache
>
>
>On Wed, 13 Aug 2003, Antony Batten wrote:
>
>
>
>>Shannon,
>>
>>Thanks very much for the quick response. Here's the info you wanted (I
>>hope):
>>
>>HP-UX_Apache-based_Web_Server/2.0.46 (Unix) mod_perl/1.99_09
>>Perl/v5.6.1 DAV/2 configured
>>
>>Can my career be saved? ;0)
>>
>>Thanks again,
>>Antony.
>>
>>-----Original Message-----
>>From: Shannon Eric Peevey [mailto:speeves@unt.edu]
>>Sent: 13 August 2003 14:41
>>To: Antony Batten
>>Cc: richter@dev.ecos.de; modperl@perl.apache.org
>>Subject: Re: Apache::AuthenNTLM module with HP/Apache
>>
>>
>>Antony Batten wrote:
>>
>>
>[ .. ]
>
>
>>>We are trying to use the Apache::AuthenNTLM perl module with
>>>HP/Apache and mod_perl. We have prevented mod_perl from running our
>>>cgi-perl scripts (by using Apache directives to only use mod_perl for
>>>*PL files), as we want to use 5.8 for this, and the HP-supplied
>>>mod_perl is tied to 5.6.1
>>>
>>>Everything installs ok & the server starts ok. However, we get the
>>>following errors in the errorlog:
>>>
>>>[Fri Aug 08 13:39:47 2003] [error] failed to resolve handler
>>>`Apache::AuthenNTLM' [Fri Aug 08 13:39:47 2003] [error] [client
>>>30.254.43.59] Can't find 'boot_Authen__Smb' symbol in
>>>/opt/perl5.8/lib/site_perl/5.8.0/ PA-RISC1.1/auto/Authen/Smb/Smb.sl
>>>Compilation failed in require at
>>>/opt/perl5.8/lib/site_perl/5.8.0/PA-RISC1.1/Apache/AuthenNTLM.pm line
>>>29. BEGIN failed--compilation aborted at
>>>/opt/perl5.8/lib/site_perl/5.8.0/PA-RISC1.1/Apache/AuthenNTLM.pm line
>>>29. Compilation failed in require at (eval 5) line 3.
>>>
>>>
>
>I'm not sure I'm following your setup - is the mod_perl
>you're trying to use here compiled under Perl 5.6.1? And Apache::AuthenNTLM
>was compiled under Perl 5.8.0? That combination probably won't work in
>principle, as 5.6.1 and 5.8.0 are binary incompatible. If you're tied to
>mod_perl compiled under 5.6.1, try compiling and using an Apache::AuthenNTLM
>compiled under 5.6.1.
>
>
>
Thanks, Randy! (I just woke up in the middle of the night with the same
answer :)) )
Yes, use the perl binary that points to 5.6.1 when you run
"/path/to/perl5.6.1 Makefile.PL". (Running the rest of the install as
normal, of course ;) ) This will place the module in the appropriate
location for your mod_perl, that apache is using, to find it.
speeves
cws
RE: Apache::AuthenNTLM module with HP/Apache
Posted by Antony Batten <an...@top-dog.freeserve.co.uk>.
Randy,
OK thanks, I'll give that a try. I think we can compile the module against
5.6.1 .... It's just that we can't change the 5.6.1 install as it would
break our support agreement with HP (so I am told) ... I presume we just
have to 'install' the module in a different place after compiling it...
Thanks v. much to all for helping me with this.
Rgds,
Antony
-----Original Message-----
From: Randy Kobes [mailto:randy@theoryx5.uwinnipeg.ca]
Sent: 14 August 2003 07:23
To: Antony Batten
Cc: 'Shannon Eric Peevey'; richter@dev.ecos.de; modperl@perl.apache.org
Subject: RE: Apache::AuthenNTLM module with HP/Apache
On Wed, 13 Aug 2003, Antony Batten wrote:
> Shannon,
>
> Thanks very much for the quick response. Here's the info you wanted (I
> hope):
>
> HP-UX_Apache-based_Web_Server/2.0.46 (Unix) mod_perl/1.99_09
> Perl/v5.6.1 DAV/2 configured
>
> Can my career be saved? ;0)
>
> Thanks again,
> Antony.
>
> -----Original Message-----
> From: Shannon Eric Peevey [mailto:speeves@unt.edu]
> Sent: 13 August 2003 14:41
> To: Antony Batten
> Cc: richter@dev.ecos.de; modperl@perl.apache.org
> Subject: Re: Apache::AuthenNTLM module with HP/Apache
>
>
> Antony Batten wrote:
[ .. ]
> >
> >We are trying to use the Apache::AuthenNTLM perl module with
> >HP/Apache and mod_perl. We have prevented mod_perl from running our
> >cgi-perl scripts (by using Apache directives to only use mod_perl for
> >*PL files), as we want to use 5.8 for this, and the HP-supplied
> >mod_perl is tied to 5.6.1
> >
> >Everything installs ok & the server starts ok. However, we get the
> >following errors in the errorlog:
> >
> >[Fri Aug 08 13:39:47 2003] [error] failed to resolve handler
> >`Apache::AuthenNTLM' [Fri Aug 08 13:39:47 2003] [error] [client
> >30.254.43.59] Can't find 'boot_Authen__Smb' symbol in
> >/opt/perl5.8/lib/site_perl/5.8.0/ PA-RISC1.1/auto/Authen/Smb/Smb.sl
> >Compilation failed in require at
> >/opt/perl5.8/lib/site_perl/5.8.0/PA-RISC1.1/Apache/AuthenNTLM.pm line
> >29. BEGIN failed--compilation aborted at
> >/opt/perl5.8/lib/site_perl/5.8.0/PA-RISC1.1/Apache/AuthenNTLM.pm line
> >29. Compilation failed in require at (eval 5) line 3.
I'm not sure I'm following your setup - is the mod_perl
you're trying to use here compiled under Perl 5.6.1? And Apache::AuthenNTLM
was compiled under Perl 5.8.0? That combination probably won't work in
principle, as 5.6.1 and 5.8.0 are binary incompatible. If you're tied to
mod_perl compiled under 5.6.1, try compiling and using an Apache::AuthenNTLM
compiled under 5.6.1.
--
best regards,
randy kobes
RE: Apache::AuthenNTLM module with HP/Apache
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Wed, 13 Aug 2003, Antony Batten wrote:
> Shannon,
>
> Thanks very much for the quick response. Here's the info you wanted (I
> hope):
>
> HP-UX_Apache-based_Web_Server/2.0.46 (Unix) mod_perl/1.99_09 Perl/v5.6.1
> DAV/2 configured
>
> Can my career be saved? ;0)
>
> Thanks again,
> Antony.
>
> -----Original Message-----
> From: Shannon Eric Peevey [mailto:speeves@unt.edu]
> Sent: 13 August 2003 14:41
> To: Antony Batten
> Cc: richter@dev.ecos.de; modperl@perl.apache.org
> Subject: Re: Apache::AuthenNTLM module with HP/Apache
>
>
> Antony Batten wrote:
[ .. ]
> >
> >We are trying to use the Apache::AuthenNTLM perl module with HP/Apache
> >and mod_perl. We have prevented mod_perl from running our cgi-perl
> >scripts (by using Apache directives to only use mod_perl for *PL
> >files), as we want to use 5.8 for this, and the HP-supplied mod_perl is
> >tied to 5.6.1
> >
> >Everything installs ok & the server starts ok. However, we get the
> >following errors in the errorlog:
> >
> >[Fri Aug 08 13:39:47 2003] [error] failed to resolve handler
> >`Apache::AuthenNTLM' [Fri Aug 08 13:39:47 2003] [error] [client
> >30.254.43.59] Can't find 'boot_Authen__Smb' symbol in
> >/opt/perl5.8/lib/site_perl/5.8.0/ PA-RISC1.1/auto/Authen/Smb/Smb.sl
> >Compilation failed in require at
> >/opt/perl5.8/lib/site_perl/5.8.0/PA-RISC1.1/Apache/AuthenNTLM.pm line
> >29. BEGIN failed--compilation aborted at
> >/opt/perl5.8/lib/site_perl/5.8.0/PA-RISC1.1/Apache/AuthenNTLM.pm line
> >29. Compilation failed in require at (eval 5) line 3.
I'm not sure I'm following your setup - is the mod_perl
you're trying to use here compiled under Perl 5.6.1? And
Apache::AuthenNTLM was compiled under Perl 5.8.0? That
combination probably won't work in principle, as 5.6.1
and 5.8.0 are binary incompatible. If you're tied to
mod_perl compiled under 5.6.1, try compiling and using
an Apache::AuthenNTLM compiled under 5.6.1.
--
best regards,
randy kobes
RE: Apache::AuthenNTLM module with HP/Apache
Posted by Antony Batten <an...@top-dog.freeserve.co.uk>.
Shannon,
Thanks very much for the quick response. Here's the info you wanted (I
hope):
HP-UX_Apache-based_Web_Server/2.0.46 (Unix) mod_perl/1.99_09 Perl/v5.6.1
DAV/2 configured
Can my career be saved? ;0)
Thanks again,
Antony.
-----Original Message-----
From: Shannon Eric Peevey [mailto:speeves@unt.edu]
Sent: 13 August 2003 14:41
To: Antony Batten
Cc: richter@dev.ecos.de; modperl@perl.apache.org
Subject: Re: Apache::AuthenNTLM module with HP/Apache
Antony Batten wrote:
>Hi,
>
>Sorry to direct email you, but I am desperate, and was hoping the
>solution to the problem below would be a quick one from the people who
>wrote the module ;)
>
>Thanks,
>Antony.
>
>Appologies if this is no longer your domain, but ....
>
>
>[posted to comp.infosystems.www.servers.unix & comp.lang.perl.modules]
>
>We are trying to use the Apache::AuthenNTLM perl module with HP/Apache
>and mod_perl. We have prevented mod_perl from running our cgi-perl
>scripts (by using Apache directives to only use mod_perl for *PL
>files), as we want to use 5.8 for this, and the HP-supplied mod_perl is
>tied to 5.6.1
>
>Everything installs ok & the server starts ok. However, we get the
>following errors in the errorlog:
>
>[Fri Aug 08 13:39:47 2003] [error] failed to resolve handler
>`Apache::AuthenNTLM' [Fri Aug 08 13:39:47 2003] [error] [client
>30.254.43.59] Can't find 'boot_Authen__Smb' symbol in
>/opt/perl5.8/lib/site_perl/5.8.0/ PA-RISC1.1/auto/Authen/Smb/Smb.sl
>Compilation failed in require at
>/opt/perl5.8/lib/site_perl/5.8.0/PA-RISC1.1/Apache/AuthenNTLM.pm line
>29. BEGIN failed--compilation aborted at
>/opt/perl5.8/lib/site_perl/5.8.0/PA-RISC1.1/Apache/AuthenNTLM.pm line
>29. Compilation failed in require at (eval 5) line 3.
>
>Looks an odd error, as the symbol seems to be there (I am no programmer
>though :)
>
>marsweb@lsg03n03 $ nm
>/opt/perl5.8/lib/site_perl/5.8.0/PA-RISC1.1/auto/Authen/Smb/Smb.sl |
>grep boot boot_Authen__Smb |30816|extern|entry |
>boot_Authen__Smb |30936|extern|code |$CODE$
>
>Does anyone know what is causing the problem?
>We are really stumped here and I am up against a deadline to get this stuff
>working. All help greatly appreciated....
>
>perl version 5.8.0
>mod_perl version 5.6.1
>Apache::AuthenNTLM version 2.04
>Server version: HP Apache-based Web Server/2.0.43
>
>
>
Can you give us the correct version of mod_perl? (It should be 1.2x or
1.99x)
thanks,
speeves
cws