Re: red hat mod_perl build problem

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

From: Tom Caldwell
Subject: Re: red hat mod_perl build problem
Date: 19:08 on 04 Apr 2005
Thanks for the reply, but I did some more digging and decided that 
having 2 versions of perl installed (improperly) on my system was 
probably the culprit. And since red hat provides a version of 
apache2 and modperl 2 with perl 5.8.0, I decided to just go with 
that, even though it is 1.5 years old (1.99.09)!

Now if I could only get the Oracle client to install I will be back 
to developing more code!

Thanks,

Tom

--On Monday, April 04, 2005 12:34 PM -0400 Stas Bekman 
<stas@xxxxxx.xxx> wrote:

> 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/per
>> l  -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




Tom Caldwell
Vanderbilt University Medical Center

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