Re: [PHP4BETA] iodbc crashing while connecting to MSSQL
| From: | Dave Goodrich | Date: | Mon, 22 May 2000 20:35:37 +0000 |
| Subject: | Re: [PHP4BETA] iodbc crashing while connecting to MSSQL | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-15460@lists.php.net to get a copy of this message | ||
Yes, it worked alright but was not stable Sunday. After checking the pthread
man page of FBSD I get the picture. -lc_r is what we want to happen,
man:pthread says adding -pthread will make sure it happens properly.
What is --enable-experimental-zts? other than something that "will likely
break your build"
Can't get the newest, I have 4.0 from Friday evening but I'm not able to
even get to the website today, much less the FTP. I'll give a look tommorrow
and try the changes.
Thanks,
DAve.
on 5/22/00 10:58 AM, Sascha Schumann at sascha@schumann.cx wrote:
> On Fri, 19 May 2000, Andrew Hill wrote:
>
>> Dave,
>>
>> Check if you got a compile error regarding undefined symbol
>> pthread_mutex_lock
>>
>> If you did, adding -lc_r into the libs in the makefile should allow it to
>> compile without errors. If you still receive the error when running, your
>> apache build probably doesn't have -pthread support. What version of Apache
>> are you running, as I know that -pthread support came late into the FreeBSD
>> builds.
>
> You should use only -pthread. This will automatically do the right thing
> (you can add -lc_r -lgcc_r, but you cannot remove the implicit -lc -lgcc).
>
>> We do not have a non-multi-threaded odbc client, so you need to resolve this
>> at the apache end.
>
> Yeah, compiling Apache with CFLAGS=-pthread will help. Then configure PHP
> with --enable-experimental-zts.
>
> - Sascha