Redefinition of strnlen in PHP 5.3 head

From: Date: Thu, 01 Jan 2009 15:03:20 +0000
Subject: Redefinition of strnlen in PHP 5.3 head
Groups: php.internals 
Request: Send a blank email to internals+get-42434@lists.php.net to get a copy of this message
Hi, after syncing with PHP 5.3 head I have a problem with compiling under Linux. After the first failure I went through a 'make distclean; ./configure; make' - cycle, but got the same failure: bernhard@heist:~/devel/PHP/php5$ cvs status main/spprintf.c ===================================================================
File: spprintf.c        Status: Up-to-date
  Working revision:    1.25.2.2.2.10.2.6
  Repository revision: 1.25.2.2.2.10.2.6       /repository/php-src/main/spprintf.c,v
  Sticky Tag:          PHP_5_3 (branch: 1.25.2.2.2.10.2)
  Sticky Date:         (none)
  Sticky Options:      (none)
bernhard@heist:~/devel/PHP/php5$ make /bin/bash /home/bernhard/devel/PHP/php5/libtool --silent --preserve-dup-deps --mode=compile gcc -Imain/ -I/home/bernhard/devel/PHP/php5/main/ -DPHP_ATOM_INC -I/home/bernhard/devel/PHP/php5/include -I/home/bernhard/devel/PHP/php5/main -I/home/bernhard/devel/PHP/php5 -I/home/bernhard/devel/PHP/php5/ext/ereg/regex -I/usr/include/libxml2 -I/home/bernhard/devel/PHP/php5/ext/date/lib -I/home/bernhard/devel/PHP/php5/ext/sqlite3/libsqlite -I/home/bernhard/devel/PHP/php5/TSRM
-I/home/bernhard/devel/PHP/php5/Zend    -I/usr/include -g -O2 -fvisibility=hidden  -c /home/bernhard/devel/PHP/php5/main/spprintf.c -o main/spprintf.lo
/home/bernhard/devel/PHP/php5/main/spprintf.c:186: error: static declaration of 'strnlen' follows non-static declaration
/usr/include/string.h:249: error: previous declaration of 'strnlen' was here make: *** [main/spprintf.lo] Fehler 1 bernhard@heist:~/devel/PHP/php5$ uname -a Linux heist 2.6.27-9-generic #1 SMP Thu Nov 20 21:57:00 UTC 2008 i686 GNU/Linux bernhard@heist:~/devel/PHP/php5$ gcc --version gcc (Ubuntu 4.3.2-1ubuntu11) 4.3.2 Copyright (C) 2008 Free Software Foundation, Inc. Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es gibt KEINE Garantie; auch nicht für MARKTGÄNGIGKEIT oder FÜR SPEZIELLE ZWECKE. bernhard@heist:~/devel/PHP/php5$ Regards, Bernhard

« previous php.internals (#42434) next »