Carl Brewer wrote:


Stas et al,

Just pulled down the latest from CVS (to test the IPv6 stuff again!)

Known problem? :




steel1: {12} t/REPORT -------------8<---------- Start Bug Report ------------8<---------- 1. Problem Description:

perl-2.0/xs/typemap Filter.xs > Filter.xsc && mv Filter.xsc Filter.c
cc -c -I/data/src/modperl-2.0/src/modules/perl -I/data/src/modperl-2.0/xs -I/usr/local/apache2/include -I/usr/local/apache2/include -fno-strict-aliasing -I/usr/pkg/include -DMOD_PERL -DMP_COMPAT_1X -DNETBSD -O -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -DPIC -fPIC "-I/usr/local/perl-5.8.1/lib/5.8.1/i386-netbsd/CORE" -DMP_HAVE_APR_LIBS Filter.c
In file included from Filter.xs:26:
/data/src/modperl-2.0/xs/Apache/Filter/Apache__Filter.h: In function `mpxs_Apache__Filter_print':
/data/src/modperl-2.0/xs/Apache/Filter/Apache__Filter.h:37: invalid lvalue in unary `&'
/data/src/modperl-2.0/xs/Apache/Filter/Apache__Filter.h:40: invalid lvalue in unary `&'
*** Error code 1

Carl, blame: http://cvs.apache.org/viewcvs.cgi/modperl-2.0/xs/modperl_xs_util.h?r1=1.18&r2=1.19&diff_format=h

Does this change make netbsd compiler happy?

Index: xs/modperl_xs_util.h
===================================================================
RCS file: /home/cvs/modperl-2.0/xs/modperl_xs_util.h,v
retrieving revision 1.19
diff -u -r1.19 modperl_xs_util.h
--- xs/modperl_xs_util.h        8 Apr 2004 01:41:36 -0000       1.19
+++ xs/modperl_xs_util.h        26 Apr 2004 00:55:57 -0000
@@ -101,7 +101,7 @@
         apr_status_t rv; \
         char *buf = SvPV(*MARK, wlen);        \
         MP_TRACE_o(MP_FUNC, "%d bytes [%s]", wlen, buf); \
-        rv = func(aTHX_ obj, buf, &(apr_size_t)wlen);    \
+        rv = func(aTHX_ obj, buf, (apr_size_t*)&wlen);    \
         if (rv != APR_SUCCESS) { \
             Perl_croak(aTHX_ modperl_apr_strerror(rv)); \
         } \



__________________________________________________________________
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