You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by David Leeson <dl...@carvel.co.uk> on 2000/09/19 12:35:36 UTC

libapreq on NT?

For my sins...

I have successfully built Apache 1.3.12 and mod-perl 1.24 on Win NT with
MS VC6.0 and pure PERL 5.005003 (i.e not ActiveState). However I am
struggling to get libapreq to integrate. I have tried the Perl only
installation
and when the following was put into the startup.pl file:

use Apache::Request;
use Apache::Cookie;

I got the following error:

[Mon Sep 11 14:33:35 2000] [error] Can't locate loadable object for module
Apache::Cookie in @INC (@INC contains: D:\TEMP\MODPERL\LIB
e:/apache/lib/perl E:\mod_perl\lib, C:\PERL\5.00503\site\lib
C:\PERL\5.00503\lib/MSWin32-x86 C:\PERL\5.00503\lib
C:\PERL\site\5.00503\lib/MSWin32-x86 C:\PERL\site\5.00503\lib . e:/apache/
e:/apache/lib/perl) at C:\PERL\site\5.00503\lib/mod_perl.pm line 65535
BEGIN failed--compilation aborted at conf/startup.pl line 16.

Syntax error on line 224 of e:/apache/conf/httpd.conf:
Can't locate loadable object for module Apache::Cookie in @INC (@INC
contains: D:\TEMP\MODPERL\LIB e:/apache/lib/perl E:\mod_perl\lib,
C:\PERL\5.00503\site\lib C:\PERL\5.00503\lib/MSWin32-x86
C:\PERL\5.00503\lib C:\PERL\site\5.00503\lib/MSWin32-x86
C:\PERL\site\5.00503\lib . e:/apache/ e:/apache/lib/perl) at
C:\PERL\site\5.00503\lib/mod_perl.pm line 65535
BEGIN failed--compilation aborted at conf/startup.pl line 16.

I have tried to build a libapreq.lib and link it in with the
ApacheModulePerl.dll
(in a similar way that perl.lib and ApacheCore.lib are linked in), but that
made
no difference (the .c files compiled ok though I had to add #include winsock.h
to get IN_ARPADDR structures).

I have also built a .dll using the similar technique to how
ApacheModulePerl.dll
is built (i.e. linking in ApacheCore.lib and perl.lib), but as you'd expect
this didn't
work - clutching at straws.

I'm currently porting to CGI and CGI::Apache, but would rather not have to
as NT is slow (or more accurately resource hungry) enough as it is!

Is there is a tried and tested way, and if so can someone please let me know.

BTW does the libapreq need to exist in any particular part of the Apache tree
(i.e. under src/modules?).

TIA.

regards

-david

-------------------- 
Technical Director (CTO)			mailto:dleeson@carvel.co.uk
Carvel Solutions Ltd.				http://www.carvel.co.uk
Software, Internet & E-Commerce Solutions
Vindolanda, Abbeytown, Carlisle, Cumbria, CA7 4RG, UK.
Tel/Fax: +44 16973 61173
Mobile: +44 411 125307

"Never be afraid to try something new. Remember, amateurs built the Ark;
professionals built the Titanic."