Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#17626 closed defect (fixed)

php5 @5.2.8_0 on Mac OS X 10.3.9 Panther: iodbcext.h: No such file or directory

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: face@…
Port: php5, php5-devel

Description

php5 @5.2.8_0 doesn't build on Mac OS X 10.3.9 Panther with Xcode 1.5. Chris Janton originally reported this on macports-users, but the true error got lost in hundreds of lines of subsequent warnings. The real problem is that php now wants to include iodbcext.h, which Apple provides on Tiger and up but not on Panther:

/bin/sh /mp/var/macports/build/_Volumes_data_macports_ports_www_php5/work/php-5.2.8/libtool --silent --preserve-dup-deps --mode=compile /usr/bin/gcc-3.3 -I/usr/include -Iext/odbc/ -I/mp/var/macports/build/_Volumes_data_macports_ports_www_php5/work/php-5.2.8/ext/odbc/ -DPHP_ATOM_INC -I/mp/var/macports/build/_Volumes_data_macports_ports_www_php5/work/php-5.2.8/include -I/mp/var/macports/build/_Volumes_data_macports_ports_www_php5/work/php-5.2.8/main -I/mp/var/macports/build/_Volumes_data_macports_ports_www_php5/work/php-5.2.8 -I/mp/include/libxml2 -I/mp/include -I/mp/var/macports/build/_Volumes_data_macports_ports_www_php5/work/php-5.2.8/ext/date/lib -I/mp/include/freetype2 -I/mp/var/macports/build/_Volumes_data_macports_ports_www_php5/work/php-5.2.8/ext/mbstring/oniguruma -I/mp/var/macports/build/_Volumes_data_macports_ports_www_php5/work/php-5.2.8/ext/mbstring/libmbfl -I/mp/var/macports/build/_Volumes_data_macports_ports_www_php5/work/php-5.2.8/ext/mbstring/libmbfl/mbfl -I/mp/var/macports/build/_Volumes_data_macports_ports_www_php5/work/php-5.2.8/TSRM -I/mp/var/macports/build/_Volumes_data_macports_ports_www_php5/work/php-5.2.8/Zend  -I/mp/include -no-cpp-precomp -no-cpp-precomp  -I/mp/include -O2  -c /mp/var/macports/build/_Volumes_data_macports_ports_www_php5/work/php-5.2.8/ext/odbc/php_odbc.c -o ext/odbc/php_odbc.lo 
In file included from /mp/var/macports/build/_Volumes_data_macports_ports_www_php5/work/php-5.2.8/ext/odbc/php_odbc.c:37:
/mp/var/macports/build/_Volumes_data_macports_ports_www_php5/work/php-5.2.8/ext/odbc/php_odbc_includes.h:104:22: iodbcext.h: No such file or directory

The problem started with php 5.2.7. 5.3.0alpha3 has the problem too. 5.2.6 worked fine.

The php5 port does this curious thing:

platform macosx {
    configure.args-append \
        --with-ldap=/usr \
        --with-kerberos=/usr \
        --with-iodbc=/usr
}

It's been that way since the port was originally added in r7760.

I'm unclear why we're using a system library here for ODBC support. Could we use a port instead? I don't see a port for iODBC but I do see one for unixODBC and PHP does support that. Would that be sufficiently equivalent functionality?

Change History (2)

comment:1 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: face@… added
Resolution: fixed
Status: newclosed

r44881: I changed php5 and php5-devel to no longer attempt to include ODBC support on Mac OS X 10.3 or earlier. That seems to be the least-intrusive change, since it changes nothing for users of Mac OS X 10.4 and higher. If someone running 10.3 or earlier needs ODBC support, or if someone running any version of Mac OS X has information about changing the ODBC support to use a port instead of a system library, please let me know.

comment:2 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.