Re: [PHP4BETA] iodbc crashing while connecting to MSSQL
[email protected] (Dave Goodrich)
| Newsgroups | php.version4 |
|---|---|
| Message-ID | <B54EE829.14DF%[email protected]> |
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 [email protected] 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