php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37994 pdo_odbc compile problems
Submitted: 2006-07-03 03:51 UTC Modified: 2007-07-09 12:35 UTC
From: judas dot iscariote at gmail dot com Assigned: wez (profile)
Status: Closed Package: PDO related
PHP Version: 5CVS-2006-07-03 (CVS) OS: Linux 64 bit
Private report: No CVE-ID: None
 [2006-07-03 03:51 UTC] judas dot iscariote at gmail dot com
Description:
------------
Hi, Im trying to compile pdo_odbc on 64 bit linux , I have found some problems.

using the following configure line ( ommited irrelevant parts)

--enable-pdo=shared 
--with-pdo-odbc=unixODBC,/usr

results in the following message: 

"You've configured extension pdo_odbc to build statically, but it
depends on extension pdo, which you've configured to build shared.
You either need to build pdo_odbc shared or build pdo statically for the
You've configured extension pdo_odbc to build statically, but it
depends on extension pdo, which you've configured to build shared.
You either need to build pdo_odbc shared or build pdo statically for the
You've configured extension pdo_odbc, which depends on extension pdo,
but you've either not enabled pdo, or have disabled it.
You've configured extension pdo_odbc, which depends on extension pdo,
but you've either not enabled pdo, or have disabled it."

even if the configure help says 

"This extension will always be created as a shared extension named pdo_odbc.so"

addtionally it seems to disobey --with-libdir beacuse it always searches for libraries in "lib" even if i pass --with-libdir=lib64




Reproduce code:
---------------
build php with shared pdo and pdo_odbc

Expected result:
----------------
pdo_odbc compiled as a shared extension always and using lib64 as a libdir

Actual result:
--------------
see description.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-03 06:51 UTC] tony2001@php.net
>results in the following message
Which is pretty clear and tells you the truth: you can't build PDO as shared and PDO-dependent module as dynamic.

The lib64 issue looks more real to me.
Assigned to Wez.
 [2006-07-03 06:58 UTC] judas dot iscariote at gmail dot com
What Im attempting is to build both pdo and pdo_odbc shared, and I assume what the "configure" hints is the truth no?

"This extension will **always** be created as a shared extension named
pdo_odbc.so" , if this is not true, I think it should be corrected..
 [2007-07-09 12:35 UTC] jani@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 05:01:30 2024 UTC