php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19879 Failed build with simple options for apache2
Submitted: 2002-10-12 03:32 UTC Modified: 2002-10-13 05:26 UTC
From: Lathiat-php at irc-desk dot net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.0-pre1 OS: Debian GNU/Linux 3.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: Lathiat-php at irc-desk dot net
New email:
PHP Version: OS:

 

 [2002-10-12 03:32 UTC] Lathiat-php at irc-desk dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-12 07:10 UTC] 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 20:23 UTC] elkner at linofee dot 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-13 05:26 UTC] derick@php.net
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.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Fri Mar 27 20:00:01 2026 UTC