Justtechjobs.com Find a programming school near you






Online Campus Both


php4-beta | 199912

[PHP4BETA] zend-scanner.l does not compile with SUNs CC (4.2) From: Thies C. Arntzen (thies <email protected>)
Date: 12/27/99

CFLAGS="-g" CXXFLAGS="-g" CC=c89 CXX=CC ../php4/configure blabla

/bin/sh ../libtool --silent --mode=compile CC -DHAVE_CONFIG_H -I. -I../../php4/Zend -I.. -I../Zend -I../../php4 -I/dot/dc4/zend/aolserver3//include -I/dot/oracle/app/oracle/product/8.0.5/rdbms/demo -I/dot/oracle/app/oracle/product/8.0.5/network/public -I/dot/oracle/app/oracle/product/8.0.5/rdbms/demo -I/dot/oracle/app/oracle/product/8.0.5/network/public -I/dot/dc4/zend/php-dev/expat//include -I../TSRM -I../../php4/Zend -I../../php4/TSRM -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I../TSRM -g -c zend-scanner-cc.cc
"../../php4/Zend/zend-scanner.l", line 204: Error: stdiofile is not a member of streambuf.

sascha said, this is related to the fact that the compiler does not
support full ISO C++.

if i comment out the offending line everything compiles. but we leak fd's
- so it's not a valid fix.

i think we should support this compiler, as gcc is not always a
choice.

btw, it's not really the compiler that has the problem, it's the -lC +
headers that is somehow different to gcc's -lstdc++ or M$VC++.

so the next logical question question is: how hard would it be to remove
the -lC / -lstdc++ completely? flex only want's some tiny class for it's
input - couldn't we just write our own?

tc

-- 
PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
To unsubscribe, e-mail: php4beta-unsubscribe <email protected>
For additional commands, e-mail: php4beta-help <email protected>
To contact the list administrators, e-mail: php4beta-admin <email protected>