Ask Bjoern Hansen wrote:
> sick of spam, I was going to make an smtpd. Figured I should do it
> with Apache 2 and mod_perl.
>
> I am building with,
>
> cd [apache-2.0]
> ./configure --prefix=$HOME/apps/apache --with-mpm=threaded --enable-so
> make && make install
>
> cd [modperl-2.0]
> make realclean && ~/apps/perl Makefile.PL \
> MP_GENERATE_XS=1 MP_USE_DSO=1 MP_TRACE=1 \
> MP_APXS=$HOME/apps/apache/bin/apxs \
> && make && make test && make install
>
> FWIW, I am getting a compiler #@$%#$% like the following. What did I
> do wrong? :-]
>
> $ find ./ -type f | xargs grep HZ | less
>
> Everything is the latest from CVS as of earlier this evening.
> /home/smtpd/src/modperl-2.0/xs/Apache/RequestIO/Apache__RequestIO.h: In function
>`mpxs_ap_rvputs':
> /home/smtpd/src/modperl-2.0/xs/Apache/RequestIO/Apache__RequestIO.h:34: `HZ'
>undeclared (first use in this function)
> /home/smtpd/src/modperl-2.0/xs/Apache/RequestIO/Apache__RequestIO.h:34: (Each
>undeclared identifier is reported only
> /home/smtpd/src/modperl-2.0/xs/Apache/RequestIO/Apache__RequestIO.h:34: for each
>function it appears in.)
looks like linux kernel thing?
/usr/include/asm/param.h:
#ifndef HZ
#define HZ 100
#endif
(or may be defined in some other header file)
this patch should shut down the warning, but I don't think this is a
good idea at all. Try grepping your kernel includes dir and see what
constant for time calibration you come up with.
Index: src/modules/perl/modperl_time.h
===================================================================
RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_time.h,v
retrieving revision 1.1
diff -u -r1.1 modperl_time.h
--- src/modules/perl/modperl_time.h 2001/01/21 23:19:03 1.1
+++ src/modules/perl/modperl_time.h 2001/09/29 12:18:08
@@ -1,6 +1,10 @@
#ifndef MODPERL_TIME_H
#define MODPERL_TIME_H
+#ifndef HZ
+#define HZ 100
+#endif
+
#ifdef MP_TRACE
#define dMP_TIMES \
struct tms start_time; \
The rest of the warnings, seem to be a bleed perl thingy, unrelated to
modperl.
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:[EMAIL PROTECTED] http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]