#19879 [Csd]: Failed build with simple options for apache2

From: Date: Sun, 13 Oct 2002 10:26:24 +0000
Subject: #19879 [Csd]: Failed build with simple options for apache2
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-22280@lists.php.net to get a copy of this message
ID: 19879 Updated by: derick@php.net Reported By: Lathiat-php@irc-desk.net Status: Closed Bug Type: Compile Failure Operating System: Debian GNU/Linux 3.0 PHP Version: 4.3.0-pre1 New Comment: 1. This is not a hack, I just tried to be helpful and show you how to integrate the fix in your version. It isn't called "pre1" for no reason. 2. A little attitude change does no harm, you can always come up with a better fix yourself. Previous Comments: ------------------------------------------------------------------------ [2002-10-12 20:23:02] elkner@linofee.org Pardon? Even without trying that one it is obvious (just by reading the code), that this "hack" can´t fix the reported error! Do you ever analyze the problem and/or test your "hacks" More and more I get the feeling, that php never becomes stable and ready to use in a production environment! ------------------------------------------------------------------------ [2002-10-12 07:10:59] derick@php.net This is fixed in CVS. Would you be so kind to add the following line after line 287: TSRMLS_FETCH(); the code looks like this then: { char numbuf[NUM_BUF_SIZE]; char *cvt; register int i = 0, j = 0; int sign, decpt; char decimal_point = EG(float_separator)[0]; TSRMLS_FETCH(); PRINTF_DEBUG(("sprintf: appenddouble(%x, %x, %x, %f, %d, '%c', %d, %c)\n", *buffer, pos, size, number, width, padding, alignment, fmt)); regards, Derick ------------------------------------------------------------------------ [2002-10-12 03:32:38] Lathiat-php@irc-desk.net Hello, plain unzipped php4.3.0-pre1.tar.bz2 and did ./configure --with-apxs2=/usr/bin/apxs --prefix=/usr/local And it failed Here is the last bit of the compile ---------------------------------------------- /bin/sh libtool --silent --mode=compile gcc -Iext/standard/ -I/root/php-4.3.0pre1/ext/standard/ -DPHP_ATOM_INC -I/root/php-4.3.0pre1/include -I/root/php-4.3.0pre1/main -I/root/php-4.3.0pre1 -I/usr/include/apache2 -I/root/php-4.3.0pre1/Zend -I/root/php-4.3.0pre1/ext/xml/expat -D_REENTRANT -I/root/php-4.3.0pre1/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic -c /root/php-4.3.0pre1/ext/standard/formatted_print.c -o ext/standard/formatted_print.lo /root/php-4.3.0pre1/ext/standard/formatted_print.c: In function `php_sprintf_appenddouble': /root/php-4.3.0pre1/ext/standard/formatted_print.c:287: `tsrm_ls' undeclared (first use in this function) /root/php-4.3.0pre1/ext/standard/formatted_print.c:287: (Each undeclared identifier is reported only once /root/php-4.3.0pre1/ext/standard/formatted_print.c:287: for each function it appears in.) make: *** [ext/standard/formatted_print.lo] Error 1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19879&edit=1

« previous php.bugs (#22280) next »