php.net |  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/ld-elf.so.1: /usr/local/openlink/lib/oplodbc.so.1.0:Undefined 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-26 05:13 UTC] kara@php.net
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] kalowsky@php.net
does this problem still exist in the current release?
 [2001-02-03 20:18 UTC] sniper@php.net
you cannot compile PHP with both --iodbc and with --openlink

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC