You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by OpenMacNews <pe...@spamgourmet.com> on 2003/12/01 17:36:00 UTC

Re: BUG REPORT: modperl(dev) make fails at "`APR_SO_TIMEOUT' undeclared" (perl-dev: message 5 of 20) w/ latest httpd(dev)

geoff,

i'll be happy to lend a hand testing on OSX, if helpful ... as to what specifically to mod in the code?  i'm not a 
great help ...

thanks!

richard

-- On Monday, December 1, 2003 11:32 AM -0500  Geoffrey Young <ge...@modperlcookbook.org> wrote:


>
>> Looks like you were.
>>
>>> in httpd-2.0/srclib/apr/CHANGES, i note:
>>>  *) Removed apr_socket_opt_{get|set}(..., APR_SO_TIMEOUT) which
>>>     was deprecated in favor of apr_socket_timeout_{get|set}().
>> ...
>>> i suspect that the APR_SO_TIMEOUT references need to be removed from the
>>> modperl code, and replaces with the apr_socket_timeout_{get|set}()
>>> calls, but simply not sure.
>>
>> 2.1 has dropped quite a few deprecated features. If we can do that
>> without any special #ifdef (i.e. 2.0.46 and higher support this API),
>> then I see no harm in adjusting it. Patches are very welcome.
>
> I'll look into this and fix it if possible.  hopefully there's no reason
> that we can't keep mod_perl 2.0 at least compiling with 2.1
>
> --Geoff
>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: BUG REPORT: modperl(dev) make fails at "`APR_SO_TIMEOUT' undeclared"

Posted by OpenMacNews <pe...@spamgourmet.com>.
geoff,

after staring at the results i'd just sent you, i wanted to take a look into the httpd.conf's that each test used ... 
specifically, in the case of:

(a) httpd-2.0.48
        /usr/local/httpd2048/sbin/httpd -d /Volumes/develop/ports/modperl2048/t -f
        /Volumes/develop/ports/modperl2048/t/conf/httpd.conf -DAPACHE2 -DPERL_USEITHREADS

(b) httpd-2.1.0(dev)
        /usr/sbin/httpd -d /Volumes/develop/ports/modperl-2.0/t -f /Volumes/develop/ports/modperl-2.0/t/conf/httpd.conf
        -DAPACHE2 -DPERL_USEITHREADS

however, i find the conf files missing!

[root]/> ls -al /Volumes/develop/ports/modperl2048/t/conf/httpd.conf 
/Volumes/develop/ports/modperl-2.0/t/conf/httpd.conf
        /bin/ls: /Volumes/develop/ports/modperl2048/t/conf/httpd.conf: No such file or directory
        /bin/ls: /Volumes/develop/ports/modperl-2.0/t/conf/httpd.conf: No such file or directory

am i missing something here, or is the lack of these files a problem?

richard

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: BUG REPORT: modperl(dev) make fails at "`APR_SO_TIMEOUT' undeclared"

Posted by Stas Bekman <st...@stason.org>.
Geoffrey Young wrote:
>>BTW, why Finfo doesn't use uid/gid but user/group? because of the C data
>>struct names? It's probably more intuitive to rename them to be uid/gid,
>>since they return the ids and not names.
>>
> 
> 
> I don't think we have typically been renaming struct slots but rather
> carrying them directly over for accessors/mutators.  at least I can't think
> of an example where we have renamed stuff.  personally, I prefer it the way
> it is - it keeps the C and the Perl API consistent.

sure, no problem. We just used to fix things when they aren't right in the C 
API. Calling uid/gid user/group is not the most intuitive choice. But I'm fine 
with whatever you think is right.

__________________________________________________________________
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: BUG REPORT: modperl(dev) make fails at "`APR_SO_TIMEOUT' undeclared"

Posted by Geoffrey Young <ge...@modperlcookbook.org>.
> 
> BTW, why Finfo doesn't use uid/gid but user/group? because of the C data
> struct names? It's probably more intuitive to rename them to be uid/gid,
> since they return the ids and not names.
> 

I don't think we have typically been renaming struct slots but rather
carrying them directly over for accessors/mutators.  at least I can't think
of an example where we have renamed stuff.  personally, I prefer it the way
it is - it keeps the C and the Perl API consistent.

--Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: BUG REPORT: modperl(dev) make fails at "`APR_SO_TIMEOUT' undeclared"

Posted by Stas Bekman <st...@stason.org>.
Stas Bekman wrote:
[...]
> Cool, I've missed that. It just looked weird. I guess they use 2*32-1 
> for nobody, so they can accomodate 2*32-2 users ;)

s/2\*32/2**32/ of course

__________________________________________________________________
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: BUG REPORT: modperl(dev) make fails at "`APR_SO_TIMEOUT' undeclared"

Posted by Stas Bekman <st...@stason.org>.
Geoffrey Young wrote:
>>I just tested and it seems to work fine for me under 'root'. Notice that
>>all files under t are chowned to the user/group the server is running
>>under (not-root) before the tests are run.
> 
> 
> yes, for me too, but on linux.  did you test any OSX variant, though?
> 
> richard, are you on darwin or panther?  I have access to darwin but not
> panther, so my debugging is limited.

Richard is on darwin, please see the original report:
http://marc.theaimsgroup.com/?l=apache-modperl-dev&m=106989642826330&w=2

>>I think I remember about a similar problem discussed on p5p
>>
>>    # testing : $r->finfo->user()
>>    # expected: 4294967294
>>    # received: -2
>>    not ok 7
>>    # testing : $r->finfo->group()
>>    # expected: 4294967294
>>    # received: -2
>>
>>Notice that the expected values are not very good. 
> 
> 
> but they match what Apache-Test is doing.  from richard's output
> 
>   ** root mode: changing the files ownership to 'nobody' (4294967294:4294967294)
> 
> so perl is being consistent with itself, at least.  apr  merely reports back
> the result from an fstat call, so the issue really does seem to be with the
> underlying OS.

Cool, I've missed that. It just looked weird. I guess they use 2*32-1 for 
nobody, so they can accomodate 2*32-2 users ;)

>>Here it is:
>>http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2002-01/msg01530.html
> 
> 
> those are good links.  however, according to nick in the first thread, they
> all seem to be talking about c/mtime, not uid/gid.

if you look at that perl test, they don't test uid/gid at all. So I won't be 
surprised if that's the same case.

BTW, why Finfo doesn't use uid/gid but user/group? because of the C data 
struct names? It's probably more intuitive to rename them to be uid/gid, since 
they return the ids and not names.

>>and we also need to document that that finfo doesn't give a valid
>>user/group under Darwin/UFS.
> 
> 
> I think that's premature at this point.  we can just keep skipping failing
> platforms, I suppose, but I'd rather find someone who really understands
> this OSX biz before we simply proclaim that the results are meaningless on
> that platform.  that it works fine as non-root (with sensical 501:0 values)
> leads me to believe that something else is going on.

sure, I suggested to do that if that's indeed the problem.

>>Geoff, you are taking care of this?
> 
> 
> haven't I been?

I thought you bailed out, saying that we should document that the tests are 
not to be run as root. Hence I was asking, so I won't step on your toes.

> I'll piddle around on moof a bit, but underlying POSIX stuff (or whatever it
> is) really isn't my strong point.

How does perl handles that on darwin/UFS? We should just do the same.

__________________________________________________________________
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: BUG REPORT: modperl(dev) make fails at "`APR_SO_TIMEOUT' undeclared"

Posted by Geoffrey Young <ge...@modperlcookbook.org>.
> I just tested and it seems to work fine for me under 'root'. Notice that
> all files under t are chowned to the user/group the server is running
> under (not-root) before the tests are run.

yes, for me too, but on linux.  did you test any OSX variant, though?

richard, are you on darwin or panther?  I have access to darwin but not
panther, so my debugging is limited.

> 
> I think I remember about a similar problem discussed on p5p
> 
>     # testing : $r->finfo->user()
>     # expected: 4294967294
>     # received: -2
>     not ok 7
>     # testing : $r->finfo->group()
>     # expected: 4294967294
>     # received: -2
> 
> Notice that the expected values are not very good. 

but they match what Apache-Test is doing.  from richard's output

  ** root mode: changing the files ownership to 'nobody' (4294967294:4294967294)

so perl is being consistent with itself, at least.  apr  merely reports back
the result from an fstat call, so the issue really does seem to be with the
underlying OS.

> Here it is:
> http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2002-01/msg01530.html

those are good links.  however, according to nick in the first thread, they
all seem to be talking about c/mtime, not uid/gid.

> 
> and we also need to document that that finfo doesn't give a valid
> user/group under Darwin/UFS.

I think that's premature at this point.  we can just keep skipping failing
platforms, I suppose, but I'd rather find someone who really understands
this OSX biz before we simply proclaim that the results are meaningless on
that platform.  that it works fine as non-root (with sensical 501:0 values)
leads me to believe that something else is going on.

> 
> Geoff, you are taking care of this?

haven't I been?

I'll piddle around on moof a bit, but underlying POSIX stuff (or whatever it
is) really isn't my strong point.

--Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: BUG REPORT: modperl(dev) make fails at "`APR_SO_TIMEOUT' undeclared"

Posted by Stas Bekman <st...@stason.org>.
Stas Bekman wrote:
> Geoffrey Young wrote:
> 
>>> geoff,
>>>
>>> fair enuf!
>>> (yeah, yeah -- RTFM ;-), altho for the life of me i can't find where it
>>> says run "make test" as non-root ...)
>>
>>
>>
>> it might not in the docs.  doing only install as root is considered by 
>> many
>> to be a best practice.  I'll try to remember to add something in the
>> appropriate place tomorrow (and, as always, patches welcome :)
> 
> 
> Please don't. The test should work just fine under 'root'. It's not a 
> documentation issue.

I just tested and it seems to work fine for me under 'root'. Notice that all 
files under t are chowned to the user/group the server is running under 
(not-root) before the tests are run.

I think I remember about a similar problem discussed on p5p

     # testing : $r->finfo->user()
     # expected: 4294967294
     # received: -2
     not ok 7
     # testing : $r->finfo->group()
     # expected: 4294967294
     # received: -2

Notice that the expected values are not very good. Here it is:
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2002-01/msg01530.html
perl's t/op/stat failing on MacOSX.

Arthur resolves to:
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2002-01/msg01555.html
   Seems like some bug in the UFS filesystem?
and more:
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2002-01/msg01578.html

So p5p decided to skip these sub-tests if $Is_Darwin && $Is_UFS;

from t/op/stat.t:

$Is_Darwin  = $^O eq 'darwin';
$Is_UFS     = $Is_Darwin && (() = `df -t ufs .`) == 2;

and we also need to document that that finfo doesn't give a valid user/group 
under Darwin/UFS.

Geoff, you are taking care of this?

__________________________________________________________________
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: BUG REPORT: modperl(dev) make fails at "`APR_SO_TIMEOUT' undeclared"

Posted by Stas Bekman <st...@stason.org>.
Geoffrey Young wrote:
>>geoff,
>>
>>fair enuf!
>>(yeah, yeah -- RTFM ;-), altho for the life of me i can't find where it
>>says run "make test" as non-root ...)
> 
> 
> it might not in the docs.  doing only install as root is considered by many
> to be a best practice.  I'll try to remember to add something in the
> appropriate place tomorrow (and, as always, patches welcome :)

Please don't. The test should work just fine under 'root'. It's not a 
documentation issue.

__________________________________________________________________
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: BUG REPORT: modperl(dev) make fails at "`APR_SO_TIMEOUT' undeclared"

Posted by Geoffrey Young <ge...@modperlcookbook.org>.
> geoff,
> 
> fair enuf!
> (yeah, yeah -- RTFM ;-), altho for the life of me i can't find where it
> says run "make test" as non-root ...)

it might not in the docs.  doing only install as root is considered by many
to be a best practice.  I'll try to remember to add something in the
appropriate place tomorrow (and, as always, patches welcome :)

> 
> bottom line:
> 
>     http-2.0.48:
>         All tests successful.
>         Files=1, Tests=17,  2 wallclock secs ( 1.32 cusr +  0.35 csys = 
> 1.67 CPU)
> 
>     http-2.1.0(dev):
>         All tests successful.
>         Files=1, Tests=17,  2 wallclock secs ( 1.27 cusr +  0.41 csys = 
> 1.68 CPU)

yea!

> 
> i suppose this is good news?

indeed :)

--Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: BUG REPORT: modperl(dev) make fails at "`APR_SO_TIMEOUT' undeclared"

Posted by OpenMacNews <pe...@spamgourmet.com>.
>> % t/TEST t/apr/finfo.t -v
>>     *** setting ulimit to allow core files
>>     ulimit -c unlimited; t/TEST 't/apr/finfo.t' -v
>>     *** root mode: changing the files ownership to 'nobody'
>> (4294967294:4294967294)
>
> are you doing all this as root?  that could be part of the problem.
>
> please 't/TEST t/apr/finfo.t -v' as a non-root user and see if that changes
> things.  you might need to change ownership of the files before things will
> work at all (or just scratch it all and start fresh, building and making as
> a non-root user).
>
> --Geoff

geoff,

fair enuf!
(yeah, yeah -- RTFM ;-), altho for the life of me i can't find where it says run "make test" as non-root ...)

bottom line:

	http-2.0.48:
		All tests successful.
		Files=1, Tests=17,  2 wallclock secs ( 1.32 cusr +  0.35 csys =  1.67 CPU)

	http-2.1.0(dev):
		All tests successful.
		Files=1, Tests=17,  2 wallclock secs ( 1.27 cusr +  0.41 csys =  1.68 CPU)

i suppose this is good news?

richard

and awaaaay we go again ...


[root]/usr/ports> chown -R www:wheel modperl2048/ modperl-2.0/
[root]/usr/ports> login www
...
[www]/usr/ports>


ps -ax | grep http
	13640 std  S+     0:00.00 grep http

unsetenv CFLAGS CPPFLAGS CXX CXXFLAGS LDFLAGS LDDLFLAGS LD_PREBIND
setenv LDFLAGS "-L/usr/include/apache2 -ldl"

cd /usr/ports/modperl2048
perl Makefile.PL MP_APXS=/usr/local/httpd2048/sbin/apxs MP_INST_APACHE2=1
	Reading Makefile.PL args from @ARGV
	   MP_APXS = /usr/local/httpd2048/sbin/apxs
	   MP_INST_APACHE2 = 1
	Configuring Apache/2.0.48 mod_perl/1.99_12-dev Perl/v5.8.2
make
sudo make install

cd /usr/ports/modperl-2.0
perl Makefile.PL MP_APXS=/usr/sbin/apxs MP_INST_APACHE2=1
	Reading Makefile.PL args from @ARGV
	   MP_APXS = /usr/sbin/apxs
	   MP_INST_APACHE2 = 1
	Configuring Apache/2.1.0-dev mod_perl/1.99_12-dev Perl/v5.8.2
make
sudo make install

cd /usr/ports/modperl2048 && t/TEST t/apr/finfo.t -v

	*** setting ulimit to allow core files
	ulimit -c unlimited; t/TEST 't/apr/finfo.t' -v
	/usr/local/httpd2048/sbin/httpd -d /Volumes/develop/ports/modperl2048/t -f 
/Volumes/develop/ports/modperl2048/t/conf/httpd.conf -DAPACHE2 -DPERL_USEITHREADS
	using Apache/2.0.48 (worker MPM)
	
	waiting 60 seconds for server to start: ....[Tue Dec 02 14:19:58 2003] [info] 22 Apache:: modules loaded
	[Tue Dec 02 14:19:58 2003] [info] 5 APR:: modules loaded
	[Tue Dec 02 14:19:58 2003] [info] base server + 12 vhosts ready to run tests
	...........................................
	waiting 60 seconds for server to start: ok (waited 46 secs)
	server localhost:8529 started
	server localhost:8530 listening (TestProtocol::echo)
	server localhost:8531 listening (TestProtocol::echo_filter)
	server localhost:8532 listening (TestProtocol::eliza)
	server localhost:8533 listening (TestPreConnection::note)
	server localhost:8534 listening (TestHooks::stacked_handlers2)
	server localhost:8535 listening (TestFilter::both_str_con_add)
	server localhost:8536 listening (TestFilter::in_bbs_inject_header)
	server localhost:8537 listening (TestFilter::in_bbs_msg)
	server localhost:8538 listening (TestFilter::in_str_msg)
	server localhost:8539 listening (TestDirective::perlmodule)
	server localhost:8540 listening (TestDirective::perlrequire)
	server localhost:8541 listening (TestPerl::ithreads)
	server localhost:8542 listening (TestDirective::perlloadmodule3)
	server localhost:8543 listening (TestDirective::perlloadmodule4)
	server localhost:8544 listening (TestDirective::perlloadmodule5)
	server localhost:8545 listening (TestDirective::perlloadmodule6)
	apr/finfo....1..17
	# Running under perl version 5.008002 for darwin
	# Current time local: Tue Dec  2 14:20:35 2003
	# Current time GMT:   Tue Dec  2 22:20:35 2003
	# Using Test.pm version 1.24
	# $r->finfo APR::Finfo=SCALAR(0x1d45a50)
	ok 1
	# $r->finfo->pool APR::Pool=SCALAR(0x2386bf8)
	ok 2
	# testing : stat /Volumes/develop/ports/modperl2048/t/htdocs/index.html
	# expected: 0
	# received: 0
	ok 3
	# testing : $r->finfo->device()
	# expected: 234881045
	# received: 234881045
	ok 4
	# testing : $r->finfo->inode()
	# expected: 3384022
	# received: 3384022
	ok 5
	# testing : $r->finfo->nlink()
	# expected: 1
	# received: 1
	ok 6
	# testing : $r->finfo->user()
	# expected: 501
	# received: 501
	ok 7
	# testing : $r->finfo->group()
	# expected: 0
	# received: 0
	ok 8
	# testing : $r->finfo->size()
	# expected: 632
	# received: 632
	ok 9
	# testing : $r->finfo->atime()
	# expected: 1070403645
	# received: 1070403645
	ok 10
	# testing : $r->finfo->mtime()
	# expected: 1070396908
	# received: 1070396908
	ok 11
	# testing : $r->finfo->ctime()
	# expected: 1070401439
	# received: 1070401439
	ok 12
	# testing : $r->finfo->protection() & APR::WREAD
	# expected: 4
	# received: 4
	ok 13
	# testing : $r->finfo->protection() & APR::WWRITE
	# expected: 0
	# received: 0
	ok 14
	# testing : $r->finfo->protection() & APR::WEXECUTE
	# expected: 0
	# received: 0
	ok 15
	# testing : $r->finfo->fname()
	# expected: /Volumes/develop/ports/modperl2048/t/htdocs/index.html
	# received: /Volumes/develop/ports/modperl2048/t/htdocs/index.html
	ok 16
	# testing : $r->finfo->filetype()
	# expected: 1
	# received: 1
	ok 17
	ok
	All tests successful.
	Files=1, Tests=17,  2 wallclock secs ( 1.32 cusr +  0.35 csys =  1.67 CPU)
	*** server localhost:8529 shutdown

ps -ax | grep http
	23444 std  R+     0:00.00 grep http

## logoff + logon to ENSURE ports are release (8529 seems to wanna stick around after server quit ...)

cd /usr/ports/modperl-2.0 && t/TEST t/apr/finfo.t -v

[g4edgar:~] www% cd /usr/ports/modperl-2.0 && t/TEST t/apr/finfo.t -v
total 112
drwxrwxrwx   31 www  wheel        1054 Dec  2 14:19 .
-rwxrwxrwx    1 www  wheel           0 Dec  2 14:18 blibdirs
drwxr-xr-x   10 www  wheel         340 Dec  2 14:13 WrapXS
-rwxrwxrwx    1 www  wheel           0 Dec  2 14:13 pm_to_blib
-rw-r--r--    1 www  wheel       35828 Dec  2 14:11 Makefile
drwxrwxrwx   17 www  wheel         578 Dec  2 14:11 xs
drwxrwxrwx   19 www  wheel         646 Dec  2 14:10 Apache-Test
drwxrwxrwx   13 www  wheel         442 Dec  2 14:10 ModPerl-Registry
drwxrwxrwx   11 www  wheel         374 Dec  2 14:10 lib
drwxrwxr-x  312 www  wheel       10608 Dec  2 11:51 ..
drwxrwxrwx   25 www  wheel         850 Dec  2 08:58 t
-rwxrwxrwx    1 www  wheel           0 Dec  2 08:15 glue_pods
drwxrwxrwx    8 www  wheel         272 Dec  2 08:15 blib
drwxrwxrwx   12 www  wheel         408 Dec  2 08:04 docs
*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST 't/apr/finfo.t' -v
/usr/sbin/httpd -d /Volumes/develop/ports/modperl-2.0/t -f /Volumes/develop/ports/modperl-2.0/t/conf/httpd.conf 
-DAPACHE2 -DPERL_USEITHREADS
using Apache/2.1.0-dev (worker MPM)

waiting 60 seconds for server to start: ......[Tue Dec 02 14:24:14 2003] [info] 22 Apache:: modules loaded
[Tue Dec 02 14:24:14 2003] [info] 5 APR:: modules loaded
[Tue Dec 02 14:24:14 2003] [info] base server + 12 vhosts ready to run tests
................
waiting 60 seconds for server to start: ok (waited 21 secs)
server localhost:8529 started
server localhost:8530 listening (TestProtocol::echo)
server localhost:8531 listening (TestProtocol::echo_filter)
server localhost:8532 listening (TestProtocol::eliza)
server localhost:8533 listening (TestPreConnection::note)
server localhost:8534 listening (TestHooks::stacked_handlers2)
server localhost:8535 listening (TestFilter::both_str_con_add)
server localhost:8536 listening (TestFilter::in_bbs_inject_header)
server localhost:8537 listening (TestFilter::in_bbs_msg)
server localhost:8538 listening (TestFilter::in_str_msg)
server localhost:8539 listening (TestDirective::perlmodule)
server localhost:8540 listening (TestDirective::perlrequire)
server localhost:8541 listening (TestPerl::ithreads)
server localhost:8542 listening (TestDirective::perlloadmodule3)
server localhost:8543 listening (TestDirective::perlloadmodule4)
server localhost:8544 listening (TestDirective::perlloadmodule5)
server localhost:8545 listening (TestDirective::perlloadmodule6)
apr/finfo....1..17
# Running under perl version 5.008002 for darwin
# Current time local: Tue Dec  2 14:24:22 2003
# Current time GMT:   Tue Dec  2 22:24:22 2003
# Using Test.pm version 1.24
# $r->finfo APR::Finfo=SCALAR(0xf9a7b0)
ok 1
# $r->finfo->pool APR::Pool=SCALAR(0x1245ed8)
ok 2
# testing : stat /Volumes/develop/ports/modperl-2.0/t/htdocs/index.html
# expected: 0
# received: 0
ok 3
# testing : $r->finfo->device()
# expected: 234881045
# received: 234881045
ok 4
# testing : $r->finfo->inode()
# expected: 3376188
# received: 3376188
ok 5
# testing : $r->finfo->nlink()
# expected: 1
# received: 1
ok 6
# testing : $r->finfo->user()
# expected: 501
# received: 501
ok 7
# testing : $r->finfo->group()
# expected: 0
# received: 0
ok 8
# testing : $r->finfo->size()
# expected: 632
# received: 632
ok 9
# testing : $r->finfo->atime()
# expected: 1070403873
# received: 1070403873
ok 10
# testing : $r->finfo->mtime()
# expected: 1070384308
# received: 1070384308
ok 11
# testing : $r->finfo->ctime()
# expected: 1070401439
# received: 1070401439
ok 12
# testing : $r->finfo->protection() & APR::WREAD
# expected: 4
# received: 4
ok 13
# testing : $r->finfo->protection() & APR::WWRITE
# expected: 2
# received: 2
ok 14
# testing : $r->finfo->protection() & APR::WEXECUTE
# expected: 1
# received: 1
ok 15
# testing : $r->finfo->fname()
# expected: /Volumes/develop/ports/modperl-2.0/t/htdocs/index.html
# received: /Volumes/develop/ports/modperl-2.0/t/htdocs/index.html
ok 16
# testing : $r->finfo->filetype()
# expected: 1
# received: 1
ok 17
ok
All tests successful.
Files=1, Tests=17,  2 wallclock secs ( 1.27 cusr +  0.41 csys =  1.68 CPU)
*** server localhost:8529 shutdown



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: BUG REPORT: modperl(dev) make fails at "`APR_SO_TIMEOUT' undeclared"

Posted by Geoffrey Young <ge...@modperlcookbook.org>.
> % t/TEST t/apr/finfo.t -v
>     *** setting ulimit to allow core files
>     ulimit -c unlimited; t/TEST 't/apr/finfo.t' -v
>     *** root mode: changing the files ownership to 'nobody'
> (4294967294:4294967294)

are you doing all this as root?  that could be part of the problem.

please 't/TEST t/apr/finfo.t -v' as a non-root user and see if that changes
things.  you might need to change ownership of the files before things will
work at all (or just scratch it all and start fresh, building and making as
a non-root user).

--Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: BUG REPORT: modperl(dev) make fails at "`APR_SO_TIMEOUT' undeclared"

Posted by OpenMacNews <pe...@spamgourmet.com>.
>>> <grumble ... spit ... getting a cup of coffee> ;-)
>>>
>>> i'll report back with results ...

geoff,

ok, here we go ...  (i've included all the following info for completeness/posterity's sake ...)
 bottom line:  the results of " t/TEST t/apr/finfo.t -v" for
        (a) httpd-2.0.48+modperl
        (b) httpd-2.1.0 (dev) +modperl
are, in fact, different.

ack!

richard

===============================


httpd-2.0.48

% cd /usr/ports/
% wget ftp://apache.secsup.org/pub/apache/dist/httpd/httpd-2.0.48.tar.gz
% gnutar zxf httpd-2.0.48.tar.gz
% cd /usr/ports/httpd-2.0.48

unsetenv CFLAGS CPPFLAGS CXX CXXFLAGS LDFLAGS LDDLFLAGS LD_PREBIND LC_ALL LANG LINGUAS

# this enables linking against libdl (dlcompat) ...

% vi /usr/ports/httpd-2.0.48/srclib/apr/configure
=============================================================
---	enable_dlopen=no
+++	enable_dlopen=yes
	enable_win32_dll=no
=============================================================


% ./configure \
--prefix=/usr/local/httpd2048 \
--with-mpm=worker \
--enable-layout=Darwin --with-port=80 \
--enable-mods-shared=all --enable-so \
--sysconfdir=/etc/apache2 \
--enable-dav --enable-dav-fs \
--enable-ssl --with-ssl \
--disable-suexec \
--with-z \
--enable-cgi \
--enable-proxy \
--enable-proxy-connect \
--enable-proxy-ftp \
--enable-proxy-http \
--enable-logio \
--enable-authn-dbm --enable-authz-dbm

% vi /usr/ports/httpd-2.0.48/build/config_vars.mk
=============================================================
---	EXTRA_LIBS = -lssl -lcrypto
+++	EXTRA_LIBS = -lssl -lcrypto -ldl -lz
=============================================================

% make
% make install


[root]/usr/local/httpd2048/sbin> ./httpd -V
	Server version: Apache/2.0.48
	Server built:   Dec  2 2003 11:14:52
	Server's Module Magic Number: 20020903:4
	Architecture:   32-bit
	Server compiled with....
	 -D APACHE_MPM_DIR="server/mpm/worker"
	 -D APR_HAS_MMAP
	 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
	 -D APR_USE_POSIXSEM_SERIALIZE
	 -D APR_USE_PTHREAD_SERIALIZE
	 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
	 -D APR_HAS_OTHER_CHILD
	 -D AP_HAVE_RELIABLE_PIPED_LOGS
	 -D HTTPD_ROOT="/usr/local/httpd2048"
	 -D SUEXEC_BIN="/usr/local/httpd2048/bin/suexec"
	 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
	 -D DEFAULT_ERRORLOG="logs/error_log"
	 -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
	 -D SERVER_CONFIG_FILE="/etc/apache2/httpd.conf"

[root]/usr/local/httpd2048/sbin> ./httpd -l
	Compiled in modules:
	  core.c
	  worker.c
	  http_core.c
	  mod_so.c


mod_perl-2.0

% cd /usr/ports

# 12/02/03 11:51:10
% cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login
% cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co -d modperl2048 modperl-2.0


% unsetenv CFLAGS CPPFLAGS CXX CXXFLAGS LDFLAGS LDDLFLAGS LD_PREBIND;\
setenv LDFLAGS "-L/usr/include/apache2 -ldl"

% cd /usr/ports/modperl2048

% perl Makefile.PL MP_APXS=/usr/local/httpd2048/sbin/apxs MP_INST_APACHE2=1

	Reading Makefile.PL args from @ARGV
	   MP_APXS = /usr/local/httpd2048/sbin/apxs
	   MP_INST_APACHE2 = 1
	Configuring Apache/2.0.48 mod_perl/1.99_12-dev Perl/v5.8.2
	    generating script t/TEST
	Checking if your kit is complete...
	Warning: the following files are missing in your kit:
	        META.yml
	Please inform the author.
	<snip>

% chown -R www:wheel /usr/ports/modperl2048/
% chmod -R g+w /usr/ports/modperl2048/

% make
% make install

% chmod o+x /usr/local/httpd2048/libexec/apache2/mod_perl.so

% vi /etc/apache2/httpd.conf
# ( ... temporary change ...)
=============================================================
---	ServerRoot "/usr"
+++	ServerRoot "/usr/local/httpd2048"

+++	LoadModule perl_module libexec/apache2/mod_perl.so

(deprecate the neceesary mod_auth & mod_access entries for 2.0.48 compat)

=============================================================

######################## RESULTS ###################################

###################
## APACHE 2.0.48
###################

% cd /usr/local/httpd2048/sbin
% ./apachectl start

	Server Version: Apache/2.0.48 (Unix) mod_perl/1.99_12-dev Perl/v5.8.2 DAV/2
	Server Built: Dec 2 2003 11:14:52
	API Version: 20020903:4

% ./apachectl stop
% cd /usr/ports/modperl2048
% t/TEST t/apr/finfo.t -v


% t/TEST t/apr/finfo.t -v
	*** setting ulimit to allow core files
	ulimit -c unlimited; t/TEST 't/apr/finfo.t' -v
	*** root mode: changing the files ownership to 'nobody' (4294967294:4294967294)
	*** /usr/bin/perl -e '     require POSIX;     POSIX::setuid(4294967294);     POSIX::setgid(4294967294);     print -r 
q{/Volumes/develop/ports/modperl2048/t} &&  -w _ && -x _ ? q{OK} : q{NOK}; '

	*** result: OK
	/usr/local/httpd2048/sbin/httpd -d /Volumes/develop/ports/modperl2048/t -f 
/Volumes/develop/ports/modperl2048/t/conf/httpd.conf -DAPACHE2 -DPERL_USEITHREADS
using Apache/2.0.48 (worker MPM)
	
	waiting 60 seconds for server to start: .....[Tue Dec 02 12:48:58 2003] [info] 22 Apache:: modules loaded
	[Tue Dec 02 12:48:58 2003] [info] 5 APR:: modules loaded
	[Tue Dec 02 12:48:58 2003] [info] base server + 12 vhosts ready to run tests
	.............................
	waiting 60 seconds for server to start: ok (waited 34 secs)
	server localhost:8529 started
	server localhost:8530 listening (TestProtocol::echo)
	server localhost:8531 listening (TestProtocol::echo_filter)
	server localhost:8532 listening (TestProtocol::eliza)
	server localhost:8533 listening (TestPreConnection::note)
	server localhost:8534 listening (TestHooks::stacked_handlers2)
	server localhost:8535 listening (TestFilter::both_str_con_add)
	server localhost:8536 listening (TestFilter::in_bbs_inject_header)
	server localhost:8537 listening (TestFilter::in_bbs_msg)
	server localhost:8538 listening (TestFilter::in_str_msg)
	server localhost:8539 listening (TestDirective::perlmodule)
	server localhost:8540 listening (TestDirective::perlrequire)
	server localhost:8541 listening (TestPerl::ithreads)
	server localhost:8542 listening (TestDirective::perlloadmodule3)
	server localhost:8543 listening (TestDirective::perlloadmodule4)
	server localhost:8544 listening (TestDirective::perlloadmodule5)
	server localhost:8545 listening (TestDirective::perlloadmodule6)
	apr/finfo....1..17
	# Running under perl version 5.008002 for darwin
	# Current time local: Tue Dec  2 12:49:19 2003
	# Current time GMT:   Tue Dec  2 20:49:19 2003
	# Using Test.pm version 1.24
# $r->finfo APR::Finfo=SCALAR(0x20f1390)
	ok 1
	# $r->finfo->pool APR::Pool=SCALAR(0x23866e8)
	ok 2
	# testing : stat /Volumes/develop/ports/modperl2048/t/htdocs/index.html
	# expected: 0
	# received: 0
	ok 3
	# testing : $r->finfo->device()
	# expected: 234881045
	# received: 234881045
	ok 4
	# testing : $r->finfo->inode()
	# expected: 3384022
	# received: 3384022
	ok 5
	# testing : $r->finfo->nlink()
	# expected: 1
	# received: 1
	ok 6
	# testing : $r->finfo->user()
	# expected: 4294967294
	# received: -2
	not ok 7
	# testing : $r->finfo->group()
	# expected: 4294967294
	# received: -2
	not ok 8
	# testing : $r->finfo->size()
	# expected: 632
	# received: 632
	ok 9
	# testing : $r->finfo->atime()
	# expected: 1070398169
	# received: 1070398169
	ok 10
	# testing : $r->finfo->mtime()
	# expected: 1070396908
	# received: 1070396908
	ok 11
	# testing : $r->finfo->ctime()
	# expected: 1070396939
	# received: 1070396939
	ok 12
	# testing : $r->finfo->protection() & APR::WREAD
	# expected: 4
	# received: 4
	ok 13
	# testing : $r->finfo->protection() & APR::WWRITE
	# expected: 0
	# received: 0
	ok 14
	# testing : $r->finfo->protection() & APR::WEXECUTE
	# expected: 0
	# received: 0
	ok 15
	# testing : $r->finfo->fname()
	# expected: /Volumes/develop/ports/modperl2048/t/htdocs/index.html
	# received: /Volumes/develop/ports/modperl2048/t/htdocs/index.html
	ok 16
	# testing : $r->finfo->filetype()
	# expected: 1
	# received: 1
	ok 17
	FAILED tests 7-8
	        Failed 2/17 tests, 88.24% okay
	Failed Test Stat Wstat Total Fail  Failed  List of Failed
	-------------------------------------------------------------------------------
	apr/finfo.t               17    2  11.76%  7-8
	*** server localhost:8529 shutdown
	!!! error running tests (please examine t/logs/error_log)
	



SANITY CHECK:
###################
## APACHE 2.1.0 (dev)
###################


# mod httpd.conf BACK to 2.1.0 (dev)
% cd /usr/ports/modperl-2.0/
% apachectl start

	Server Version: Apache/2.1.0-dev (Unix) mod_perl/1.99_12-dev Perl/v5.8.2 DAV/2
	Server Built: Nov 26 2003 14:58:49
	API Version: 20030821:2

% apachectl stop
% t/TEST t/apr/finfo.t -v

% ps -ax | grep http
	13355 std  R+     0:00.00 grep http

% t/TEST t/apr/finfo.t -v
	*** setting ulimit to allow core files
	ulimit -c unlimited; t/TEST 't/apr/finfo.t' -v
	*** root mode: changing the files ownership to 'nobody' (4294967294:4294967294)
	*** /usr/bin/perl -e '     require POSIX;     POSIX::setuid(4294967294);     POSIX::setgid(4294967294);     print -r 
q{/Volumes/develop/ports/modperl-2.0/t} &&  -w _ && -x _ ? q{OK} : q{NOK}; '
	
	*** result: OK
	/usr/sbin/httpd -d /Volumes/develop/ports/modperl-2.0/t -f /Volumes/develop/ports/modperl-2.0/t/conf/httpd.conf 
-DAPACHE2 -DPERL_USEITHREADS
	using Apache/2.1.0-dev (worker MPM)

	waiting 60 seconds for server to start: .......[Tue Dec 02 12:43:28 2003] [info] 22 Apache:: modules loaded
	[Tue Dec 02 12:43:28 2003] [info] 5 APR:: modules loaded
	[Tue Dec 02 12:43:28 2003] [info] base server + 12 vhosts ready to run tests
	......................................................
	waiting 60 seconds for server to start: giving up after 61 secs
	!!! server failed to start! (please examine t/logs/error_log)


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: BUG REPORT: modperl(dev) make fails at "`APR_SO_TIMEOUT' undeclared"

Posted by Geoffrey Young <ge...@modperlcookbook.org>.

>        # testing : $r->finfo->user()
>        # expected: 4294967294
>        # received: -2
>        not ok 7
>        # testing : $r->finfo->group()
>        # expected: 4294967294
>        # received: -2
>        not ok 8

ack!

this is apache 2.1, right?

if you're interested in helping OSX along, I'd be interested in seeing the
results from these two tests against apache 2.0.48, just to see if APR 1.0
introduced some changes.

other than that, I have no idea.  ack.

--Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: BUG REPORT: modperl(dev) make fails at "`APR_SO_TIMEOUT' undeclared"

Posted by OpenMacNews <pe...@spamgourmet.com>.
> OpenMacNews wrote:
>> hi geoff,
>>
>> i can verify that mod_perl compiles (thanks!) and runs w/ Apache2.10
>> (dev) on MacOSX 10.2.8 & 10.3.1:
>>
>>        Apache/2.1.0-dev (Unix) mod_perl/1.99_12-dev Perl/v5.8.2 DAV/2
>> PHP/4.3.4
>>
>> great!  thanks again!
>>
>> as fyi --  "make test" gives:
>>
>> Failed Test Stat Wstat Total Fail  Failed  List of Failed
>> -------------------------------------------------------------------------------
>>
>> apr/finfo.t               17    2  11.76%  7-8
>> 9 tests skipped.
>
> can you please run
>
> $  t/TEST t/apr/finfo.t -v
>
> and report it's output.
>
> thanks.
>
> --Geoff

certainly!  :-)

Richard

% t/TEST t/apr/finfo.t -v

        *** setting ulimit to allow core files
        ulimit -c unlimited; t/TEST 't/apr/finfo.t' -v
        /usr/sbin/httpd -d /Volumes/develop/ports/modperl-2.0/t -f /Volumes/develop/ports/modperl-2.0/t/conf/httpd.conf
        -DAPACHE2 -DPERL_USEITHREADS
        using Apache/2.1.0-dev (worker MPM)

        waiting 60 seconds for server to start: ......[Tue Dec 02 10:05:17 2003] [info] 22 Apache:: modules loaded
        [Tue Dec 02 10:05:17 2003] [info] 5 APR:: modules loaded
        [Tue Dec 02 10:05:17 2003] [info] base server + 12 vhosts ready to run tests
        ..(48)Address already in use: make_sock: could not bind to address [::]:8529
        (48)Address already in use: make_sock: could not bind to address [::]:8530
        (48)Address already in use: make_sock: could not bind to address [::]:8531
        (48)Address already in use: make_sock: could not bind to address [::]:8532
        (48)Address already in use: make_sock: could not bind to address [::]:8533
        (48)Address already in use: make_sock: could not bind to address [::]:8534
        (48)Address already in use: make_sock: could not bind to address [::]:8535
        (48)Address already in use: make_sock: could not bind to address [::]:8536
        (48)Address already in use: make_sock: could not bind to address [::]:8537
        (48)Address already in use: make_sock: could not bind to address [::]:8538
        (48)Address already in use: make_sock: could not bind to address [::]:8539
        (48)Address already in use: make_sock: could not bind to address [::]:8540
        (48)Address already in use: make_sock: could not bind to address [::]:8541
        (48)Address already in use: make_sock: could not bind to address [::]:8542
        (48)Address already in use: make_sock: could not bind to address [::]:8543
        (48)Address already in use: make_sock: could not bind to address [::]:8544
        (48)Address already in use: make_sock: could not bind to address [::]:8545
        ...................................
        waiting 60 seconds for server to start: ok (waited 42 secs)
        server localhost:8529 started
        server localhost:8530 listening (TestProtocol::echo)
        server localhost:8531 listening (TestProtocol::echo_filter)
        server localhost:8532 listening (TestProtocol::eliza)
        server localhost:8533 listening (TestPreConnection::note)
        server localhost:8534 listening (TestHooks::stacked_handlers2)
        server localhost:8535 listening (TestFilter::both_str_con_add)
        server localhost:8536 listening (TestFilter::in_bbs_inject_header)
        server localhost:8537 listening (TestFilter::in_bbs_msg)
        server localhost:8538 listening (TestFilter::in_str_msg)
        server localhost:8539 listening (TestDirective::perlmodule)
        server localhost:8540 listening (TestDirective::perlrequire)
        server localhost:8541 listening (TestPerl::ithreads)
        server localhost:8542 listening (TestDirective::perlloadmodule3)
        server localhost:8543 listening (TestDirective::perlloadmodule4)
        server localhost:8544 listening (TestDirective::perlloadmodule5)
        server localhost:8545 listening (TestDirective::perlloadmodule6)
        apr/finfo....1..17
        # Running under perl version 5.008002 for darwin
        # Current time local: Tue Dec  2 10:05:47 2003
        # Current time GMT:   Tue Dec  2 18:05:47 2003
        # Using Test.pm version 1.24
        # $r->finfo APR::Finfo=SCALAR(0x196b320)
        ok 1
        # $r->finfo->pool APR::Pool=SCALAR(0x1246b68)
        ok 2
        # testing : stat /Volumes/develop/ports/modperl-2.0/t/htdocs/index.html
        # expected: 0
        # received: 0
        ok 3
        # testing : $r->finfo->device()
        # expected: 234881045
        # received: 234881045
        ok 4
        # testing : $r->finfo->inode()
        # expected: 3376188
        # received: 3376188
        ok 5
        # testing : $r->finfo->nlink()
        # expected: 1
        # received: 1
        ok 6
        # testing : $r->finfo->user()
        # expected: 4294967294
        # received: -2
        not ok 7
        # testing : $r->finfo->group()
        # expected: 4294967294
        # received: -2
        not ok 8
        # testing : $r->finfo->size()
        # expected: 632
        # received: 632
        ok 9
        # testing : $r->finfo->atime()
        # expected: 1070388357
        # received: 1070388357
        ok 10
        # testing : $r->finfo->mtime()
        # expected: 1070384308
        # received: 1070384308
        ok 11
        # testing : $r->finfo->ctime()
        # expected: 1070388051
        # received: 1070388051
        ok 12
        # testing : $r->finfo->protection() & APR::WREAD
        # expected: 4
        # received: 4
        ok 13
        # testing : $r->finfo->protection() & APR::WWRITE
        # expected: 2
        # received: 2
        ok 14
        # testing : $r->finfo->protection() & APR::WEXECUTE
        # expected: 1
        # received: 1
        ok 15
        # testing : $r->finfo->fname()
        # expected: /Volumes/develop/ports/modperl-2.0/t/htdocs/index.html
        # received: /Volumes/develop/ports/modperl-2.0/t/htdocs/index.html
        ok 16
        # testing : $r->finfo->filetype()
        # expected: 1
        # received: 1
        ok 17
        FAILED tests 7-8
                Failed 2/17 tests, 88.24% okay
        Failed Test Stat Wstat Total Fail  Failed  List of Failed
        -------------------------------------------------------------------------------
        apr/finfo.t               17    2  11.76%  7-8
        *** server localhost:8529 shutdown
        *** port 8529 still in use...
        ...............!!!
        server was shutdown but port 8529 is still in use, please shutdown the service using this port or select
        another port for the tests
        !!! port 8529 is in use, cannot determine server pid to shutdown
        !!! error running tests (please examine t/logs/error_log)



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: BUG REPORT: modperl(dev) make fails at "`APR_SO_TIMEOUT' undeclared"

Posted by Geoffrey Young <ge...@modperlcookbook.org>.

OpenMacNews wrote:
> hi geoff,
> 
> i can verify that mod_perl compiles (thanks!) and runs w/ Apache2.10
> (dev) on MacOSX 10.2.8 & 10.3.1:
> 
>        Apache/2.1.0-dev (Unix) mod_perl/1.99_12-dev Perl/v5.8.2 DAV/2
> PHP/4.3.4
> 
> great!  thanks again!
> 
> as fyi --  "make test" gives:
> 
> Failed Test Stat Wstat Total Fail  Failed  List of Failed
> -------------------------------------------------------------------------------
> 
> apr/finfo.t               17    2  11.76%  7-8
> 9 tests skipped.

can you please run

$  t/TEST t/apr/finfo.t -v

and report it's output.

thanks.

--Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: BUG REPORT: modperl(dev) make fails at "`APR_SO_TIMEOUT' undeclared"

Posted by OpenMacNews <pe...@spamgourmet.com>.
hi geoff,

i can verify that mod_perl compiles (thanks!) and runs w/ Apache2.10 (dev) on MacOSX 10.2.8 & 10.3.1:

        Apache/2.1.0-dev (Unix) mod_perl/1.99_12-dev Perl/v5.8.2 DAV/2 PHP/4.3.4

great!  thanks again!

as fyi --  "make test" gives:

Failed Test Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
apr/finfo.t               17    2  11.76%  7-8
9 tests skipped.
*** server localhost:8529 shutdown
!!! error running tests (please examine t/logs/error_log)
+--------------------------------------------------------+
| Please file a bug report: http://perl.apache.org/bugs/ |
+--------------------------------------------------------+
make: *** [run_tests] Error 1

and, for completeness, the contents of "t/logs/error_log" are included here at the bottom ...

cheers,

richard

-- On Tuesday, December 2, 2003 10:53 AM -0500  Geoffrey Young <ge...@modperlcookbook.org> wrote:


>
>
>>>> 2.1 has dropped quite a few deprecated features. If we can do that
>>>> without any special #ifdef (i.e. 2.0.46 and higher support this API),
>>>> then I see no harm in adjusting it. Patches are very welcome.
>>>
>>>
>>> I'll look into this and fix it if possible.  hopefully there's no reason
>>> that we can't keep mod_perl 2.0 at least compiling with 2.1
>
> current mod_perl 2.0 cvs now works with 2.1 (at least for the moment).
>
> back tested to 2.0.46 as well.
>
> --Geoff
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
> For additional commands, e-mail: dev-help@perl.apache.org
>

% cat t/logs/error_log

[Tue Dec 02 08:58:41 2003] [info] mod_unique_id: using ip addr 10.0.0.6
[Tue Dec 02 08:58:42 2003] [info] Init: Seeding PRNG with 0 bytes of entropy
[Tue Dec 02 08:58:42 2003] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Tue Dec 02 08:58:42 2003] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Tue Dec 02 08:58:42 2003] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Dec 02 08:58:42 2003] [info] Init: Initializing (virtual) servers for SSL
[Tue Dec 02 08:58:42 2003] [info] Server: Apache/2.1.0-dev, Interface: mod_ssl/2.1.0-dev, Library: OpenSSL/0.9.7c
END in modperl_extra.pl, pid=12826
END in modperl_extra.pl, pid=12826
END in modperl_extra.pl, pid=12826
END in modperl_extra.pl, pid=12826
[Tue Dec 02 08:59:12 2003] [info] mod_unique_id: using ip addr 10.0.0.6
[Tue Dec 02 08:59:13 2003] [notice] Digest: generating secret for digest authentication ...
[Tue Dec 02 08:59:13 2003] [notice] Digest: done
[Tue Dec 02 08:59:13 2003] [info] Init: Seeding PRNG with 0 bytes of entropy
[Tue Dec 02 08:59:13 2003] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Tue Dec 02 08:59:14 2003] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Tue Dec 02 08:59:14 2003] [info] Init: Initializing (virtual) servers for SSL
[Tue Dec 02 08:59:14 2003] [info] Server: Apache/2.1.0-dev, Interface: mod_ssl/2.1.0-dev, Library: OpenSSL/0.9.7c
[Tue Dec 02 08:59:15 2003] [notice] Apache/2.1.0-dev (Unix) mod_perl/1.99_12-dev Perl/v5.8.2 DAV/2 PHP/4.3.4 
mod_ssl/2.1.0-dev OpenSSL/0.9.7c configured -- resuming normal operations
[Tue Dec 02 08:59:15 2003] [info] Server built: Nov 26 2003 14:58:49
[Tue Dec 02 08:59:15 2003] [debug] worker.c(1691): AcceptMutex: posixsem (default: posixsem)
[Tue Dec 02 08:59:21 2003] [error] server reached MaxClients setting, consider raising the MaxClients setting
[Tue Dec 02 08:59:45 2003] [info] [client 127.0.0.1] TestAPI::aplog test in progress
This log message comes with no header

*** The following warn entry is expected and it is harmless ***
[Tue Dec 02 08:59:45 2003] [debug] /Volumes/develop/ports/modperl-2.0/t/response/TestAPI/aplog.pm(48): log_serror test 
ok

*** The following warn entry is expected and it is harmless ***
[Tue Dec 02 08:59:45 2003] [debug] /Volumes/develop/ports/modperl-2.0/t/response/TestAPI/aplog.pm(52): (20014)Error 
string not specified yet: log_serror test 2 ok

*** The following error entry is expected and it is harmless ***
[Tue Dec 02 08:59:45 2003] [crit] [client 127.0.0.1] (20007)No time was provided and one was required.: log_rerror test 
ok

*** The following error entry is expected and it is harmless ***
[Tue Dec 02 08:59:45 2003] [error] $r->log_error test ok

*** The following error entry is expected and it is harmless ***
[Tue Dec 02 08:59:45 2003] [error] $s->log_error test ok
[Tue Dec 02 08:59:45 2003] [debug] /Volumes/develop/ports/modperl-2.0/t/response/TestAPI/aplog.pm(73): TestAPI::aplog 
test done
[Tue Dec 02 08:59:45 2003] [warn] ApacheApache->warn test ok
[Tue Dec 02 08:59:45 2003] [warn] $s->warn test ok
**** trying now*** at /Volumes/develop/ports/modperl-2.0/t/response/TestAPI/show.pm line 19.
Subroutine APR::URI::parse redefined at /System/Library/Perl/5.8.2/darwin-thread-multi/XSLoader.pm line 29.
Subroutine APR::URI::port_of_scheme redefined at /System/Library/Perl/5.8.2/darwin-thread-multi/XSLoader.pm line 29.
Subroutine APR::URI::unparse redefined at /System/Library/Perl/5.8.2/darwin-thread-multi/XSLoader.pm line 29.
Subroutine APR::URI::port redefined at /System/Library/Perl/5.8.2/darwin-thread-multi/XSLoader.pm line 29.
Subroutine APR::URI::scheme redefined at /System/Library/Perl/5.8.2/darwin-thread-multi/XSLoader.pm line 29.
Subroutine APR::URI::hostinfo redefined at /System/Library/Perl/5.8.2/darwin-thread-multi/XSLoader.pm line 29.
Subroutine APR::URI::user redefined at /System/Library/Perl/5.8.2/darwin-thread-multi/XSLoader.pm line 29.
Subroutine APR::URI::password redefined at /System/Library/Perl/5.8.2/darwin-thread-multi/XSLoader.pm line 29.
Subroutine APR::URI::hostname redefined at /System/Library/Perl/5.8.2/darwin-thread-multi/XSLoader.pm line 29.
Subroutine APR::URI::path redefined at /System/Library/Perl/5.8.2/darwin-thread-multi/XSLoader.pm line 29.
Subroutine APR::URI::query redefined at /System/Library/Perl/5.8.2/darwin-thread-multi/XSLoader.pm line 29.
Subroutine APR::URI::fragment redefined at /System/Library/Perl/5.8.2/darwin-thread-multi/XSLoader.pm line 29.
Subroutine APR::URI::is_initialized redefined at /System/Library/Perl/5.8.2/darwin-thread-multi/XSLoader.pm line 29.
Subroutine APR::URI::dns_looked_up redefined at /System/Library/Perl/5.8.2/darwin-thread-multi/XSLoader.pm line 29.
Subroutine APR::URI::dns_resolved redefined at /System/Library/Perl/5.8.2/darwin-thread-multi/XSLoader.pm line 29.
Subroutine Apache::RequestRec::finfo redefined at /System/Library/Perl/5.8.2/darwin-thread-multi/DynaLoader.pm line 249.
# Failed test 7 in /Volumes/develop/ports/modperl-2.0/t/response/TestAPR/finfo.pm at line 71 fail #4
# Failed test 8 in /Volumes/develop/ports/modperl-2.0/t/response/TestAPR/finfo.pm at line 71 fail #5

*** The following error entry is expected and it is harmless ***
[Tue Dec 02 09:00:54 2003] [error] Apache::log_error test ok
Constant subroutine Apache::RequestRec::IOBUFSIZE redefined at /System/Library/Perl/5.8.2/constant.pm line 108.

*** The following error entry is expected and it is harmless ***
[Tue Dec 02 09:01:41 2003] [error] [client 127.0.0.1] Undefined subroutine &TestError::runtime::no_such_func called at 
/Volumes/develop/ports/modperl-2.0/t/response/TestError/runtime.pm line 19.\n

*** The following error entry is expected and it is harmless ***
[Tue Dec 02 09:01:43 2003] [error] failed to resolve handler `TestError::syntax'
[Tue Dec 02 09:01:43 2003] [error] [client 127.0.0.1] syntax error at 
/Volumes/develop/ports/modperl-2.0/t/response/TestError/syntax.pm line 22, near "\\;"\nCompilation failed in require at 
(eval 136) line 3.\n
[echo_filter] get_brigade: Undefined error: 0
[Tue Dec 02 09:01:50 2003] [debug] mod_deflate.c(802): [client 127.0.0.1] Zlib: Inflated 54 to 59 : URL 
/TestFilter__both_str_req_mix
[Tue Dec 02 09:01:50 2003] [debug] mod_deflate.c(505): [client 127.0.0.1] Zlib: Compressed 20 to 20 : URL 
/TestFilter__both_str_req_mix

*** The following error entry is expected and it is harmless ***
[Tue Dec 02 09:02:59 2003] [error] [client 127.0.0.1] File does not exist: 
/Volumes/develop/ports/modperl-2.0/t/htdocs/nope

*** The following error entry is expected and it is harmless ***
[Tue Dec 02 09:03:43 2003] [error] [client 127.0.0.1] need AuthName: /TestModperl__setauth

*** The following error entry is expected and it is harmless ***
[Tue Dec 02 09:03:45 2003] [error] [client 127.0.0.1] File does not exist: 
/Volumes/develop/ports/modperl-2.0/t/htdocs/TestModperl__status

*** The following error entry is expected and it is harmless ***
[Tue Dec 02 09:03:45 2003] [error] [client 127.0.0.1] Died at 
/Volumes/develop/ports/modperl-2.0/t/response/TestModperl/status.pm line 24.\n

*** The following error entry is expected and it is harmless ***
Argument "foobar" isn't numeric.

*** The following error entry is expected and it is harmless ***
Argument "foo9bar" isn't numeric.
[Tue Dec 02 09:05:24 2003] [info] Child process pid=12829 is exiting
[Tue Dec 02 09:05:24 2003] [info] removed PID file /Volumes/develop/ports/modperl-2.0/t/logs/httpd.pid (pid=12827)
[Tue Dec 02 09:05:24 2003] [notice] caught SIGTERM, shutting down
END in modperl_extra.pl, pid=12827
END in modperl_extra.pl, pid=12827
END in modperl_extra.pl, pid=12827
END in modperl_extra.pl, pid=12827


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: BUG REPORT: modperl(dev) make fails at "`APR_SO_TIMEOUT' undeclared"

Posted by Geoffrey Young <ge...@modperlcookbook.org>.

>>> 2.1 has dropped quite a few deprecated features. If we can do that
>>> without any special #ifdef (i.e. 2.0.46 and higher support this API),
>>> then I see no harm in adjusting it. Patches are very welcome.
>>
>>
>> I'll look into this and fix it if possible.  hopefully there's no reason
>> that we can't keep mod_perl 2.0 at least compiling with 2.1

current mod_perl 2.0 cvs now works with 2.1 (at least for the moment).

back tested to 2.0.46 as well.

--Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org