php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4274 undefined reference to `strtok_r' when linking...
Submitted: 2000-04-28 22:30 UTC Modified: 2000-05-13 06:23 UTC
From: oliver at billix dot franken dot de Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0 Latest CVS (28/04/2000) OS: Linux 2.0.39 & libc5
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: oliver at billix dot franken dot de
New email:
PHP Version: OS:

 

 [2000-04-28 22:30 UTC] oliver at billix dot franken dot de
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'

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-13 06:23 UTC] sas at cvs dot php dot net
This has been fixed in CVS. Thanks for your report.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 15:00:01 2026 UTC