php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33316 configure problems detecting --with-pdo-odbc=unixODBC
Submitted: 2005-06-12 19:21 UTC Modified: 2005-06-14 22:49 UTC
From: joerg@php.net Assigned:
Status: Closed Package: PDO related
PHP Version: 5CVS-2005-06-12 (dev) OS: IRIX 6.5.27
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: joerg@php.net
New email:
PHP Version: OS:

 

 [2005-06-12 19:21 UTC] joerg@php.net
Description:
------------
PHP was unable to bypass the configure when using --with-pdo-odbc=unixODBC,/usr/nekoware and latest mips c99 compiler.

Thats sounds weird because checking for ext/unixodbc works like a charm.
checking for unixODBC support... yes 
...
checking for ODBC v3 support for PDO... yes
checking for selected PDO ODBC flavour... unixODBC
          libs       /usr/nekoware/lib,
          headers    /usr/nekoware/include
Your ODBC library does not exist
...

Config.log shows whats going wrong:
configure:73675: c99 -o conftest -O3 -mips4 -I/usr/nekoware/include -OPT:Olimit=0:roundoff=3  -TAR
G:platform=IP27:proc=r10000 -I/usr/nekoware/include -D_XPG_IV -L/usr/nekoware/lib -lodbc -lm -ldl
conftest.c -lm -lz -lm  -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm 1>&5
ld32: WARNING 84 : /usr/nekoware/lib/libodbc.so is not used for resolving any symbol.
ld32: WARNING 84 : /usr/lib32/mips4/libm.so is not used for resolving any symbol.
ld32: WARNING 84 : /usr/lib32/libdl.so is not used for resolving any symbol.
ld32: WARNING 84 : /usr/nekoware/lib/libz.so is not used for resolving any symbol.
ld32: WARNING 84 : /usr/nekoware/lib/libxml2.so is not used for resolving any symbol.
ld32: ERROR   33 : Unresolved text symbol "SQLBindCol" -- 1st referenced by conftest.o.

After adding -lodbc to the END of the line instead somewhere in the middle the configtest compiles fine and configure passes the check. The same issue 20 lines later when it tries to detecting libodbc > 3.x


After the changes PHP head compiles fine. 

regards
Joerg

Reproduce code:
---------------
Compile with 
'--with-unixODBC=shared,/usr/nekoware' \
'--with-pdo-odbc=unixODBC,/usr/nekoware' \




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-14 04:19 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

I changed quite a lot of the ext/pdo_odbc/config.m4 so please try it out. (make sure the file has revision 1.20!)

 [2005-06-14 22:49 UTC] joerg@php.net
It works now. Thx for the fix.

regards
Joerg
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 14:01:30 2024 UTC