RE: [PHP4BETA] iodbc crashing while connecting to MSSQL
[email protected] (Sascha Schumann)
| Newsgroups | php.version4 |
|---|---|
| Message-ID | <[email protected]> |
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