|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-07-10 21:16 UTC] josh at joshbutts dot com
Description: ------------ When downloading the source tarball for 5.3.6, a vanilla ./configure followed by a make fails. gcc info: i686-apple-darwin11-llvm-gcc-4.2 Expected result: ---------------- No error Actual result: -------------- /Users/josh/php-5.3.6/main/spprintf.c:186: error: static declaration of ‘strnlen’ follows non-static declaration /usr/include/string.h:143: error: previous declaration of ‘strnlen’ was here make: *** [main/spprintf.lo] Error 1 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 05:00:01 2025 UTC |
Wonder if this might be a problem with detecting the presence of strnlen(). Commenting this in main/sprintf.c fixes the problem: #if !HAVE_STRNLEN static size_t strnlen(const char *s, size_t maxlen) { char *r = memchr(s, '\0', maxlen); return r ? r-s : maxlen; } #endif