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?

---------------------------------------------------


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.

---------------------------------------------------


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

---------------------------------------------------


2. Used Components and their Configuration:

*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
    MP_DEBUG             => 1
    MP_GENERATE_XS       => 1
    MP_LIBNAME           => libmodperl
    MP_TRACE             => 1
    MP_USE_DSO           => 1


*** The httpd binary was not found


*** /home/stas/perl-bleed/bin/perl -V
Summary of my perl5 (revision 5.0 version 7 subversion 17) configuration:
  Platform:
    osname=linux, osvers=2.2.19-4.1mdk, archname=i686-linux-thread-multi
    uname='linux llp.extropia.com 2.2.19-4.1mdk #1 wed may 9 03:17:46 sgt 2001 i686 
unknown '
    config_args='-des -Dusethreads -Doptimize=-g -Dusedevel 
-Dprefix=/home/stas/perl-bleed'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -Wall -DDEBUGGING -fno-strict-aliasing 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-g',
    cppflags='-D_REENTRANT -Wall -DDEBUGGING -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='2.96 20000731 (Linux-Mandrake 8.1 2.96-0.54mdk)', 
gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -lgdbm -ldl -lm -lpthread -lc -lposix -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lpthread -lc -lposix -lcrypt -lutil
    libc=/lib/libc-2.2.3.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS USE_LARGE_FILES 
PERL_IMPLICIT_CONTEXT
  Locally applied patches:
        DEVEL10610
  Built under linux
  Compiled at Jun 16 2001 19:00:37
  @INC:
    /home/stas/perl-bleed/lib/5.7.1/i686-linux-thread-multi
    /home/stas/perl-bleed/lib/5.7.1
    /home/stas/perl-bleed/lib/site_perl/5.7.1/i686-linux-thread-multi
    /home/stas/perl-bleed/lib/site_perl/5.7.1
    /home/stas/perl-bleed/lib/site_perl
    .




_____________________________________________________________________
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]

Reply via email to