You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Bjarte Kileng <Bj...@hib.no> on 2002/08/19 13:39:21 UTC

Compile problem

I get an error when I try to compile mod_perl. I have tried to read the manuals,
but I do not find anything appropriate.

I am using Perl 5.6.1 and httpd-2.0.40.

Apache builds and installs without problems. From the httpd-2.0.40 directory
this is done using:

  ./configure --prefix=/usr/local/apache-2.0 --with-mpm=prefork
  make
  make install


Then I try to build mod_perl. I picked up mod_perl-2.0-current.tar.gz
which unpacks as mod_perl-1.99_04. In the mod_perl-1.99.04 directory I try

  perl Makefile.PL MP_AP_PREFIX=/usr/local/apache2

This works fine. No errors or warnings.

Then I try

  make

This gives the following output:

cd "src/modules/perl" && make -f Makefile.modperl
make[1]: Entering directory `/usr/src/redhat/SOURCES/mod_perl-1.99_04/src/modules/perl'
gcc -I/usr/src/redhat/SOURCES/mod_perl-1.99_04/src/modules/perl -I/usr/src/redhat/SOURCES/mod_perl-1.99_04/xs -I/usr/local/apache2/include -fno-strict-aliasing -I/usr/local/include  -I/usr/lib/perl5/5.6.1/i386-linux/CORE -DMOD_PERL -O2 -march=i386 -mcpu=i686 -fPIC \
-c mod_perl.c && mv mod_perl.o mod_perl.lo
mod_perl.c: In function `modperl_register_hooks':
mod_perl.c:511: warning: passing arg 3 of `ap_register_output_filter' makes pointer from integer without a cast
mod_perl.c:511: too few arguments to function `ap_register_output_filter'
mod_perl.c:515: warning: passing arg 3 of `ap_register_input_filter' makes pointer from integer without a cast
mod_perl.c:515: too few arguments to function `ap_register_input_filter'
mod_perl.c:519: warning: passing arg 3 of `ap_register_output_filter' makes pointer from integer without a cast
mod_perl.c:519: too few arguments to function `ap_register_output_filter'
mod_perl.c:523: warning: passing arg 3 of `ap_register_input_filter' makes pointer from integer without a cast
mod_perl.c:523: too few arguments to function `ap_register_input_filter'
make[1]: *** [mod_perl.lo] Error 1
make[1]: Leaving directory `/usr/src/redhat/SOURCES/mod_perl-1.99_04/src/modules/perl'
make: *** [modperl_lib] Error 2


What am I doing wrong?

Best regards,
Bjarte Kileng

Re: Compile problem

Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On 19 Aug 2002, Bjarte Kileng wrote:

> I get an error when I try to compile mod_perl. I have tried to
> read the manuals, but I do not find anything appropriate.
> I am using Perl 5.6.1 and httpd-2.0.40.
> 
> Apache builds and installs without problems. From the
> httpd-2.0.40 directory this is done using:
>   ./configure --prefix=/usr/local/apache-2.0 --with-mpm=prefork
>   make
>   make install
> Then I try to build mod_perl. I picked up
> mod_perl-2.0-current.tar.gz which unpacks as mod_perl-1.99_04.
> In the mod_perl-1.99.04 directory I try
>   perl Makefile.PL MP_AP_PREFIX=/usr/local/apache2
> This works fine. No errors or warnings.
> Then I try
>   make
> This gives the following output:
[ .. ] 
> -c mod_perl.c && mv mod_perl.o mod_perl.lo mod_perl.c:511:
> warning: passing arg 3 of `ap_register_output_filter' makes
> pointer from integer without a cast 
> mod_perl.c:511: too few
> arguments to function `ap_register_output_filter'
[ .. ]

With apache-2.0.40, you should use the cvs version of
mod_perl-2.

-- 
best regards,
randy kobes