Philip M. Gollucci wrote:
Hi,

setting MP_MAINTAINER=1 causes modperl2 to among other things try to build/test everything.

Unfortunately this doesn't work because --enable-maintainer-mode
to httpd's configure does not imply --enable-threads to apr's configure.

Therefore

you need to build apache with
./configure --enable-maintainer-mode --enable-threads

otherwise you get this

/home/pgollucci/dev/src/modperl rv=0 514 >make
cd "src/modules/perl" && make
cc -I/usr/home/pgollucci/dev/src/modperl/src/modules/perl -I/usr/home/pgollucci/dev/src/modperl/xs -I/usr/local/include/apr-1 -I/usr/local/include/apr-1 -I/usr/local/include -I/home/pgollucci/dev/httpd/2.1.5-dev/include -pipe -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -I/home/pgollucci/dev/perl/5.9.3/lib/perl5/5.9.3/mach/CORE -DMOD_PERL -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Werror -DAP_DEBUG -DAP_HAVE_DESIGNATED_INITIALIZER -DMP_COMPAT_1X -DMP_DEBUG -DMP_TRACE -I/usr/home/pgollucci/dev/src/httpd/srclib/pcre -DAP_DEBUG -ggdb3 -O0 -DPIC -fPIC -c modperl_util.c && mv modperl_util.o modperl_util.lo
modperl_util.c: In function `modperl_perl_call_list':
modperl_util.c:474: warning: implicit declaration of function `apr_os_thread_current'
*** Error code 1

This should fix the problem, Philip:

Index: src/modules/perl/modperl_util.h
===================================================================
--- src/modules/perl/modperl_util.h     (revision 160192)
+++ src/modules/perl/modperl_util.h     (working copy)
@@ -102,7 +102,11 @@
 void modperl_package_unload(pTHX_ const char *package);
 #if defined(MP_TRACE) && defined(APR_HAS_THREADS)
 #define MP_TRACEf_TID   "/tid 0x%lx"
+#if APR_HAS_THREADS
 #define MP_TRACEv_TID   (unsigned long)apr_os_thread_current()
+#else
+#define MP_TRACEv_TID   0
+#endif
 #define MP_TRACEv_TID_  MP_TRACEv_TID,
 #define MP_TRACEv__TID  ,MP_TRACEv_TID
 #else


-- __________________________________________________________________ Stas Bekman JAm_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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to