perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From OpenMacNews <perl-dev.20.openmacn...@spamgourmet.com>
Subject Re: BUG REPORT: modperl(dev) make fails at "`APR_SO_TIMEOUT' undeclared"
Date Tue, 02 Dec 2003 20:58:53 GMT
>>> <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


Mime
View raw message