PHP 4.0 Bug #4274: undefined reference to `strtok_r' when linking...
| From: | oliver at billix dot franken dot de | Date: | Fri, 28 Apr 2000 20:30:12 +0000 |
| Subject: | PHP 4.0 Bug #4274: undefined reference to `strtok_r' when linking... | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18288@lists.php.net to get a copy of this message | ||
From: oliver@billix.franken.de
Operating system: Linux 2.0.39 & libc5
PHP version: 4.0 Latest CVS (28/04/2000)
PHP Bug Type: Compile Failure
Bug description: undefined reference to `strtok_r' when linking...
I get an undefined reference, when I try to link php as
cgi or apache with mod_php.
The configure detects the missing strtok_r:
checking for strtok_r... (cached) no
php_config.h:
/* Define if you have the strtok_r function. */
/* #undef HAVE_STRTOK_R */
Despite I get the following warnings/errors:
gcc -c php_virtual_cwd.c
php_virtual_cwd.c: In function `virtual_file_ex':
php_virtual_cwd.c:272: warning: implicit declaration of function `strtok_r'
php_virtual_cwd.c:272: warning: assignment makes pointer from integer without a cast
php_virtual_cwd.c:303: warning: assignment makes pointer from integer without a cast
.libs/libphp4.a(php_virtual_cwd.o): In function `virtual_file_ex':
/home/oliver/cvs/cgi/php4/php_virtual_cwd.c:303: undefined reference to `strtok_r'