[PHP-DEV] PHP 4.0 Bug #4274: undefined reference to `strtok_r' when linking... From: oliver <email protected>
Date: 04/28/00

From: oliver <email protected>
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'

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>