From:             [EMAIL PROTECTED]
Operating system: IRIX 6.5.27
PHP version:      5CVS-2005-06-12 (dev)
PHP Bug Type:     PDO related
Bug description:  configure problems detecting --with-pdo-odbc=unixODBC

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' \




-- 
Edit bug report at http://bugs.php.net/?id=33316&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33316&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33316&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33316&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33316&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33316&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33316&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33316&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33316&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33316&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33316&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33316&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33316&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33316&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33316&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33316&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33316&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33316&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33316&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33316&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33316&r=mysqlcfg

Reply via email to