[unixODBC-support] symbol lookup error: /usr/lib/php/extensions/unixODBC.so: undefined symbol: SQLAllocEnv

Nick Gorham nick.gorham at easysoft.com
Mon Mar 31 17:36:33 BST 2008


Brian Schonecker wrote:

>I've built a SuSE 9.3 professional "minimal installation" system from scratch.  I made sure that the unixODBC RPM was _not_ installed with the setup.
>
>I downloaded, configured and compiled unixODBC (via CVS) successfully and have created three ODBC.INI DSN's and they all work (not at the same time, however) via 'isql -v DSN'.
>
>I've got apache2 with PHP4 up and running and a phpinfo(); works just fine but when I try to connect to an external database I get the following error in my apache error_log:
>
><snip>
>/usr/sbin/httpd2-prefork: symbol lookup error: /usr/lib/php/extensions/unixODBC.so: undefined symbol: SQLAllocEnv
><snip>
>
>  
>
What does

ldd /usr/lib/php/extensions/unixODBC.so

produce? It sounds as if the extension hasn't linked against the driver 
manager (libodbc.so)

-- 
Nick Gorham
Easysoft Limited
http://www.easysoft.com, http://www.unixODBC.org




More information about the unixODBC-support mailing list