Hi,

Stas Bekman wrote:

> Darragh Sherwin wrote:
> 
>> Hi,
>>     I am trying to compile mod_perl 1.99 with apacche 2.0.35, I give  
>> up with mod_perl 1.24 after numberous headaches and lots of profanties.
>>
>> It build configured Apache with following options :
>>

>>  ./configure --with-mpm=prefork --prefix=/export/home/website/apache 
>> --enable-so --with-port=80 --enable-info



I did this with the enviromental varible CFLAGS=-DUSE_ITHREADS


>>
>> I then did a make and make install for Apache
>> Then  I configured mod_perl with the following options:
>>
>>  perl Makefile.PL MP_AP_PREFIX=../httpd-2.0.35
>>     (httpd-2.0.35 is the source of apache)


I used perl Makefile.PL MP_APXS=/export/home/website/apache/bin/apxs 
MP_CCOPTS=-DUSE_ITHREADS

The ITHREADS library is need on Solaris/Sparc to compile


>>
>> then I edit all the Makefiles for mod_perl, so the compiler use the 
>> option "-DUSE_ITHREADS", then I did a make and make install,
>> I got out a mod_perl.so file and put this under the Apache 
>> $PREFIX/modules and edit my httpd.conf to correspond,
>> when I start apache, I get the following error:
>>
>> Cannot load /export/home/website/apache/modules/mod_perl.so into 
>> server: ld.so.1: /export/home/website/apache/bin/httpd: fatal: 
>> relocation error: file 
>> /export/home/website/apache/modules/mod_perl.so: symbol PL_thr_key: 
>> referenced symbol not found


However, I am still getting the above error, should I just copy the 
mod_perl.so file from the mod_perl sources directory to the 
$APACHE/modules?? I am right in doing that??


>>
>>
>> Can anybody tell me, if I am configuring something wrong, or building 
>> it the wrong way??
>> I need to get a quick resolution to this problem, so any help is 
>> greatly appreciated
> 
> 
> Why did you have to manually edit the Makefiles? All the Perl flags are 
> automatically used in the build process, so if you have build perl  with 
> -Dusethreads, it's all you need to do.
> Also why do you need to use MP_AP_PREFIX? Use MP_APXS= instead. You 
> don't need Apache sources to build mod_perl as DSO.
> 
> Please refer to this document:
> 
>http://perl.apache.org/preview/modperl-docs/dst_html/docs/2.0/user/install/install.html
> 
> 


I read this, but it was of little help


> 
> And when you report a problem, please do as explained here;
> 
>http://perl.apache.org/preview/modperl-docs/dst_html/docs/2.0/user/help/help.html#Reporting_Problems
> 
> 
> 
> __________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/     mod_perl Guide ---> http://perl.apache.org
> mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org   http://ticketmaster.com
> 


-- 
_______________________
Darragh Sherwin
[EMAIL PROTECTED]

"To alcohol, the cause of, and solution to, all of life's problems"
                                        Homer Simpson

Reply via email to