|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6364 Can not use odbc functions with iODBC and Openlink
Submitted: 2000-08-26 02:29 UTC Modified: 2001-02-03 20:18 UTC
From: ybsheen at email dot sun dot net dot tw Assigned:
Status: Not a bug Package: ODBC related
PHP Version: 4.0.1pl2 OS: FreeBSD 3.5 Stable
Private report: No CVE-ID: None
 [2000-08-26 02:29 UTC] ybsheen at email dot sun dot net dot tw
I compiled php4 with iodbc, openlink and apache_1.3.12 support.
It is fine when use  the "odbctest" provided by the openlink to connect database.
It doesn't work when I use the php odbc_connect function and  the "odbctest" provided by libiodbc.
The error message are the same.

/usr/libexec/ /usr/local/openlink/lib/ symbol "pthread_mutex_lock"

I can add -pthread and recompile the "odbctest" to make it work, but it doesn't works with php. If I add -pthread to apache, the httpd will waste most CPU time. Is there any solution ?

Thanks in advance.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-26 05:13 UTC]
It seems you have configured php using --with-iodbc and --with-openlink. Please use only one of them, in your case openlink.

As for the pthread problem: I'm not familiar with *BSDs, but maybe openlink also provides drivers without pthread?
At least under Linux, adding -pthread to apache doesn't do any harm.
 [2001-01-02 10:48 UTC]
does this problem still exist in the current release?
 [2001-02-03 20:18 UTC]
you cannot compile PHP with both --iodbc and with --openlink


PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Dec 06 01:05:53 2022 UTC