Bug #7474 Updated: ext/standard/scanf.c reports strtol/strtoul "undefined reference"

From: Date: Tue, 31 Jul 2001 07:13:53 +0000
Subject: Bug #7474 Updated: ext/standard/scanf.c reports strtol/strtoul "undefined reference"
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-61613@lists.php.net to get a copy of this message
ID: 7474 Updated by: sniper Reported By: widman@cardiothink.com Old Status: Analyzed Status: Closed Bug Type: Compile Failure Operating System: SunOs 4.1.4 (!) PHP Version: 4.0.5 ? New Comment: As this system in question is really outdated and shouldn't be used in production anyway (y2k!) we're not going to add any hacks to fix this now. I have made patches to fix this, so if someone else has the same problem and really wants this hack, it's available by asking me: sniper@php.net --Jani Previous Comments: ------------------------------------------------------------------------ [2001-06-18 20:13:42] sniper@php.net This was said to happen still with 4.0.5 and the code in question hasn't changed (IIRC) much since. One possible solution is to add some #ifdef's around these functions, and checks for existance of strol/stroul into configure ------------------------------------------------------------------------ [2001-06-02 20:51:40] sniper@php.net If you don't mind, please test latest release candidate: http://www.php.net/~andi/php-4.0.6RC2.tar.gz I'm pretty sure it happens with it too, but I'd like to be sure about it. -Jani ------------------------------------------------------------------------ [2001-05-23 02:04:47] sniper@php.net I guess this still happens with PHP 4.0.5 too? --Jani ------------------------------------------------------------------------ [2001-01-16 19:50:46] widman@cardiothink.com The snapshot of 200101160445 failed to compile with the same error as that of 4.0.4pl1. ------------------------------------------------------------------------ [2001-01-16 08:03:14] widman@cardiothink.com I just tried to compile 4.0.4pl1 and it failed the same way: gcc -I. [snip] -c scanf.c && touch scanf.lo scanf.c: In function `php_sscanf_internal': scanf.c:783: `strtol' undeclared (first use this function) scanf.c:783: (Each undeclared identifier is reported only once scanf.c:783: for each function it appears in.) scanf.c:804: `strtoul' undeclared (first use this function) *** Error code 1 I'll try a snapshot next. Thanks - Larry ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=7474 Edit this bug report at http://bugs.php.net/?id=7474&edit=1

« previous php.dev (#61613) next »