[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-modules
Subject: Re: [apache-modules] Re: Thread
From: Joe Lewis <joe () joe-lewis ! com>
Date: 2004-01-13 18:12:55
Message-ID: 40043527.90209 () joe-lewis ! com
[Download RAW message or body]
Add the options in the Makefile (after configuring) to:
CONFLAGS = -g -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pthread
and then compile. I think there was an option for configuring
--with-pthread(s), but I can't remember what it was.
Joe
Marco Spinetti wrote:
> Ehm,
>
> how can I compile apache 1.3.x with "-pthread -D_REENTARNT" options?
>
> It seems very interesting.
>
> I have seen configure script but it seems that there is no pthreads
> support option.
>
>
> How can I do?
>
>
> --Marco
>
>
> Alex (Oleksiy) Bolgarov wrote:
>
>> --- Marco Spinetti <m.spinetti@pisa.iol.it> wrote: >
>> No,
>>
>>
>>> I'm starting threads in child process (inside
>>> handler function) not during reading of configuration data.
>>>
>>> Reading your email it seems that using pthreads
>>> inside child process in apache 1.3.x gives strange results and it
>>> will not
>>> work as expected, while using apache 2 all is ok.
>>>
>>> Is it true?
>>>
>>
>>
>> I do not know very much about Apache 1.3, my module
>> was from the very beginning developer for Apache2. It
>> just was that the your problem was very similar to my
>> experience when I was incorrectly starting threads in
>> the parent Apache process.
>> Well, if you start threads in the child process, after
>> fork, then it should be OK. The only other thing that
>> comes into mind is to check if the Apache itself was
>> build with pthread support: for example, if you are
>> compiling Apache with gcc, there should be "-pthread
>> -D_REENTARNT" options.
>>
>>
>> Thank you,
>>
>> alex.
>>
>> ______________________________________________________________________
>> Post your free ad now! http://personals.yahoo.ca
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: apache-modules-unsubscribe@covalent.net
>> For additional commands, e-mail: apache-modules-help@covalent.net
>>
>>
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: apache-modules-unsubscribe@covalent.net
> For additional commands, e-mail: apache-modules-help@covalent.net
>
---------------------------------------------------------------------
To unsubscribe, e-mail: apache-modules-unsubscribe@covalent.net
For additional commands, e-mail: apache-modules-help@covalent.net
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic