From:             ohmer at epita dot info
Operating system: windows
PHP version:      5.0.4
PHP Bug Type:     Unknown/Other Function
Bug description:  build system 

Description:
------------
hello,

i achieved to build php 5.0.4 on windows. i am submitting a bug report to
the build system because i have found some errors in it. my configure line
was :

C:\php-5.0.4>cscript /nologo configure.js --disable-all
--with-extra-includes=C:/Apache2/include
--with-extra-libs="C:/Apache2/lib"
--enable-apache2handler
--with-bz2
--enable-ftp
--enable-spl
--enable-zlib
--enable-session
--with-pgsql="C:\Program Files\PostgreSQL\8.0" 
--with-mysql="C:\Program Files\MySQL\MySQL Server 4.1" 
--with-mysqli="C:\Program Files\MySQL\MySQL Server 4.1" --with-mime-magic
--with-sqlite
--with-openssl
--enable-fd-setsize=256

1) not using --enable-set-fd=256 causes invalid CFLAGS generation
seemingly because of the call to parseInt fails (see
win32/build/config.w32 line 228) returning NaN.

2) i had to adjust ext/{mysql,mysqli,pgsql}/config.w32 to make it
correctly find my headers and libraries :

mysql:
CHECK_HEADER_ADD_INCLUDE("mysql.h", "CFLAGS_MYSQL", PHP_MYSQL +
"\\include;" + PHP_PHP_BUILD + "\\include"))
mysqli:
CHECK_HEADER_ADD_INCLUDE("mysql.h", "CFLAGS_MYSQLI", PHP_MYSQLI +
"\\include;" + PHP_PHP_BUILD + "\\include"))
pgsql:
CHECK_HEADER_ADD_INCLUDE("libpq-fe.h", "CFLAGS_PGSQL", PHP_PGSQL +
"\\include;" + PHP_PHP_BUILD + \\include\\pgsql"))

as you will see while diffing with tarball's version, these modifications
are only inverting search order and correcting them to follow concerned
windows distribution layout. notice that the second search path for
postgresql is useless as the win32build.zip provided does not contain
pgsql headers nor lib.

thanks for this new configure-like build system, this is really helpful
and friendly to unix users like me.



-- 
Edit bug report at http://bugs.php.net/?id=33251&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33251&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33251&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33251&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33251&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33251&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33251&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33251&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33251&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33251&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33251&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33251&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33251&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33251&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33251&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33251&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33251&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33251&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33251&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33251&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33251&r=mysqlcfg

Reply via email to