You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Carl Brewer <ca...@bl.echidna.id.au> on 2003/09/15 07:15:34 UTC
mp2 compile error on NetBSD 1.6.1 with current CVS
-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:
current CVS barfs at make time :
modperl_filter.c: In function `modperl_run_filter_init':
modperl_filter.c:362: parse error before `extern'
modperl_filter.c: In function `modperl_run_filter':
modperl_filter.c:434: parse error before `extern'
*** Error code 1
2. Used Components and their Configuration:
*** mod_perl version 1.9910
*** using /data/src/modperl-2.0/bin/../lib/Apache/BuildConfig.pm
*** Makefile.PL options:
MP_APXS => /usr/local/apache2/bin/apxs
MP_COMPAT_1X => 1
MP_GENERATE_XS => 1
MP_LIBNAME => mod_perl
MP_USE_DSO => 1
MP_USE_STATIC => 1
*** /usr/local/apache2/bin/httpd -V
Server version: Apache/2.0.47
Server built: Jul 10 2003 10:10:41
Server's Module Magic Number: 20020903:4
Architecture: 32-bit
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses disabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/usr/local/apache2"
-D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
*** /usr/local/perl-5.8.0/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
Platform:
osname=netbsd, osvers=1.6.1, archname=i386-netbsd
uname='netbsd steel1.stealstopper.com 1.6.1 netbsd 1.6.1 (generic)
#0: tue apr 8 12:05:52 utc 2003
autobuild@tgm.daemon.org:autobuildnetbsd-1-6i386objautobuildnetbsd-1-6srcsysarchi386compilegeneric
i386 '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=y, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing',
optimize='-O',
cppflags='-fno-strict-aliasing'
ccversion='', gccversion='2.95.3 20010315 (release) (NetBSD nb3)',
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=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -Wl,-rpath,/usr/pkg/lib
-Wl,-rpath,/usr/local/lib -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib
libs=-lm -lc -lposix -lcrypt -lutil
perllibs=-lm -lc -lposix -lcrypt -lutil
libc=/usr/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef,
ccdlflags='-Wl,-whole-archive -lgcc -Wl,-no-whole-archive
-Wl,-E -Wl,-R/usr/local/perl-5.8.0/lib/5.8.0/i386-netbsd/CORE'
cccdlflags='-DPIC -fPIC ', lddlflags='--whole-archive -shared
-L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under netbsd
Compiled at Jun 4 2003 20:01:13
%ENV:
PERL_LWP_USE_HTTP_10="1"
@INC:
/usr/local/perl-5.8.0/lib/5.8.0/i386-netbsd
/usr/local/perl-5.8.0/lib/5.8.0
/usr/local/perl-5.8.0/lib/site_perl/5.8.0/i386-netbsd
/usr/local/perl-5.8.0/lib/site_perl/5.8.0
/usr/local/perl-5.8.0/lib/site_perl
.
3. This is the core dump trace: (if you get a core dump):
[CORE TRACE COMES HERE]
This report was generated by mp2bug on Mon Sep 15 05:14:30 2003 GMT.
-------------8<---------- End Bug Report --------------8<----------
Note: Complete the rest of the details and post this bug report to
dev <at> perl.apache.org. To subscribe to the list send an empty
email to dev-subscribe@perl.apache.org.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: mp2 compile error on NetBSD 1.6.1 with current CVS
Posted by Stas Bekman <st...@stason.org>.
Carl Brewer wrote:
> 1. Problem Description:
>
> current CVS barfs at make time :
>
> modperl_filter.c: In function `modperl_run_filter_init':
> modperl_filter.c:362: parse error before `extern'
> modperl_filter.c: In function `modperl_run_filter':
> modperl_filter.c:434: parse error before `extern'
> *** Error code 1
That's now fixed in cvs.
__________________________________________________________________
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: mp2 compile error on NetBSD 1.6.1 with current CVS
Posted by Stas Bekman <st...@stason.org>.
Stas Bekman wrote:
> Carl Brewer wrote:
>
>>
>>
>>
>>
>>
>> -------------8<---------- Start Bug Report ------------8<----------
>> 1. Problem Description:
>>
>> current CVS barfs at make time :
>>
>> modperl_filter.c: In function `modperl_run_filter_init':
>> modperl_filter.c:362: parse error before `extern'
>> modperl_filter.c: In function `modperl_run_filter':
>> modperl_filter.c:434: parse error before `extern'
>> *** Error code 1
>
>
> diff -u -r1.66 modperl_filter.c
> --- src/modules/perl/modperl_filter.c 20 Aug 2003 23:10:09 -0000
> 1.66
> +++ src/modules/perl/modperl_filter.c 15 Sep 2003 05:31:20 -0000
> @@ -359,6 +359,10 @@
>
> SvREFCNT_dec((SV*)args);
>
> +#ifdef USE_ITHREADS
> + MP_dINTERP_PUTBACK(interp);
> +#endif
> +
> MP_TRACE_f(MP_FUNC, MP_FILTER_NAME_FORMAT
> "return: %d\n", handler->name, status);
>
> @@ -429,6 +433,9 @@
> MP_FAILURE_CROAK(modperl_output_filter_flush(filter));
> }
>
> +#ifdef USE_ITHREADS
> + MP_dINTERP_PUTBACK(interp);
> +#endif
> MP_TRACE_f(MP_FUNC, MP_FILTER_NAME_FORMAT
> "return: %d\n", handler->name, status);
>
> But better just comment them out for now. I see some other problems that
> somehow caused by this change, discovered by t/SMOKE. I'm looking at it.
Try just the above one, apparently it's unrelated. the problem that I fight
with has too many participants in it and sometimes I lose some of them, when
trying things.
if you want to have fun try:
env PERL_HASH_SEED=1795512384 t/TEST -verbose directive/setupenv.t
protocol/eliza.t perl/ithreads2.t compat/conn_authen.t
Using -maxclients 1 removes the problem:
env PERL_HASH_SEED=1795512384 t/TEST -maxclients 1 -verbose
directive/setupenv.t protocol/eliza.t perl/ithreads2.t compat/conn_authen.t
which shows that our previous run-one-server test suite wasn't so good.
__________________________________________________________________
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: mp2 compile error on NetBSD 1.6.1 with current CVS
Posted by Stas Bekman <st...@stason.org>.
Carl Brewer wrote:
>
>
>
>
>
> -------------8<---------- Start Bug Report ------------8<----------
> 1. Problem Description:
>
> current CVS barfs at make time :
>
> modperl_filter.c: In function `modperl_run_filter_init':
> modperl_filter.c:362: parse error before `extern'
> modperl_filter.c: In function `modperl_run_filter':
> modperl_filter.c:434: parse error before `extern'
> *** Error code 1
diff -u -r1.66 modperl_filter.c
--- src/modules/perl/modperl_filter.c 20 Aug 2003 23:10:09 -0000 1.66
+++ src/modules/perl/modperl_filter.c 15 Sep 2003 05:31:20 -0000
@@ -359,6 +359,10 @@
SvREFCNT_dec((SV*)args);
+#ifdef USE_ITHREADS
+ MP_dINTERP_PUTBACK(interp);
+#endif
+
MP_TRACE_f(MP_FUNC, MP_FILTER_NAME_FORMAT
"return: %d\n", handler->name, status);
@@ -429,6 +433,9 @@
MP_FAILURE_CROAK(modperl_output_filter_flush(filter));
}
+#ifdef USE_ITHREADS
+ MP_dINTERP_PUTBACK(interp);
+#endif
MP_TRACE_f(MP_FUNC, MP_FILTER_NAME_FORMAT
"return: %d\n", handler->name, status);
But better just comment them out for now. I see some other problems that
somehow caused by this change, discovered by t/SMOKE. I'm looking at it.
Index: src/modules/perl/modperl_filter.c
===================================================================
RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_filter.c,v
retrieving revision 1.66
diff -u -r1.66 modperl_filter.c
--- src/modules/perl/modperl_filter.c 20 Aug 2003 23:10:09 -0000 1.66
+++ src/modules/perl/modperl_filter.c 15 Sep 2003 05:29:38 -0000
@@ -359,6 +359,8 @@
SvREFCNT_dec((SV*)args);
+// MP_dINTERP_PUTBACK(interp);
+
MP_TRACE_f(MP_FUNC, MP_FILTER_NAME_FORMAT
"return: %d\n", handler->name, status);
@@ -428,6 +430,8 @@
else {
MP_FAILURE_CROAK(modperl_output_filter_flush(filter));
}
+
+// MP_dINTERP_PUTBACK(interp);
MP_TRACE_f(MP_FUNC, MP_FILTER_NAME_FORMAT
"return: %d\n", handler->name, status);
__________________________________________________________________
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