mod perl libapreq make test problem

2003-02-26 Thread Lamotte Denis
make test
t/httpd -f `pwd`/t/httpd.conf
dyld: t/httpd Undefined symbols:
_ap_null_cleanup
_ap_pcalloc
_ap_register_cleanup
_ap_table_add
_ap_table_get
_ap_table_set
_ap_table_unset
_hvrv2table
_mod_perl_tie_table
_perl_request_rec
_sv2request_rec
_ap_day_snames
_ap_month_snames
_ap_null_cleanup
make: *** [start_httpd] Trace/BPT trap

i think ive successfully compile apache with mod perl
and mod php.
i'm working on Mac osx 10.2.4 with perl 5.8.0
apache 1.3.27
mod perl 1.27
php 4.3.0

as soon as i activate in any httpd.conf an mod_perl
like:
Appache::request or ::Registry or :Cookie

i've got the same problem.

so if any one can help ( already 2 weeks ok nightmare
:-) )

cordially

Lamotte Denis

=
Lamotte Denis

+352021268760

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


Fwd: Re: mod perl libapreq make test problem

2003-02-17 Thread Lamotte Denis
 Remarque : message transféré en pièce jointe. 

=
Lamotte Denis

+352021268760

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
---BeginMessage---
yes david i've followed your own article, the only
thing is that i have to modify the script BUILD.SH
with
glibtoolize --automake -c -f
aclocal
autoconf
automake -a -c

adding a g before libtoolize because the script cannot
find libtoolize on my computer.

i use the following steps:
Configure Apache.

  dlamotte% cd apache_x.x.xx
  dlamotte% ./configure

Build mod_perl:

  dlamotte% cd ../mod_perl-1.27
  dlamotte% perl Makefile.PL \
APACHE_SRC=../apache_1.3.27/src NO_HTTPD=1 \
USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1
  dlamotte% make

Build mod_php:

  dlamotte% cd ../php-4.3.0
  dlamotte% ./configure --with-apache=../apache_1.3.27
\
 --with-mysql --enable-track-vars
  dlamotte% make
  dlamotte% sudo make install

Reconfigure Apache to use mod_perl and PHP and build
it:

  dlamotte% cd ../apache_1.3.27
  dlamotte% ./configure \
 --activate-module=src/modules/perl/libperl.a \
 --activate-module=src/modules/php4/libphp4.a
 --with-layout=Darwin --server-uid=www \ 
 --server-gid=www --enable-module=most
  dlamotte% make

Test and install mod_perl

  dlamotte% cd ../mod_perl-1.27
  dlamotte% make test
  dlamotte% sudo make install.

Complete the Apache installation.

  dlamotte%  cd ../apache_1.3.27
  dlamotte% sudo make install

making the latest librapeq 1.1

dlamotte% cd ../httpd-apreq
dlamotte% sudo sh BUILD.sh
dlamotte%  ./configure
--with-apache-includes=/usr/include/httpd
dlamotte% make
dlamotte% sudo make install
dlamotte% perl Makefile.PL
dlamotte% make
dlamotte% make test - and the problems comes here :-(


Cordially

 --- David Wheeler [EMAIL PROTECTED] a écrit : 
On Sunday, February 16, 2003, at 09:37  AM, Lamotte
 Denis wrote:
 
  i think ive successfully compile apache with mod
 perl
  and mod php.
  i'm working on Mac osx 10.2.4 with perl 5.8.0
 
 Did you compile the libapreq C library before
 compiling 
 Apache::libapreq? See INSTALL.MacOSX in the libapreq
 distribution for 
 complete details. I've also published an update to
 may Build 
 Apache/mod_perl on Mac OS X article that covers
 this issue:
 
   

http://www.macdevcenter.com/pub/a/mac/2003/02/07/libapreq_update.html
 
 HTH,
 
 David
 
 -- 
 David Wheeler
 AIM: dwTheory
 [EMAIL PROTECTED] 
 ICQ: 15726394

 Yahoo!: dew7e

 Jabber: [EMAIL PROTECTED]
 Kineticode. Setting knowledge in motion.[sm]
  

=
Lamotte Denis

+352021268760

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

---End Message---


Fwd: mod perl libapreq make test problem

2003-02-17 Thread Lamotte Denis
I've found i nice url:
http://www.advogato.org/article/627.html
with this modification in config.pm :

What to do before attempting to compile ANY Perl
extensions
 more information: man 1 dyld
 The first thing you should do is change line 596 of
/System/Library/Perl/darwin/Config.pm to:
 lddlflags='-bundle -bundle_loader /usr/bin/perl
-lperl -L/System/Library/Perl/darwin/CORE'
 This causes perl extensions to be compiled with
two-level namespaces.  If you use flat namespaces, you
will have problems if two different dynamically
modules define the same symbol (the second one won't
import at all).  It has the added benefit that it lets
you know in advance if you're going to run into
undefined symbol problems, where undefined symbols are
suppressed in the flat namespace case.   

by doing this the problem goes worse in apperence
only!
the explanation of the error get clearer and appear
directly when doing the made command:
LD_RUN_PATH=/usr/local/src/httpd-apreq/Request/../blib/arch/auto/libapreq
cc  -bundle -bundle_loader /usr/bin/perl -lperl 
-L/System/Library/Perl/darwin/CORE Request.o  -o
../blib/arch/auto/Apache/Request/Request.bundle  
-L/usr/local/src/httpd-apreq/Request/../blib/arch/auto/libapreq
-lapreq  
ld: Undefined symbols:
_ap_null_cleanup
_ap_pcalloc
_ap_register_cleanup
_ap_table_add
_ap_table_get
_ap_table_set
_ap_table_unset
_hvrv2table
_mod_perl_tie_table
_perl_request_rec
_sv2request_rec
_ap_day_snames
_ap_find_path_info
_ap_get_client_block
_ap_getword
_ap_getword_conf
_ap_hard_timeout
_ap_ind
_ap_kill_timeout
_ap_log_rerror
_ap_make_array
_ap_make_dirstr_parent
_ap_make_table
_ap_month_snames
_ap_pfclose
_ap_pfdopen
_ap_popenf
_ap_psprintf
_ap_pstrcat
_ap_pstrdup
_ap_pstrndup
_ap_push_array
_ap_setup_client_block
_ap_should_client_block
_ap_table_do
_ap_unescape_url
make[1]: ***
[../blib/arch/auto/Apache/Request/Request.bundle]
Error 1
make: *** [subdirs] Error 2

i'm still in trouble so if you can help me

Cordially






=
Lamotte Denis

+352021268760

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com



mod perl libapreq make test problem

2003-02-16 Thread Lamotte Denis
make test
t/httpd -f `pwd`/t/httpd.conf
dyld: t/httpd Undefined symbols:
_ap_null_cleanup
_ap_pcalloc
_ap_register_cleanup
_ap_table_add
_ap_table_get
_ap_table_set
_ap_table_unset
_hvrv2table
_mod_perl_tie_table
_perl_request_rec
_sv2request_rec
_ap_day_snames
_ap_month_snames
_ap_null_cleanup
make: *** [start_httpd] Trace/BPT trap

i think ive successfully compile apache with mod perl
and mod php.
i'm working on Mac osx 10.2.4 with perl 5.8.0
apache 1.3.27
mod perl 1.27
php 4.3.0

as soon as i activate in any httpd.conf an mod_perl
like:
Appache::request or ::Registry or :Cookie

i've got the same problem.

so if any one can help ( already 2 weeks ok nightmare
:-) )

cordially

Lamotte Denis

=
Lamotte Denis

+352021268760

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com



Re: mod perl libapreq make test problem

2003-02-16 Thread David Wheeler
On Sunday, February 16, 2003, at 09:37  AM, Lamotte Denis wrote:


i think ive successfully compile apache with mod perl
and mod php.
i'm working on Mac osx 10.2.4 with perl 5.8.0


Did you compile the libapreq C library before compiling 
Apache::libapreq? See INSTALL.MacOSX in the libapreq distribution for 
complete details. I've also published an update to may Build 
Apache/mod_perl on Mac OS X article that covers this issue:

  http://www.macdevcenter.com/pub/a/mac/2003/02/07/libapreq_update.html

HTH,

David

--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED]  ICQ: 15726394
   Yahoo!: dew7e
   Jabber: [EMAIL PROTECTED]
Kineticode. Setting knowledge in motion.[sm]



[mp2] the make test problem saga continues...

2002-12-03 Thread Beau E. Cox

-8-- Start Bug Report 8--
1. Problem Description:

   A. Reinstalled apache 2.0.43 w/o my crazy SuSE layout, just:
  ./configure --with-mpm=worker

  Apache AOK.

   B. Pulled CVS source for mp2 as per web site instructions.

  perl Makefile.PL MP_AP_PREFIX=/usr/local/apache2 MP_INST_APACHE2=1
  make
  make test

   C. same Apache/Const.pm not found:

  Can't locate Apache/Const.pm in @INC (@INC contains:
Apache-Test/lib /usr/local/addons/modperl-2.0/Apache-Test/lib
/usr/local/addons/modperl-2.0/lib
/usr/local/addons/modperl-2.0/blib/lib
/usr/local/addons/modperl-2.0/blib/arch
/usr/local/addons/modperl-2.0/t/../Apache-Test/lib
/usr/local/addons/modperl-2.0/t/../lib
/usr/local/addons/modperl-2.0/t/../../lib
/usr/lib/perl5/5.8.0/i586-linux-thread-multi
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl .) at
/usr/local/addons/modperl-2.0/t/response/TestApache/subprocess.pm line 12.
  BEGIN failed--compilation aborted at
/usr/local/addons/modperl-2.0/t/response/TestApache/subprocess.pm line 12.
  Compilation failed in require at
/usr/local/addons/modperl-2.0/t/../Apache-Test/lib/Apache/TestConfigPerl.pm
line 382.

  I have Const.pm at:

  /usr/local/addons/modperl-2.0/blib/lib/Apache2/Apache

  but that's not in @INC. How can I modify the @INC within
  the ApacheTest environment? I can't find it in the Apache Test
  section of the docs.

   D. same tests failed:

  apache/subprocessFAILED tests 1-4
Failed 4/4 tests, 0.00% okay

  apr/perlio...FAILED tests 1-11
Failed 11/11 tests, 0.00% okay

   E. t/logs/error_log

  END in modperl_extra.pl, pid=18641
  END in modperl_extra.pl, pid=18641
  END in modperl_extra.pl, pid=18641
  END in modperl_extra.pl, pid=18641
  END in modperl_extra.pl, pid=18641
  END in modperl_extra.pl, pid=18641
  END in modperl_extra.pl, pid=18641
  END in modperl_extra.pl, pid=18641
  [Tue Dec 03 02:13:03 2002] [notice] Apache/2.0.43 (Unix)
mod_perl/1.99_08-dev Perl/v5.8.0 configured -- resuming normal operations
  [Tue Dec 03 02:13:03 2002] [info] Server built: Dec  3 2002 00:51:28
  [Tue Dec 03 02:13:03 2002] [debug] worker.c(1736): AcceptMutex:
sysvsem (default: sysvsem)
  [Tue Dec 03 02:13:04 2002] [error] server reached MaxClients setting,
consider raising the MaxClients setting
  # Failed test 1 in
/usr/local/addons/modperl-2.0/t/response/TestApache/subprocess.pm at line 55
  # Failed test 2 in
/usr/local/addons/modperl-2.0/t/response/TestApache/subprocess.pm at line 68
  # Failed test 3 in
/usr/local/addons/modperl-2.0/t/response/TestApache/subprocess.pm at line 82
  # Failed test 4 in
/usr/local/addons/modperl-2.0/t/response/TestApache/subprocess.pm at line 96
  [Tue Dec 03 02:13:09 2002] [info] [client 127.0.0.1] TestAPI::aplog
test in progress
  [Tue Dec 03 02:13:09 2002] [debug]
/usr/local/addons/modperl-2.0/t/response/TestAPI/aplog.pm(43): log_serror
test ok
  [Tue Dec 03 02:13:09 2002] [debug]
/usr/local/addons/modperl-2.0/t/response/TestAPI/aplog.pm(46): (20007)No
time was provided and one was required.: log_serror test 2 ok
  [Tue Dec 03 02:13:09 2002] [debug]
/usr/local/addons/modperl-2.0/t/response/TestAPI/aplog.pm(49): [client
127.0.0.1] (20007)No time was provided and one was required.: log_rerror
test ok
  [Tue Dec 03 02:13:09 2002] [error] $r-log_error test ok
  [Tue Dec 03 02:13:09 2002] [error] $s-log_error test ok
  [Tue Dec 03 02:13:09 2002] [debug]
/usr/local/addons/modperl-2.0/t/response/TestAPI/aplog.pm(63):
TestAPI::aplog test done
  [Tue Dec 03 02:13:09 2002] [warn] ApacheApache-warn test ok
  [Tue Dec 03 02:13:09 2002] [warn] $s-warn test ok
  [Tue Dec 03 02:13:17 2002] [error] [client 127.0.0.1] mkdir
/usr/local/addons/modperl-2.0/t/htdocs/perlio: Permission denied at
/usr/local/addons/modperl-2.0/Apache-Test/lib/Apache/TestUtil.pm line 128

  [Tue Dec 03 02:13:20 2002] [error] Apache::log_error test ok
  [Tue Dec 03 02:13:31 2002] [error] [client 127.0.0.1] File does not
exist: /usr/local/addons/modperl-2.0/t/htdocs/nope
  [Tue Dec 03 02:13:37 2002] [error] [client 127.0.0.1] need AuthName:
/TestModperl::setauth
  [Tue Dec 03 02:13:41 2002] [info] removed PID file
/usr/local/addons/modperl-2.0/t/logs/httpd.pid (pid=18642)
  [Tue Dec 03 02:13:41 2002] [notice] caught SIGTERM, shutting down
  END in modperl_extra.pl, pid=18642
  END in modperl_extra.pl, pid=18642
  END in modperl_extra.pl, pid=18642
  END in modperl_extra.pl, pid=18642
  END in modperl_extra.pl, 

RE: [mp2] the make test problem saga continues...

2002-12-03 Thread Beau E. Cox
Sir:

You are correct; after changing owner:group settings to 
my normal user, apr/perlio worked fine under that user!

Const.pm  apache/subprocess fail in the same way as
under root.

progress...ain't it great! :)

Aloha = Beau.

PS: boy, you are brave; over the years I've learned not to say:
I'm 100% sure that...
but, yes, it worked.
I seem to get burned almost every time I let that one slip! :)

-Original Message-
From: Stas Bekman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 4:14 AM
To: Beau E. Cox
Cc: Modperl
Subject: Re: [mp2] the make test problem saga continues...


   apache/subprocessFAILED tests 1-4
   Failed 4/4 tests, 0.00% okay
 
   apr/perlio...FAILED tests 1-11
   Failed 11/11 tests, 0.00% okay

OK, finally I've figured what's different in your environment from mine: 
You run the test suite as root!

I was able to reproduce the problem with apr/perlio.

The problem is that when you run the test suite as root, Apache::Test 
runs the server under User: nobody, which explains the failure. The dir 
t/htdocs doesn't have a+wx perms.

For now, please switch to your user, instead of root. And try again:

I'm 100% sure that apr/perlio will work for you now.

Does apache/subprocess now work for you?

re: Apache::Const not found, I'm still trying to guess what could be the 
problem, since I can't reproduce it.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com






Re: [mp2] the make test problem saga continues...

2002-12-03 Thread Stas Bekman


   C. same Apache/Const.pm not found:

  Can't locate Apache/Const.pm in @INC (@INC contains:

[...]

   D. same tests failed:

  apache/subprocessFAILED tests 1-4
	Failed 4/4 tests, 0.00% okay


OK, here is the patch that will 100% :) fix these two problems (apply 
manually or just use the cvs version):

Index: Apache-Test/lib/Apache/TestConfigPerl.pm
===
RCS file: 
/home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfigPerl.pm,v
retrieving revision 1.53
diff -u -r1.53 TestConfigPerl.pm
--- Apache-Test/lib/Apache/TestConfigPerl.pm1 Jul 2002 07:57:15 
-  1.53
+++ Apache-Test/lib/Apache/TestConfigPerl.pm3 Dec 2002 15:27:17 -
@@ -282,6 +282,13 @@
 sub configure_pm_tests {
 my $self = shift;

+# since server wasn't started yet, the modules in blib under
+# Apache2 can't be seen. So we must load Apache2.pm, without which
+# run_apache_test_config might fail to require modules
+if ($mod_perl::VERSION  1.99) {
+require Apache2;
+}
+
 for my $subdir (qw(Response Protocol Hooks Filter)) {
 my $dir = catfile $self-{vars}-{t_dir}, lc $subdir;
 next unless -d $dir;


--

I hope that now you get a clean make test.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



RE: [mp2] the make test problem saga continues...

2002-12-03 Thread Beau E. Cox
Ok Mr. 100%... ;-)

I'll get cvs again.

Aloha = Beau.

-Original Message-
From: Stas Bekman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 5:33 AM
To: Beau E. Cox
Cc: Modperl
Subject: Re: [mp2] the make test problem saga continues...



C. same Apache/Const.pm not found:

   Can't locate Apache/Const.pm in @INC (@INC contains:
[...]
D. same tests failed:

   apache/subprocessFAILED tests 1-4
   Failed 4/4 tests, 0.00% okay

OK, here is the patch that will 100% :) fix these two problems (apply
manually or just use the cvs version):

Index: Apache-Test/lib/Apache/TestConfigPerl.pm
===
RCS file:
/home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfigPerl.pm
,v
retrieving revision 1.53
diff -u -r1.53 TestConfigPerl.pm
--- Apache-Test/lib/Apache/TestConfigPerl.pm1 Jul 2002 07:57:15
-  1.53
+++ Apache-Test/lib/Apache/TestConfigPerl.pm3 Dec 2002 15:27:17 -
@@ -282,6 +282,13 @@
  sub configure_pm_tests {
  my $self = shift;

+# since server wasn't started yet, the modules in blib under
+# Apache2 can't be seen. So we must load Apache2.pm, without which
+# run_apache_test_config might fail to require modules
+if ($mod_perl::VERSION  1.99) {
+require Apache2;
+}
+
  for my $subdir (qw(Response Protocol Hooks Filter)) {
  my $dir = catfile $self-{vars}-{t_dir}, lc $subdir;
  next unless -d $dir;


--

I hope that now you get a clean make test.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com






RE: [mp2] the make test problem saga continues...

2002-12-03 Thread Beau E. Cox
THIS THREAD IS OFFICIALLY RETIRED

Yes, everthing works (although I still miss being King).

Thank you for your time and effort. I hope others will
benefit from what we went through.

Aloha = Beau.

-Original Message-
From: Stas Bekman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 5:33 AM
To: Beau E. Cox
Cc: Modperl
Subject: Re: [mp2] the make test problem saga continues...



C. same Apache/Const.pm not found:

   Can't locate Apache/Const.pm in @INC (@INC contains:
[...]
D. same tests failed:

   apache/subprocessFAILED tests 1-4
   Failed 4/4 tests, 0.00% okay

OK, here is the patch that will 100% :) fix these two problems (apply
manually or just use the cvs version):

Index: Apache-Test/lib/Apache/TestConfigPerl.pm
===
RCS file:
/home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfigPerl.pm
,v
retrieving revision 1.53
diff -u -r1.53 TestConfigPerl.pm
--- Apache-Test/lib/Apache/TestConfigPerl.pm1 Jul 2002 07:57:15
-  1.53
+++ Apache-Test/lib/Apache/TestConfigPerl.pm3 Dec 2002 15:27:17 -
@@ -282,6 +282,13 @@
  sub configure_pm_tests {
  my $self = shift;

+# since server wasn't started yet, the modules in blib under
+# Apache2 can't be seen. So we must load Apache2.pm, without which
+# run_apache_test_config might fail to require modules
+if ($mod_perl::VERSION  1.99) {
+require Apache2;
+}
+
  for my $subdir (qw(Response Protocol Hooks Filter)) {
  my $dir = catfile $self-{vars}-{t_dir}, lc $subdir;
  next unless -d $dir;


--

I hope that now you get a clean make test.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com






Re: make test problem error 111

2002-07-30 Thread Padraic Woods

Hi,
I reinstalled perl 5.6.1 with the following modules
-  HTML-Parser-3.26.tar.gz

-  libnet-1.12.tar.gz

-  libwww-perl-5.65.tar.gz

-  MIME-Base64-2.12.tar.gz

- URI-1.19.tar.gz
- Digest-MD5-2.20.tar.gz

and followed the instructions I used before to install apache,mod_perl +
mod_ssl and it worked for me...

Thanks for your help
Padraic


- Original Message -
From: Stas Bekman [EMAIL PROTECTED]
To: Padraic Woods [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, July 30, 2002 4:35 AM
Subject: Re: make test problem error 111


 Padraic Woods wrote:
  Hi,
  I'm trying to install apache + mod_perl + mod_ssl but get a error after
  running make test, I've tried skiping the make test but get a
  segmentation fault when I try starting apache.

 [...]

  ../apache_1.3.26/src/httpd -f `pwd`/t/conf/httpd.conf -X -d `pwd`/t 
 
  httpd listening on port 8529
 
  will write error_log to: t/logs/error_log
 
  () gets absurdforkletting apache warm up...\c

 that's an interesing message: gets absurdfork
 where does it come from?

 no error_log is bad,
 have you tried following the install notes in:

http://perl.apache.org/docs/1.0/guide/install.html#mod_perl_and_mod_ssl___op
enssl_

 if you get a segfault, please follow the instructions at:
 http://perl.apache.org/docs/1.0/guide/help.html#How_to_Report_Problems


 __
 Stas BekmanJAm_pH -- Just Another mod_perl Hacker
 http://stason.org/ mod_perl Guide --- http://perl.apache.org
 mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
 http://modperlbook.org http://apache.org   http://ticketmaster.com







Re: make test problem error 111

2002-07-29 Thread Stas Bekman

Padraic Woods wrote:
 Hi,
 I'm trying to install apache + mod_perl + mod_ssl but get a error after 
 running make test, I've tried skiping the make test but get a 
 segmentation fault when I try starting apache.

[...]

 ../apache_1.3.26/src/httpd -f `pwd`/t/conf/httpd.conf -X -d `pwd`/t 
 
 httpd listening on port 8529
 
 will write error_log to: t/logs/error_log
 
 () gets absurdforkletting apache warm up...\c

that's an interesing message: gets absurdfork
where does it come from?

no error_log is bad,
have you tried following the install notes in:
http://perl.apache.org/docs/1.0/guide/install.html#mod_perl_and_mod_ssl___openssl_

if you get a segfault, please follow the instructions at:
http://perl.apache.org/docs/1.0/guide/help.html#How_to_Report_Problems


__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




make test problem error 111

2002-07-18 Thread Padraic Woods



Hi,
I'm trying to install apache + mod_perl + mod_ssl 
but get aerror after running make test, I've tried skiping the make test 
butget a segmentation faultwhen I try starting apache.


Heres what I did,
#configure% cd mod_ssl-2.8.10-1.3.26% 
./configure --with-apache=../apache_1.3.26% cd ../mod_perl-1.27% perl 
Makefile.PL USE_APACI=1 EVERYTHING=1 SSL_BASE=/usr/local/ssl 
APACHE_PREFIX=/usr/local/apache 
APACI_ARGS=--enable-module=ssl,--enable-module=rewrite
# build/test/install Apache/mod_ssl/mod_perl% 
make test  make install

My setup,
Red Hat 7.2
Perl 5.6.1
mod_perl-1.27
openssl-0.9.6b
apache_1.3.26
mod_ssl-2.8.10-1.3.26

Heres the output from make test

(cd ../apache_1.3.26  PERL5LIB=/usr/local/src/mod_perl-1.27/lib: 
make)
make[1]: Entering directory `/usr/local/src/apache_1.3.26'
=== src
make[2]: Entering directory `/usr/local/src/apache_1.3.26'
make[3]: Entering directory `/usr/local/src/apache_1.3.26/src'
=== src/regex
make[4]: Nothing to be done for `all'.
=== src/regex
=== src/os/unix
make[4]: Nothing to be done for `all'.
=== src/os/unix
=== src/ap
make[4]: Nothing to be done for `all'.
=== src/ap
=== src/main
make[4]: Nothing to be done for `all'.
=== src/main
=== src/lib
=== src/lib
=== src/modules
=== src/modules/standard
make[5]: Nothing to be done for `all'.
=== src/modules/standard
=== src/modules/ssl
make[5]: Nothing to be done for `all'.
=== src/modules/ssl
=== src/modules/perl
make[5]: Nothing to be done for `all'.
=== src/modules/perl
=== src/modules
gcc -c -I. -I/usr/lib/perl5/5.6.1/i386-linux/CORE -I./os/unix -I./include 
-DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208110 -DMOD_PERL -DUSE_PERL_SSI 
-fno-strict-aliasing -I/usr/local/include -DUSE_HSREGEX -DEAPI -DNO_DL_NEEDED 
-fno-strict-aliasing -I/usr/local/include `./apaci` modules.c
gcc -c -I. -I/usr/lib/perl5/5.6.1/i386-linux/CORE -I./os/unix -I./include 
-DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208110 -DMOD_PERL -DUSE_PERL_SSI 
-fno-strict-aliasing -I/usr/local/include -DUSE_HSREGEX -DEAPI -DNO_DL_NEEDED 
-fno-strict-aliasing -I/usr/local/include `./apaci` buildmark.c
gcc -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208110 -DMOD_PERL -DUSE_PERL_SSI 
-fno-strict-aliasing -I/usr/local/include -DUSE_HSREGEX -DEAPI -DNO_DL_NEEDED 
-fno-strict-aliasing -I/usr/local/include `./apaci` -L/usr/local/ssl/lib \
-o httpd buildmark.o modules.o modules/standard/libstandard.a 
modules/ssl/libssl.a modules/perl/libperl.a main/libmain.a ./os/unix/libos.a 
ap/libap.a regex/libregex.a -lm -lcrypt -lndbm -lssl -lcrypto -rdynamic 
-L/usr/local/lib /usr/lib/perl5/5.6.1/i386-linux/auto/DynaLoader/DynaLoader.a 
-L/usr/lib/perl5/5.6.1/i386-linux/CORE -lperl -lnsl -ldl -lm -lc -lcrypt -lutil 

make[3]: Leaving directory `/usr/local/src/apache_1.3.26/src'
make[2]: Leaving directory `/usr/local/src/apache_1.3.26'
make[2]: Entering directory `/usr/local/src/apache_1.3.26'
=== src/support
make[3]: Entering directory `/usr/local/src/apache_1.3.26/src/support'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/src/apache_1.3.26/src/support'
=== src/support
make[2]: Leaving directory `/usr/local/src/apache_1.3.26'
make[2]: Entering directory `/usr/local/src/apache_1.3.26'
+-+
| Before you install the package you now should prepare the SSL |
| certificate system by running the 'make certificate' command. |
| For different situations the following variants are provided: |
| |
| % make certificate TYPE=dummy (dummy self-signed Snake Oil cert) |
| % make certificate TYPE=test (test cert signed by Snake Oil CA) |
| % make certificate TYPE=custom (custom cert signed by own CA) |
| % make certificate TYPE=existing (existing cert) |
| CRT=/path/to/your.crt [KEY=/path/to/your.key] |
| |
| Use TYPE=dummy when you're a vendor package maintainer, |
| the TYPE=test when you're an admin but want to do tests only, |
| the TYPE=custom when you're an admin willing to run a real server |
| and TYPE=existing when you're an admin who upgrades a server. |
| (The default is TYPE=test) |
| |
| Additionally add ALGO=RSA (default) or ALGO=DSA to select |
| the signature algorithm used for the generated certificate. |
| |
| Use 'make certificate VIEW=1' to display the generated data. |
| |
| Thanks for using Apache  mod_ssl. Ralf S. Engelschall |
| [EMAIL PROTECTED] |
| www.engelschall.com |
+-+
make[2]: Leaving directory `/usr/local/src/apache_1.3.26'
=== src
make[1]: Leaving directory `/usr/local/src/apache_1.3.26'
make[1]: Entering directory `/usr/local/src/mod_perl-1.27/Apache'
make[1]: Leaving directory `/usr/local/src/mod_perl-1.27/Apache'
make[1]: Entering directory `/usr/local/src/mod_perl-1.27/Connection'
make[1]: Leaving directory `/usr/local/src/mod_perl-1.27/Connection'
make[1]: Entering directory `/usr/local/src/mod_perl-1.27/Constants'
make[1]: Leaving directory `/usr/local/src/mod_perl-1.27/Constants'
make[1]: 

Re: make test problem

2002-05-20 Thread Doug MacEachern

On Mon, 20 May 2002, Jie Gao wrote:
 
 Just got one from cvs and 'make test' hangs on apr/util:
... 
 apr/util

likely the call to APR::generate_random_bytes, could be blocking on 
/dev/random or similar (strace would tell you).  i've disabled the test 
in cvs for the moment, as i've seen problems with it in the past on other 
platforms (hpux).




make test problem

2002-05-19 Thread Jie Gao

Hi All,

uname -a:

Linux xxx 2.4.17-02-shuckle #8 Thu Apr 18 13:15:58 EST 2002 i686 unknown

I've found Apache 2.0.36 doesn't work with mod_perl-1.99_01 on redhat 7.1.

With apache 2.0.35, I'm getting:

make test

...

/usr/bin/perl -Iblib/arch/Apache2 -Iblib/lib/Apache2 \
t/TEST -clean
setting ulimit to allow core files
ulimit -c unlimited; t/TEST -clean
APACHE_USER= APXS= APACHE_PORT= APACHE_GROUP= APACHE= \
/usr/bin/perl -Iblib/arch/Apache2 -Iblib/lib/Apache2 \
t/TEST
setting ulimit to allow core files
ulimit -c unlimited; t/TEST
/usr/local/apache2/bin/httpd  -d /export/src/mod_perl-1.99_01/t -f 
/export/src/mod_perl-1.99_01/t/conf/httpd.conf
-DAPACHE2
using Apache/2.0.35 (prefork MPM)
waiting for server to start: 00:00Syntax error on line 11 of 
/export/src/mod_perl-1.99_01/t/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/mod_rewrite.so into server: 
/usr/local/apache2/modules/mod_rewrite.so:
undefined symbol: apr_group_name_get

server has died with status 1 (t/logs/error_log wasn't created, start the server in 
the debug mode)
make: *** [run_tests] Error 143


httpd was configured as:

./configure \
--prefix=/usr/local/apache2 \
--with-mpm=prefork \
--enable-so \
--enable-mods-shared=mod_rewrite \
--enable-module=most

Any ideas?




Jie




Re: make test problem

2002-05-19 Thread Doug MacEachern

On Mon, 20 May 2002, Jie Gao wrote:
 
 I've found Apache 2.0.36 doesn't work with mod_perl-1.99_01 on redhat 7.1.

you can use modperl from cvs with .36 or wait for modperl 1.99_02 
(sometime this week).
 
 With apache 2.0.35, I'm getting:
...
 Cannot load /usr/local/apache2/modules/mod_rewrite.so into server:
 /usr/local/apache2/modules/mod_rewrite.so:
 undefined symbol: apr_group_name_get

looks like mod_rewrite that was compiled with .36 is still in the .35 
install tree.





Re: make test problem

2002-05-19 Thread Jie Gao

On Sun, 19 May 2002, Doug MacEachern wrote:

 On Mon, 20 May 2002, Jie Gao wrote:

  I've found Apache 2.0.36 doesn't work with mod_perl-1.99_01 on redhat 7.1.

 you can use modperl from cvs with .36 or wait for modperl 1.99_02
 (sometime this week).

Just got one from cvs and 'make test' hangs on apr/util:

/usr/bin/perl -Iblib/arch/Apache2 -Iblib/lib/Apache2 \
t/TEST -clean
*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST -clean
APACHE_USER= APXS= APACHE_PORT= APACHE_GROUP= APACHE= \
/usr/bin/perl -Iblib/arch/Apache2 -Iblib/lib/Apache2 \
t/TEST
*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST
/usr/local/apache2/bin/httpd  -d /export/src/modperl-2.0/t -f 
/export/src/modperl-2.0/t/conf/httpd.conf -DAPACHE2
using Apache/2.0.36 (prefork MPM)

waiting for server to start: ok (waited 0 secs)
server localhost.localdomain:8529 started
server localhost.localdomain:8530 listening (TestDirective::perlrequire)
server localhost.localdomain:8531 listening (TestDirective::perlmodule)
server localhost.localdomain:8532 listening (TestProtocol::echo)
server localhost.localdomain:8533 listening (TestProtocol::echo_filter)
server localhost.localdomain:8534 listening (TestProtocol::eliza)
server localhost.localdomain:8535 listening (TestFilter::input_msg)
apache/cgihandler...ok
apache/compat...ok
apache/compat2..ok
apache/conftree.ok
apache/constantsok
apache/post.ok
apache/read.ok
apache/scanhdrs.ok
apache/subprocess...skipped: perl  5.7.3
apache/writeok
api/access..ok
api/aplog...ok
api/conn_recok
api/lookup_uri..ok
api/lookup_uri2.ok
api/module..ok
api/r_subclass..ok
api/request_rec.ok
api/responseok
api/rutil...ok
api/send_fd.ok
api/sendfileok
api/server_rec..ok
api/server_util.ok
api/uri.ok
apr/base64..ok
apr/constants...ok
apr/dateok
apr/netlib..ok
apr/perlio..skipped: iolayers is not available with this version of Perl
apr/poolok
apr/string..ok
apr/table...ok
apr/util


perl -V

Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
osname=linux, osvers=2.4.17-0.13smp, archname=i386-linux
uname='linux daffy.perf.redhat.com 2.4.17-0.13smp #1 smp fri feb 1 10:30:48 est 
2002 i686 unknown '
config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dcc=gcc -Dcf_by=Red Hat, 
Inc. -Dcccdlflags=-fPIC
-Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Uusethreads -Uuseithreads 
-Uuselargefiles -Dd_dosuid
-Dd_semctl_semun -Di_db -Di_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm 
-Dlocincpth='
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
cc='gcc', ccflags ='-fno-strict-aliasing -I/usr/local/include',
optimize='-O2 -march=i386 -mcpu=i686',
cppflags='-fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='2.96 2731 (Red Hat Linux 7.1 2.96-98)', 
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -ldl -lm -lc -lcrypt -lutil
perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
libc=/lib/libc-2.2.4.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options:
  Built under linux
  Compiled at Feb 20 2002 15:01:16
  INC:
/usr/lib/perl5/5.6.1/i386-linux
/usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/i386-linux
/usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl


Regards,



Jie

  With apache 2.0.35, I'm getting:
 ...
  Cannot load /usr/local/apache2/modules/mod_rewrite.so into server:
  /usr/local/apache2/modules/mod_rewrite.so:
  undefined symbol: apr_group_name_get

 looks like mod_rewrite that was compiled with .36 is still in the .35
 install tree.








Re: make test problem

2002-05-19 Thread Stas Bekman

Jie Gao wrote:

 Just got one from cvs and 'make test' hangs on apr/util:

please run in the verbose mode:

t/TEST -v apr/util

if it doesn't help to reveal the problem try to enable tracing:
http://perl.apache.org/release/docs/2.0/user/config/config.html#General_directives
or attach with gdb and send us the trace of where it hangs.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com