Well, um, what are the problems in adding iODBC to php? Reproducible: Always Steps to Reproduce: 1. USE=iodbc emerge -pv iodbc 2. 3. Actual Results: >>> md5 src_uri ;-) php-5.0.3.tar.bz2 * * We have not been able to add iodbc support to Gentoo yet, as we * have experienced difficulties in reaching www.iodbc.org. * * For now, please use the 'odbc' USE flag instead. * Expected Results: A compiled package would've been nice... As webmaster{at}iodbc.org, I can say categorically we have plenty of published contact email addresses, and sourceforge-hosted mailling lists.
At the time we were working on PHP5, your website seemed to be down. It shouldn't be hard for you to see what needs to be done in the eclass, and post up a diff here. (sorry, but real-life is keeping many of us very busy this quarter)
Herewith, a few attachments:
Created attachment 51932 [details] Bunch of diffs to implement iodbc support * php-5.0.3.ebuild.diff simple diff against the ebuild to add a patch * php5-sapi.eclass.diff diff against the eclass to remove the error message and enable --with-iodbc=/usr * with-iodbc.diff this belongs in $PORTAGEDIR/dev-php/php/files/; it is applied to php after unpacking (hence the first diff above). PHP's configure script does not distinguish between includes and libs on extensions, it just assumes if iodbc is in /usr, then /usr/{include,lib} will work. The libiodbc ebuild puts includes in /usr/include/iodbc/, so I've patched the one & only occurrence of the includes being used instead. A proper fix would be upstream PHP, to separate includes & libs in configure. Tested OK on my machine... :)
Hi, At the time I was writing the initial php5 support, the website for iodbc was unreachable. Unable to read the website, I couldn't find your contact email address. There hasn't been time since then to revisit iodbc support for php5. Thanks for your patches. I've included them in mod_php-5.0.4. If you could test, and confirm that they work, that'd be great. Many thanks, Stu
mod_php-5.0.4/work/php-5.0.4/ext/pcre/pcrelib/get.c -o ext/pcre/pcrelib/get.lo In file included from /var/tmp/portage/mod_php-5.0.4/work/php-5.0.4/ext/odbc/php_odbc_includes.h:94, from /var/tmp/portage/mod_php-5.0.4/work/php-5.0.4/ext/odbc/php_odbc.c:37: /usr/include/iodbc/isql.h:80:17: sql.h: No such file or directory In file included from /var/tmp/portage/mod_php-5.0.4/work/php-5.0.4/ext/odbc/php_odbc_includes.h:95, from /var/tmp/portage/mod_php-5.0.4/work/php-5.0.4/ext/odbc/php_odbc.c:37: /usr/include/iodbc/isqlext.h:80:20: sqlext.h: No such file or directory distcc[17991] ERROR: compile /var/tmp/portage/mod_php-5.0.4/work/php-5.0.4/ext/odbc/php_odbc.c on gbox failed make: *** [ext/odbc/php_odbc.lo] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: dev-php/mod_php-5.0.4 failed. !!! Function php5-sapi-r2_src_compile, Line 472, Exitcode 2 Does not build with iodb in use and unixodbc not installed. Probably includes problem as sqlext.h is available in /usr/include/iodbc/sqlext.h -rw-r--r-- 1 root root 70546 Jun 7 01:43 /usr/include/iodbc/sqlext.h
Hi, I just installed php-5.0.4 with iODBC and it worked fine. I've got just the problem that the file with-iodbc.diff, which is called by the ebuild, was not present. I had to copy it from the mod_php/files directory and rebuild the digests. Would it be possible to add it to the portage tree in the php/files directory ? Thanks by advance.
Hi, This is fixed in the new dev-lang/php package, which you can find in the Gentoo PHP Overlay [1]. The overlay is available now for general use; we'll be adding its packages to Portage in the next few weeks. [1] http://svn.gnqs.org/projects/gentoo-php-overlay/ Best regards, Stu