Re: red hat mod_perl build problem

[prev] [thread] [next] [Date index for 2005/04/04]

From: Stas Bekman
Subject: Re: red hat mod_perl build problem
Date: 16:34 on 04 Apr 2005
Tom Caldwell wrote:
> I am having a problem install mod_perl on red hat 9 with apache 2.0.53 
> installed in dir /opt/apache2 (it runs).
> 
> I executed >perl Makefile.PL with options
> MP_USE_DSO=1 and MP_AP_PREFIX=/opt/apache2
> 
> which ran successfully. Then I executed >make and got the following 
> results:
> 
> gcc -I/home/caldwell/perl/modperl/mod_perl-2.0.0-RC4/src/modules/perl 
> -I/home/caldwell/perl/modperl/mod_perl-2.0.0-RC4/xs 
> -I/opt/apache2/include -I/opt/apache2/include -I/opt/apache2/include 
> -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/include/gdbm 
> -I/opt/perl5.8.6/lib/5.8.6/x86_64-linux/CORE -DMOD_PERL -DMP_COMPAT_1X 
> -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE 
> -D_GNU_SOURCE -O2  \
> -c modperl_sys.c && mv modperl_sys.o modperl_sys.lo
> 
>> modperl_sys.c:65:2: #error "modperl_sys_dlclose not defined on 
> 
> this platform"
> make[1]: *** [modperl_sys.lo] Error 1
> make[1]: Leaving directory 
> `/home/caldwell/perl/modperl/mod_perl-2.0.0-RC4/src/modules/perl'
> make: *** [modperl_lib] Error 2

Tom, it comes from:

/*
  * Perl does not provide this abstraction.
  * APR does, but requires a pool.  efforts to expose this area of apr
  * failed.  so we roll our own.  *sigh*
  */
int modperl_sys_dlclose(void *handle)
{
#if defined(MP_SYS_DL_DLOPEN)
    [...]
#elif defined(MP_SYS_DL_DYLD)
    [...]
#elif defined(MP_SYS_DL_HPUX)
    [...]
#elif defined(MP_SYS_DL_WIN32)
    [...]
#elif defined(MP_SYS_DL_BEOS)
    [...]
#elif defined(MP_SYS_DL_DLLLOAD)
    [...]
#elif defined(MP_SYS_DL_AIX)
    [...]
#else
#error "modperl_sys_dlclose not defined on this platform"
     return 0;
#endif

This define comes from:

lib/ModPerl/Code.pm:    (my $dlsrc = uc $Config{dlsrc}) =~ s/\.xs$//i;
lib/ModPerl/Code.pm:    print $h_fh "\n#define MP_SYS_$dlsrc 1\n";

On my machine it's:

% perl -V:dlsrc
dlsrc='dl_dlopen.xs';

As you didn't follow my request to submit a proper bug report as explained 
at http://perl.apache.org/bugs/, I can't tell you more until you do so :)


        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

red hat mod_perl build problem
Tom Caldwell 21:57 on 30 Mar 2005

Re: red hat mod_perl build problem
Stas Bekman 16:34 on 04 Apr 2005

Re: red hat mod_perl build problem
Tom Caldwell 19:08 on 04 Apr 2005

Re: red hat mod_perl build problem
Tom Schindl 06:52 on 05 Apr 2005

Re: red hat mod_perl build problem
Tom Caldwell 15:42 on 05 Apr 2005

Generated at 14:43 on 11 Apr 2005 by mariachi v0.52