On Sat, 16 Jun 2001, Stas Bekman wrote:
> Problems with modperl-2.0 build:
>
> The build was attempted with the last minute perl, httpd-2.0 and
> mod_perl cvs. See the configs at the end of this email. I did run 'make
> distclean' in httpd and mod_perl dirs after 'cvs up'.
> ---------------------------------------------------
>
> $ /home/stas/perl-bleed/bin/perl5.7.1 Makefile.PL
>
> prepares a correct Makefile.PL
>
> whereas
>
> $ /home/stas/perl-bleed/bin/perl5.7.1 Makefile.PL \
> MP_APXS=/home/stas/httpd-2.0/bin/apxs
>
> fails to include -I's for apr/apr_util (and of course 'make' fails),
> because:
>
> $ /home/stas/httpd-2.0/bin/apxs -q INCLUDEDIR
>
> /home/stas/httpd-2.0/include/
>
> (I did run ./configure in httpd-2.0 before moving on with mod_perl)
>
> Is this a bug in apxs or should the Apache::Build::includes() be
> corrected to search for these includes too? Or did I miss some step?
Do'h, I've realized that I was in the static "mode", and went to build
mod_perl first :( After installing the cvs version of httpd this problem
went away.
> ---------------------------------------------------
>
>
> httpd-2.0/include/util_date.h is missing
>
> cc -c -I/home/stas/apache.org/modperl-2.0/src/modules/perl
> -I/home/stas/apache.org/modperl-2.0/xs
> -I/home/stas/apache.org/modperl-2.0/../httpd-2.0/include
> -I/home/stas/apache.org/modperl-2.0/../httpd-2.0/srclib/apr/include
> -I/home/stas/apache.org/modperl-2.0/../httpd-2.0/srclib/apr-util/include
> -I/home/stas/apache.org/modperl-2.0/../httpd-2.0/os/unix -DMOD_PERL -g
> -DMP_DEBUG -DMP_TRACE -g -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\"
> -fpic -I/home/stas/perl-bleed/lib/5.7.1/i686-linux-thread-multi/CORE
> Base64.c
>
> In file included from Base64.xs:16:
> /home/stas/apache.org/modperl-2.0/xs/modperl_xs_typedefs.h:23:23:
> util_date.h: No such file or directory
>
> I've touch'ed an empty header to get through.
not a problem any more.
> ---------------------------------------------------
>
>
> make[3]: Entering directory
> `/home/stas/apache.org/modperl-2.0/xs/APR/Const'
>
> cp Const.pm ../../../blib/lib/APR/Const.pm
>
> /home/stas/perl-bleed/bin/perl
> -I/home/stas/perl-bleed/lib/5.7.1/i686-linux-thread-multi
> -I/home/stas/perl-bleed/lib/5.7.1
> /home/stas/perl-bleed/lib/5.7.1/ExtUtils/xsubpp -typemap
> /home/stas/perl-bleed/lib/5.7.1/ExtUtils/typemap -typemap
> /home/stas/apache.org/modperl-2.0/xs/typemap Const.xs > Const.xsc &&
> mv Const.xsc Const.c
>
> Please specify prototyping behavior for Const.xs (see perlxs manual)
>
> cc -c -I/home/stas/apache.org/modperl-2.0/src/modules/perl
> -I/home/stas/apache.org/modperl-2.0/xs
> -I/home/stas/apache.org/modperl-2.0/../httpd-2.0/include
> -I/home/stas/apache.org/modperl-2.0/../httpd-2.0/srclib/apr/include
> -I/home/stas/apache.org/modperl-2.0/../httpd-2.0/srclib/apr-util/include
> -I/home/stas/apache.org/modperl-2.0/../httpd-2.0/os/unix -DMOD_PERL -g
> -DMP_DEBUG -DMP_TRACE -g -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\"
> -fpic -I/home/stas/perl-bleed/lib/5.7.1/i686-linux-thread-multi/CORE
> Const.c
>
> Const.xs: In function `boot_APR__Const':
> Const.xs:7: `file' undeclared (first use in this function)
> Const.xs:7: (Each undeclared identifier is reported only once
> Const.xs:7: for each function it appears in.)
> make[3]: *** [Const.o] Error 1
the same problem happends in xs/ModPerl/Const
both were solved by adding:
const char *file;
to mod_perl.h. Probably not the right place, but it got me going.
--------------------------------------------------
This problem is probably related to Perl build but I'll mention it anyway.
The bleed-perl version has bin/pod2man5.7.1 but no symlink to bin/pod2man.
Without the 'perl Makefile.PL' barks. on my setup this has solved the
problem:
$ ln -s /home/stas/perl-bleed/bin/pod2man5.7.1 \
/home/stas/perl-bleed/bin/pod2man
--------------------------------------------------
_____________________________________________________________________
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]