Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81089 - USE=iodbc disabled in php-5.0.3?
Summary: USE=iodbc disabled in php-5.0.3?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 50162 60438
  Show dependency tree
 
Reported: 2005-02-07 03:49 UTC by Tim Haynes
Modified: 2005-08-25 00:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Bunch of diffs to implement iodbc support (php5-diffs-iodbc.tgz,1016 bytes, application/octet-stream)
2005-02-23 03:40 UTC, Tim Haynes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Haynes 2005-02-07 03:49:30 UTC
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.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-02-07 05:34:57 UTC
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)
Comment 2 Tim Haynes 2005-02-23 03:36:21 UTC
Herewith, a few attachments:
Comment 3 Tim Haynes 2005-02-23 03:40:46 UTC
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... :)
Comment 4 Stuart Herbert (RETIRED) gentoo-dev 2005-05-31 14:45:40 UTC
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
Comment 5 Gustavo Felisberto (RETIRED) gentoo-dev 2005-06-07 05:13:49 UTC
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
Comment 6 John Berry 2005-06-08 06:21:38 UTC
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.
Comment 7 Stuart Herbert (RETIRED) gentoo-dev 2005-08-25 00:42:13 UTC
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