databases/php5-odbc vs. libiodbc

Pietro Cerutti gahr at
Tue Jul 13 10:33:57 UTC 2010

On 2010-Jun-15, 19:21, Kyryll A Mirnenko aka Mirya wrote:
>   Currently the databases/php5-odbc PHP extension is hardcoded to be compiled 
> with unixODBC backend, so the users that have libiodbc installed (as a 
> dependency of kde4 ports, for ex.) can't installed the first 'cause those two 
> ODBC ports conflict with each other.
>   The php-odbc configure script however says (./configure --help) it can be 
> compiled with iODBC support (--with-iodbc=/usr/local), but for some reason 
> simply replacing the configure script arguments for the port (with libiodbc 
> installed from ports) result in nothing being done: the configure script 
> creates the Makefile with empty target, so nothing is built actually.
>   Did anyone have success before with building php5-odbc lniked to iodbc 
> backend?

I've been able have the php5-odbc extension link against libiodbc by
applying this patch [1] to lang/php5. I haven't conducted any run-tests,
though. Please feel free to report success / failure :)


Pietro Cerutti
The FreeBSD Project
gahr at

PGP Public Key:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list