Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache + mod_perl + mod_ssl
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
regex
n00b
n00b


Joined: 29 Sep 2003
Posts: 2
Location: Salzburg

PostPosted: Tue Sep 30, 2003 3:24 pm    Post subject: Apache + mod_perl + mod_ssl Reply with quote

hi folks!!

Since i had a lotsa problems merging apache2 mod_perl and mod_php together (due to mod_perl problems) i am very happy to see that this is now working.

just sync your portage tree, adjust your USE flags and emerge apache, mod_perl and mod_php; the greatest problem i had to face that i compiled perl 5.8.0 with threads support which caused some "unresolved symbol" problems during mod_perl loading. The solution was to to remerge perl again with USE=-threads and everything worked fine. just append a LoadModule perl_module <modulepath>/mod_perl.so to the apache2.conf and get it rocking.....


regex
Back to top
View user's profile Send private message
Kulfaangaren!
Apprentice
Apprentice


Joined: 11 Jan 2003
Posts: 176
Location: Borås, Sweden

PostPosted: Tue Oct 21, 2003 11:30 pm    Post subject: Re: Threaded perl a NoNo with mod_perl... Reply with quote

I came to the same conclusion while trying to install that combo (a + m_p + m_s) on my new gateway.
This seriously irritates me since I like to have the threads enabled in perl "just in case" I will need it someday :)
Also this meens I have to use the libperl_rebuilder script to unmerge and rebuild ALL my perl modules and perl dependant programs :( (THANK YOU! THANK YOU! THANK YOU! for this nice script would have been a b***h :) to recompile everything otherwise.)
Has anyone with m4d 5k1llz :lol: bothered to look into why this is...i'm not very good at this but doesn't these kind of problems usually happen when you have compiled something with one lib and then upgrades the lib without recompiling the software ?
Seems strange to me that mod_perl (which was compiled against my threaded perl without problem) should decide to find the problem with the missing ptr/reference/function when it is loaded by Apache rather then during compile time.

Hmmm..I guess I have to add a trick or tips to my post to be in this cathegory ? Well...let it be known forthwith that the knight formerly known as "Kulfaangaren!, that silly twat!" will be known as "Kullfaangaren!, the defender of /usr/portage/dev-lang/perl/files/libperl_rebuilder"....hmm...well...use libperl_rebuilder it's nice and cool and convenient.
Back to top
View user's profile Send private message
vulcan_
n00b
n00b


Joined: 06 May 2003
Posts: 61
Location: Gent, Belgium

PostPosted: Sat Nov 08, 2003 11:36 pm    Post subject: PERL is being built with threads even with -threads set Reply with quote

today I figured it was time to move my web server to the new, faster box. So I emerged apache. PERL was already installed and "threads" was NOT inclueded in my USE flags as I do not need the complications. But from what I saw during the ebuild it is using the pthreads library anyway! there is a -lpthreads in the compile command for all of its componentes..

grrrr

i have put in a bug about this https://bugs.gentoo.org/show_bug.cgi?id=33016

and now it looks like everything is being compiled with pthreads added! i just did
Quote:
emerge bittorrent
and it brings in a library named wxGTK (that I have never heard of!), and each line of its compile is showing -pthread along with the other switches.

what gives! if i wanted threads i would have asked for them!

grrr
_________________
vulcan was a Roman myth - god of smiths
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Sun Nov 09, 2003 1:10 am    Post subject: Re: PERL is being built with threads even with -threads set Reply with quote

vulcan_ wrote:
and now it looks like everything is being compiled with pthreads added! i just did
Quote:
emerge bittorrent
and it brings in a library named wxGTK (that I have never heard of!), and each line of its compile is showing -pthread along with the other switches.

what gives! if i wanted threads i would have asked for them!
The 'threads' USE flag determines whether or not Perl has threads support. I can't comment on what mod_perl does with this, but I can tell you that -- last time I looked -- 'threads' does not apply outside of a Perl context. wxGTK, part of wxWindows, needs threads for its operation -- the 'threads' USE flag will not change whether or not it's linked against the pthreads library.

Relax. Threads are normal and necessary for a lot of software.
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
Kulfaangaren!
Apprentice
Apprentice


Joined: 11 Jan 2003
Posts: 176
Location: Borås, Sweden

PostPosted: Mon Nov 10, 2003 12:31 am    Post subject: Uuhmmm.. Reply with quote

You're absolutely right.
Only place I have seen USE-flag 'threads' used is in the compilation of Perl, but it affects lots of other ebuilds because if you build a threaded perl and they link against the perl lib well...then they might break if it was compiled with threading.

I really like to have the option of threading, not beeing allowed to have it because some application refuses to find the right dependencies in the lib if I do offends me :)
I guess I will have to live with it though since I run Apache 1.3.x + mod_ssl + mod_perl and refuse to upgrade to Apache 2 because of mod_perls "instability" on that platform....at least I have never been able to get it to work correctly on Apache 2, seems to crasch an awfull lot. Anyone have any input on that ? Offcourse It would be nice to run Apache 2, I like new things, but not at the cost of stability even if it is just my home gateway I run it on and not in my companys production environment.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum