Another Apache::Cookie problem

We are currently installing RT 2.0.11 and running Apache 1.3.20-16. After
trying many searches, I’m throwing in the towel and going to the source.
You may recall this type of error message upon starting Apache:

Starting httpd: [Thu Jan 24 17:48:31 2002] [error] Can’t locate
Apache/Cookie.pm in @INC (@INC contains: /opt/rt2/etc /opt/rt2/lib
/usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl . /etc/httpd/ /etc/httpd/lib/perl) at
/opt/rt2/bin/webmux.pl line 80.
BEGIN failed–compilation aborted at /opt/rt2/bin/webmux.pl line 80.
Compilation failed in require at (eval 1) line 1.

Syntax error on line 1448 of /etc/httpd/conf/httpd.conf:
Can’t locate Apache/Cookie.pm in @INC (@INC contains: /opt/rt2/etc
/opt/rt2/lib /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl . /etc/httpd/ /etc/httpd/lib/perl) at
/opt/rt2/bin/webmux.pl line 80.
BEGIN failed–compilation aborted at /opt/rt2/bin/webmux.pl line 80.
Compilation failed in require at (eval 1) line 1.

e[60G[e[1;31mFAILEDe[0;39m]

Testdeps shows that Apache::Cookies is not installed, however it is clear
that the latest libapreq (0.33) has been installed in fixdeps but
apache_request shows no directories and that the make file is not OK, as
shown here:

/usr/bin/perl ./tools/testdeps -fix mysql
Checking for DBI 1.18 …found
Checking for DBIx::DataSource 0.02 …found
Checking for DBIx::SearchBuilder 0.48 …found
Checking for HTML::Entities…found
Checking for MLDBM…found
Checking for Net::Domain…found
Checking for Net::SMTP…found
Checking for Params::Validate 0.02 …found
Checking for HTML::Mason 1.02 …found
Checking for CGI::Cookie 1.20 …found
Checking for Apache::Cookie…Apache::Cookie not installed.Installing with
CPAN…Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
Scanning cache /root/.cpan/build for sizes

There’s a new CPAN.pm version (v1.59) available!
[Current version is v1.52]
You might want to try
install Bundle::CPAN
reload cpan
without quitting the current session. It should be a seamless upgrade
while we are running…

Going to read /root/.cpan/sources/modules/03modlist.data.gz
Running make for J/JI/JIMW/libapreq-0.33.tar.gz

CPAN: MD5 security checks disabled because MD5 not installed.
Please consider installing the MD5 module.

libapreq-0.33/
libapreq-0.33/.cvsignore
libapreq-0.33/CREDITS
libapreq-0.33/Changes
libapreq-0.33/INSTALL
libapreq-0.33/LICENSE
libapreq-0.33/MANIFEST
libapreq-0.33/Makefile.PL
libapreq-0.33/Makefile.am
libapreq-0.33/README
libapreq-0.33/ToDo
libapreq-0.33/acconfig.h
libapreq-0.33/acinclude.m4
libapreq-0.33/aclocal.m4
libapreq-0.33/config.guess
libapreq-0.33/config.sub
libapreq-0.33/configure.in
libapreq-0.33/install-sh
libapreq-0.33/libapreq.pod
libapreq-0.33/libtool
libapreq-0.33/ltconfig
libapreq-0.33/ltmain.sh
libapreq-0.33/mkinstalldirs
libapreq-0.33/typemap
libapreq-0.33/Cookie/
libapreq-0.33/Cookie/.cvsignore
libapreq-0.33/Cookie/Cookie.pm
libapreq-0.33/Cookie/Cookie.xs
libapreq-0.33/Cookie/Makefile.PL
libapreq-0.33/Request/
libapreq-0.33/Request/.cvsignore
libapreq-0.33/Request/Makefile.PL
libapreq-0.33/Request/Request.pm
libapreq-0.33/Request/Request.xs
libapreq-0.33/c/
libapreq-0.33/c/.cvsignore
libapreq-0.33/c/Makefile.PL
libapreq-0.33/c/Makefile.am
libapreq-0.33/c/Makefile.noperl
libapreq-0.33/c/apache_cookie.c
libapreq-0.33/c/apache_cookie.h
libapreq-0.33/c/apache_multipart_buffer.c
libapreq-0.33/c/apache_multipart_buffer.h
libapreq-0.33/c/apache_request.c
libapreq-0.33/c/apache_request.h
libapreq-0.33/c/libapreq_config.h.in
libapreq-0.33/c/stamp-h.in
libapreq-0.33/c/Makefile.in
libapreq-0.33/eg/
libapreq-0.33/eg/c/
libapreq-0.33/eg/c/testapreq/
libapreq-0.33/eg/c/testapreq/Makefile.apxs
libapreq-0.33/eg/c/testapreq/Makefile.tmpl
libapreq-0.33/eg/c/testapreq/mod_testapreq.c
libapreq-0.33/eg/c/testapreq/mod_testapreq.module
libapreq-0.33/eg/perl/
libapreq-0.33/eg/perl/cookie.pl
libapreq-0.33/eg/perl/file_upload.pl
libapreq-0.33/lib/
libapreq-0.33/lib/Apache/
libapreq-0.33/lib/Apache/libapreq.pm
libapreq-0.33/missing
libapreq-0.33/Makefile.in
libapreq-0.33/configure
Removing previously used /root/.cpan/build/libapreq-0.33

CPAN.pm: Going to build J/JI/JIMW/libapreq-0.33.tar.gz

Checking if your kit is complete…
Looks good
Writing Makefile for libapreq
mkdir …/blib
mkdir …/blib/arch
mkdir …/blib/arch/auto
mkdir …/blib/arch/auto/libapreq
Warning: -L…/blib/arch/auto/libapreq changed to
-L/root/.cpan/build/libapreq-0.33/Request/…/blib/arch/auto/libapreq
Writing Makefile for Apache::Request
Warning: -L…/blib/arch/auto/libapreq changed to
-L/root/.cpan/build/libapreq-0.33/Cookie/…/blib/arch/auto/libapreq
Writing Makefile for Apache::Cookie
Writing Makefile for libapreq
make[1]: Entering directory /root/.cpan/build/libapreq-0.33' mkdir blib/lib mkdir blib/lib/auto mkdir blib/lib/auto/libapreq mkdir blib/man3 cp libapreq.pod blib/lib/libapreq.pod cp lib/Apache/libapreq.pm blib/lib/Apache/libapreq.pm make[2]: Entering directory/root/.cpan/build/libapreq-0.33/c’
gcc -c -I/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Apache/include
-I/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Apache/include/modules/perl
-fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686
-DVERSION=“0.10” -DXS_VERSION=“0.10” -fPIC
-I/usr/lib/perl5/5.6.0/i386-linux/CORE apache_request.c
In file included from apache_request.c:58:
apache_request.h:5:19: httpd.h: No such file or directory
apache_request.h:6:25: http_config.h: No such file or directory
apache_request.h:7:23: http_core.h: No such file or directory
apache_request.h:8:22: http_log.h: No such file or directory
apache_request.h:9:23: http_main.h: No such file or directory
apache_request.h:10:27: http_protocol.h: No such file or directory
apache_request.h:11:25: util_script.h: No such file or directory
make[2]: *** [apache_request.o] Error 1
make[2]: Leaving directory /root/.cpan/build/libapreq-0.33/c' make[1]: *** [subdirs] Error 2 make[1]: Leaving directory/root/.cpan/build/libapreq-0.33’
/usr/bin/make – NOT OK
Running make test
Oops, make had returned bad status
Running make install
Oops, make had returned bad status

Checking for Apache::Session 1.53 …found
Checking for Date::Parse…found
Checking for Date::Format…found
Checking for MIME::Entity 5.108 …found
Checking for Mail::Mailer 1.20 …found
Checking for Getopt::Long 2.24 …found
Checking for Tie::IxHash…found
Checking for Text::Wrapper…found
Checking for Text::Template…found
Checking for File::Spec 0.8 …found
Checking for Errno…found
Checking for FreezeThaw…found
Checking for File::Temp…found
Checking for Log::Dispatch 1.6 …found
Checking for DBD::mysql 2.0416 …found

Would the updated CPAN.pm be of any help or are we missing the boat
entirely? I’ve even tried the perl -MCPAN solution to no avail. I’m yet
another one of those who is not Perl savvy (but it is getting quite
interesting!) and any help on this is appreciated.

Thank you much,
Eric Tremont
QA, Focus Learning Corporation

winmail.dat (4.5 KB)

You need to install the apache source… It can’t find some header files that
are in the source for apache… then try running fixdeps again

In file included from apache_request.c:58:
apache_request.h:5:19: httpd.h: No such file or directory
apache_request.h:6:25: http_config.h: No such file or directory
apache_request.h:7:23: http_core.h: No such file or directory
apache_request.h:8:22: http_log.h: No such file or directory
apache_request.h:9:23: http_main.h: No such file or directory
apache_request.h:10:27: http_protocol.h: No such file or directory
apache_request.h:11:25: util_script.h: No such file or directory

Greg Smythe
SysAdmin
Intellstat Communications
WA State Resident

-----Original Message-----
From: Eric Tremont [mailto:erict@focuslearning.com
mailto:erict@focuslearning.com ]
Sent: Thursday, January 24, 2002 3:11 PM
To: rt-users@lists.fsck.com
Subject: [rt-users] another Apache::Cookie problem

We are currently installing RT 2.0.11 and running Apache 1.3.20-16.
After trying many searches, I’m throwing in the towel and going to the
source. You may recall this type of error message upon starting Apache:

<snip>

Hi Eric!

Do you use a Redhat System? I had exactly the same Problem with
Apache::Cookie on Redhat.

I fixed it by installing apache-devel and mod-perl and then manually
changing libapreq-0.33/c/apache_request.h:

Just use absolute paths in the directives where httpd_core.h and so on are
included and it should work for you after you have done a 'make realclean’
and another make.

I hope that could help you solve you problem.

Regards,

Benjamin Boksa

We are currently installing RT 2.0.11 and running Apache 1.3.20-16. After
trying many searches, I’m throwing in the towel and going to the source.
You may recall this type of error message upon starting Apache:

Starting httpd: [Thu Jan 24 17:48:31 2002] [error] Can’t locate
Apache/Cookie.pm in @INC (@INC contains: /opt/rt2/etc /opt/rt2/lib
/usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl . /etc/httpd/ /etc/httpd/lib/perl) at
/opt/rt2/bin/webmux.pl line 80.
BEGIN failed–compilation aborted at /opt/rt2/bin/webmux.pl line 80.
Compilation failed in require at (eval 1) line 1.

Syntax error on line 1448 of /etc/httpd/conf/httpd.conf:
Can’t locate Apache/Cookie.pm in @INC (@INC contains: /opt/rt2/etc
/opt/rt2/lib /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl . /etc/httpd/ /etc/httpd/lib/perl) at
/opt/rt2/bin/webmux.pl line 80.
BEGIN failed–compilation aborted at /opt/rt2/bin/webmux.pl line 80.
Compilation failed in require at (eval 1) line 1.

e[60G[e[1;31mFAILEDe[0;39m]

Testdeps shows that Apache::Cookies is not installed, however it is clear
that the latest libapreq (0.33) has been installed in fixdeps but
apache_request shows no directories and that the make file is not OK, as
shown here:

/usr/bin/perl ./tools/testdeps -fix mysql
Checking for DBI 1.18 …found
Checking for DBIx::DataSource 0.02 …found
Checking for DBIx::SearchBuilder 0.48 …found
Checking for HTML::Entities…found
Checking for MLDBM…found
Checking for Net::Domain…found
Checking for Net::SMTP…found
Checking for Params::Validate 0.02 …found
Checking for HTML::Mason 1.02 …found
Checking for CGI::Cookie 1.20 …found
Checking for Apache::Cookie…Apache::Cookie not installed.Installing with
CPAN…Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
Scanning cache /root/.cpan/build for sizes

There’s a new CPAN.pm version (v1.59) available!
[Current version is v1.52]
You might want to try
install Bundle::CPAN
reload cpan
without quitting the current session. It should be a seamless upgrade
while we are running…

Going to read /root/.cpan/sources/modules/03modlist.data.gz
Running make for J/JI/JIMW/libapreq-0.33.tar.gz

CPAN: MD5 security checks disabled because MD5 not installed.
Please consider installing the MD5 module.

libapreq-0.33/
libapreq-0.33/.cvsignore
libapreq-0.33/CREDITS
libapreq-0.33/Changes
libapreq-0.33/INSTALL
libapreq-0.33/LICENSE
libapreq-0.33/MANIFEST
libapreq-0.33/Makefile.PL
libapreq-0.33/Makefile.am
libapreq-0.33/README
libapreq-0.33/ToDo
libapreq-0.33/acconfig.h
libapreq-0.33/acinclude.m4
libapreq-0.33/aclocal.m4
libapreq-0.33/config.guess
libapreq-0.33/config.sub
libapreq-0.33/configure.in
libapreq-0.33/install-sh
libapreq-0.33/libapreq.pod
libapreq-0.33/libtool
libapreq-0.33/ltconfig
libapreq-0.33/ltmain.sh
libapreq-0.33/mkinstalldirs
libapreq-0.33/typemap
libapreq-0.33/Cookie/
libapreq-0.33/Cookie/.cvsignore
libapreq-0.33/Cookie/Cookie.pm
libapreq-0.33/Cookie/Cookie.xs
libapreq-0.33/Cookie/Makefile.PL
libapreq-0.33/Request/
libapreq-0.33/Request/.cvsignore
libapreq-0.33/Request/Makefile.PL
libapreq-0.33/Request/Request.pm
libapreq-0.33/Request/Request.xs
libapreq-0.33/c/
libapreq-0.33/c/.cvsignore
libapreq-0.33/c/Makefile.PL
libapreq-0.33/c/Makefile.am
libapreq-0.33/c/Makefile.noperl
libapreq-0.33/c/apache_cookie.c
libapreq-0.33/c/apache_cookie.h
libapreq-0.33/c/apache_multipart_buffer.c
libapreq-0.33/c/apache_multipart_buffer.h
libapreq-0.33/c/apache_request.c
libapreq-0.33/c/apache_request.h
libapreq-0.33/c/libapreq_config.h.in
libapreq-0.33/c/stamp-h.in
libapreq-0.33/c/Makefile.in
libapreq-0.33/eg/
libapreq-0.33/eg/c/
libapreq-0.33/eg/c/testapreq/
libapreq-0.33/eg/c/testapreq/Makefile.apxs
libapreq-0.33/eg/c/testapreq/Makefile.tmpl
libapreq-0.33/eg/c/testapreq/mod_testapreq.c
libapreq-0.33/eg/c/testapreq/mod_testapreq.module
libapreq-0.33/eg/perl/
libapreq-0.33/eg/perl/cookie.pl
libapreq-0.33/eg/perl/file_upload.pl
libapreq-0.33/lib/
libapreq-0.33/lib/Apache/
libapreq-0.33/lib/Apache/libapreq.pm
libapreq-0.33/missing
libapreq-0.33/Makefile.in
libapreq-0.33/configure
Removing previously used /root/.cpan/build/libapreq-0.33

CPAN.pm: Going to build J/JI/JIMW/libapreq-0.33.tar.gz

Checking if your kit is complete…
Looks good
Writing Makefile for libapreq
mkdir …/blib
mkdir …/blib/arch
mkdir …/blib/arch/auto
mkdir …/blib/arch/auto/libapreq
Warning: -L…/blib/arch/auto/libapreq changed to
-L/root/.cpan/build/libapreq-0.33/Request/…/blib/arch/auto/libapreq
Writing Makefile for Apache::Request
Warning: -L…/blib/arch/auto/libapreq changed to
-L/root/.cpan/build/libapreq-0.33/Cookie/…/blib/arch/auto/libapreq
Writing Makefile for Apache::Cookie
Writing Makefile for libapreq
make[1]: Entering directory /root/.cpan/build/libapreq-0.33' mkdir blib/lib mkdir blib/lib/auto mkdir blib/lib/auto/libapreq mkdir blib/man3 cp libapreq.pod blib/lib/libapreq.pod cp lib/Apache/libapreq.pm blib/lib/Apache/libapreq.pm make[2]: Entering directory/root/.cpan/build/libapreq-0.33/c’
gcc -c -I/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Apache/include
-I/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Apache/include/modules/perl
-fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686
-DVERSION=“0.10” -DXS_VERSION=“0.10” -fPIC
-I/usr/lib/perl5/5.6.0/i386-linux/CORE apache_request.c
In file included from apache_request.c:58:
apache_request.h:5:19: httpd.h: No such file or directory
apache_request.h:6:25: http_config.h: No such file or directory
apache_request.h:7:23: http_core.h: No such file or directory
apache_request.h:8:22: http_log.h: No such file or directory
apache_request.h:9:23: http_main.h: No such file or directory
apache_request.h:10:27: http_protocol.h: No such file or directory
apache_request.h:11:25: util_script.h: No such file or directory
make[2]: *** [apache_request.o] Error 1
make[2]: Leaving directory /root/.cpan/build/libapreq-0.33/c' make[1]: *** [subdirs] Error 2 make[1]: Leaving directory/root/.cpan/build/libapreq-0.33’
/usr/bin/make – NOT OK
Running make test
Oops, make had returned bad status
Running make install
Oops, make had returned bad status

Checking for Apache::Session 1.53 …found
Checking for Date::Parse…found
Checking for Date::Format…found
Checking for MIME::Entity 5.108 …found
Checking for Mail::Mailer 1.20 …found
Checking for Getopt::Long 2.24 …found
Checking for Tie::IxHash…found
Checking for Text::Wrapper…found
Checking for Text::Template…found
Checking for File::Spec 0.8 …found
Checking for Errno…found
Checking for FreezeThaw…found
Checking for File::Temp…found
Checking for Log::Dispatch 1.6 …found
Checking for DBD::mysql 2.0416 …found

Would the updated CPAN.pm be of any help or are we missing the boat
entirely? I’ve even tried the perl -MCPAN solution to no avail. I’m yet
another one of those who is not Perl savvy (but it is getting quite
interesting!) and any help on this is appreciated.

Thank you much,
Eric Tremont
QA, Focus Learning Corporation

Benjamin Boksa
b.boksa@sidebysite.de

side by site GmbH & Co. KG
Druckgestaltung & Webdesign

Barbarastr. 3-9 (Block 6)
D-50735 Koeln

Telefon: +49 221 2790964
Telefax: +49 221 2790965

http://www.sidebysite.de/