mod_perl 2.0 fails on make - modperl

This is a discussion on mod_perl 2.0 fails on make - modperl ; System stats: OS = Fedora Core 6 x86_64 Apache = 2.2.9 - latest stable Perl = 5.8.8 Mod_Perl = 2.0 - Pulled the latest from svn as of today aug15 Hi, I am trying to build a static modperl into ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: mod_perl 2.0 fails on make

  1. mod_perl 2.0 fails on make

    System stats:

    OS = Fedora Core 6 x86_64
    Apache = 2.2.9 - latest stable
    Perl = 5.8.8
    Mod_Perl = 2.0 - Pulled the latest from svn as of today aug15

    Hi, I am trying to build a static modperl into apache. I'm using this
    for the modperl line.

    perl Makefile.PL MP_USE_STATIC=1 \ MP_AP_PREFIX=/home/charlier/
    httpd-2.2.9 \ MP_AP_CONFIGURE="--prefix=/usr/local/apache --enable-ssl
    --enable-rewrite --enable-so --with-included-apr --enable-cgi --enable-
    autoindex --enable-pie"

    This step goes fine, with no issues at all.

    When I run 'make'. It goes pretty fair but it ends with this.

    modperl_exports.c:1169: error: `modperl_thx_interp_get' undeclared
    here (not in a function)
    modperl_exports.c:1173: error: `modperl_thx_interp_set' undeclared
    here (not in a function)
    make[1]: *** [modperl_exports.o] Error 1
    make[1]: Leaving directory `/home/charlier/modperl-2.0/src/modules/perl'
    make: *** [modperl_lib] Error 2

    Is there any known fix to work around this?

    Charlie


  2. Re: mod_perl 2.0 fails on make

    Charlie Reddington wrote:
    > System stats:
    >
    > OS = Fedora Core 6 x86_64
    > Apache = 2.2.9 - latest stable
    > Perl = 5.8.8
    > Mod_Perl = 2.0 - Pulled the latest from svn as of today aug15
    >
    > Hi, I am trying to build a static modperl into apache. I'm using this
    > for the modperl line.
    >
    > perl Makefile.PL MP_USE_STATIC=1 \
    > MP_AP_PREFIX=/home/charlier/httpd-2.2.9 \
    > MP_AP_CONFIGURE="--prefix=/usr/local/apache --enable-ssl
    > --enable-rewrite --enable-so --with-included-apr --enable-cgi
    > --enable-autoindex --enable-pie"
    >
    > This step goes fine, with no issues at all.
    >
    > When I run 'make'. It goes pretty fair but it ends with this.
    >
    > modperl_exports.c:1169: error: `modperl_thx_interp_get' undeclared here
    > (not in a function)
    > modperl_exports.c:1173: error: `modperl_thx_interp_set' undeclared here
    > (not in a function)
    > make[1]: *** [modperl_exports.o] Error 1
    > make[1]: Leaving directory `/home/charlier/modperl-2.0/src/modules/perl'
    > make: *** [modperl_lib] Error 2
    >
    > Is there any known fix to work around this?


    Try with the 2.0.4 stable version of mod_perl. Also I would suggest
    building mod_perl as a shared object (dynamically, not statically), so
    would say remove the MP_USE_STATIC=1. I've seen people get it to work
    but almost everyone I know builds mod_perl as a loadable module instead
    of into the httpd binary.

    >
    > Charlie
    >



  3. Re: mod_perl 2.0 fails on make

    On Fri 15 Aug 2008, Fred Moyer wrote:
    > > When I run 'make'. It goes pretty fair but it ends with this.
    > >
    > > modperl_exports.c:1169: error: `modperl_thx_interp_get' undeclared
    > > here (not in a function)
    > > modperl_exports.c:1173: error: `modperl_thx_interp_set' undeclared
    > > here (not in a function)
    > > make[1]: *** [modperl_exports.o] Error 1
    > > make[1]: Leaving directory
    > > `/home/charlier/modperl-2.0/src/modules/perl' make: ***
    > > [modperl_lib] Error 2
    > >
    > > Is there any known fix to work around this?

    >
    > Try with the 2.0.4 stable version of mod_perl. *Also I would suggest
    > building mod_perl as a shared object (dynamically, not statically),
    > so would say remove the MP_USE_STATIC=1. *I've seen people get it to
    > work but almost everyone I know builds mod_perl as a loadable module
    > instead of into the httpd binary.


    Agreed, the static build is a bit neglected. But without MP_USE_STATIC
    also the current SVN version should work.

    Torsten

    --
    Need professional mod_perl support?
    Just hire me: torsten.foertsch@gmx.net


+ Reply to Thread