Carl Brewer wrote:
No, same error :
cd "src/modules/perl" && make -f Makefile.modperl
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 `&'
I've spent some time googling, trying to figure out what netbsd's gcc is unhappy about, but I couldn't find anything useful. Please try this patch instead:
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 01:42:20 -0000
@@ -97,11 +97,11 @@
/* XXX: we probably shouldn't croak here */
#define mpxs_write_loop(func, obj) \
while (MARK <= SP) { \
- STRLEN wlen; \
+ apr_size_t wlen; \
apr_status_t rv; \
- char *buf = SvPV(*MARK, wlen); \
+ char *buf = SvPV(*MARK, (STRLEN)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, &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]
