ID: 47787
Updated by: [email protected]
Reported By: dpage at pgadmin dot org
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: Windows XP
PHP Version: 5.2.9
New Comment:
I don't think using the mac to checkout the code is a good idea (or
tgz). You can simply fetch the snaps source from http://windows.php.net,
the new lines will be correct (and bison will not cry).
Previous Comments:
------------------------------------------------------------------------
[2009-03-26 14:46:10] dpage at pgadmin dot org
I built the tarball from CVS on the mac (using a tweaked version of the
makedist script) and then transferred it to the Windows build server.
Glad to see it's fixed anyway - thanks.
------------------------------------------------------------------------
[2009-03-26 14:34:17] [email protected]
on your mac?
The HAVE_STRNLEN issue is already fixed in CVS.
------------------------------------------------------------------------
[2009-03-26 13:34:49] dpage at pgadmin dot org
HEAD of the 5.2 branch fails at the beginning with:
bison.exe --output=Zend/zend_ini_parser.c -v -d -p ini_
Zend/zend_ini_parser.y
NMAKE : fatal error U1077: 'bison.exe' : return code '0xc0000135'
I get that from a straight CVS checkout and from a tarball from a
modified version of makedist (modified to use the head of the 5.2
branch) on on my mac.
Unfortunately my windows box is a part of a bigger buildfarm, on which
I can't do much in the way of debugging and testing other than to feed
it new tarballs and see if they build or not.
------------------------------------------------------------------------
[2009-03-26 11:48:18] [email protected]
Please try a 5.2's cvs version.
Also, 5.2 only supports VC6. Use 5.3 if you want to use a decent
compiler :)
------------------------------------------------------------------------
[2009-03-26 11:32:43] dpage at pgadmin dot org
Description:
------------
Building 5.2.9 with VC++ 2005 results in the error:
main\spprintf.c(184) : error C2491: 'strnlen' : definition of dllimport
function not allowed
This appears to be due to the change here:
http://cvs.php.net/viewvc.cgi/php-src/main/spprintf.c?r1=1.25.2.2.2.14&r2=1.25.2.2.2.15
The issue is resolved by adding:
#define HAVE_STRNLEN 1
to win32/build/config.w32.h.in
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47787&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.