Bug #73739 [Opn]: undefined reference to `php_mt_rand_range'

From: Date: Wed, 14 Dec 2016 17:32:41 +0000
Subject: Bug #73739 [Opn]: undefined reference to `php_mt_rand_range'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205994@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73739&edit=1 ID: 73739 Updated by: nikic@php.net Reported by: mail at dasprids dot de Summary: undefined reference to `php_mt_rand_range' Status: Open Type: Bug Package: Compile Failure Operating System: UbuntuGNOME 16.04 PHP Version: master-Git-2016-12-14 (Git) Block user comment: N Private report: N New Comment: call_user_function_ex() is now a macro defined in zend_API.h, which is pretty certainly (indirectly) included by that file. This also looks like some kind of stale build issue. Did you run "make clean" before this build? Previous Comments: ------------------------------------------------------------------------ [2016-12-14 17:25:56] mail at dasprids dot de Oh, you were (partially) right, I totally forgot about that part! Anyway, now I get a new failure though: ext/filter/.libs/callback_filter.o: In function `php_filter_callback': /home/dasprid/dev/php-src/ext/filter/callback_filter.c:38: undefined reference to `call_user_function_ex' collect2: error: ld returned 1 exit status Makefile:269: recipe for target 'sapi/cli/php' failed make: *** [sapi/cli/php] Error 1 ------------------------------------------------------------------------ [2016-12-14 17:21:49] nikic@php.net Are you sure this is a clean build? Please rerun ./buildconf. It looks like you're using the ./configure of a previous PHP version. ------------------------------------------------------------------------ [2016-12-14 17:19:19] mail at dasprids dot de Description: ------------ OS: UbuntuGNOME 16.04 GCC-Version: 5.0 make fails to compile on both GIT master and 7.1. Test script: --------------- ./configure && make Expected result: ---------------- make runs successfully Actual result: -------------- ext/fileinfo/libmagic/.libs/softmagic.o: In function `moffset': php-src/ext/fileinfo/libmagic/softmagic.c:822: undefined reference to `der_offs' ext/fileinfo/libmagic/.libs/softmagic.o: In function `magiccheck': php-src/ext/fileinfo/libmagic/softmagic.c:1978: undefined reference to `der_cmp' ext/filter/.libs/callback_filter.o: In function `php_filter_callback': php-src/ext/filter/callback_filter.c:38: undefined reference to `call_user_function_ex' ext/spl/.libs/php_spl.o: In function `php_spl_object_hash': php-src/ext/spl/php_spl.c:749: undefined reference to `php_mt_rand' php-src/ext/spl/php_spl.c:750: undefined reference to `php_mt_rand' ext/standard/.libs/array.o: In function `php_array_data_shuffle': php-src/ext/standard/array.c:2322: undefined reference to `php_mt_rand_range' php-src/ext/standard/array.c:2347: undefined reference to `php_mt_rand_range' ext/standard/.libs/array.o: In function `zif_array_rand': php-src/ext/standard/array.c:5064: undefined reference to `php_mt_rand_range' php-src/ext/standard/array.c:5034: undefined reference to `php_mt_rand_range' ext/standard/.libs/basic_functions.o: In function `zm_startup_basic': php-src/ext/standard/basic_functions.c:3663: undefined reference to `zm_startup_mt_rand' ext/standard/.libs/basic_functions.o:(.data.rel.ro+0x1068): undefined reference to `zif_mt_srand' ext/standard/.libs/basic_functions.o:(.data.rel.ro+0x1088): undefined reference to `zif_mt_getrandmax' ext/standard/.libs/basic_functions.o:(.data.rel.ro+0x10a8): undefined reference to `zif_mt_rand' ext/standard/.libs/basic_functions.o:(.data.rel.ro+0x10c8): undefined reference to `zif_mt_srand' ext/standard/.libs/basic_functions.o:(.data.rel.ro+0x10e8): undefined reference to `zif_mt_getrandmax' ext/standard/.libs/rand.o: In function `php_rand': php-src/ext/standard/rand.c:44: undefined reference to `php_mt_rand' ext/standard/.libs/rand.o: In function `zif_rand': php-src/ext/standard/rand.c:68: undefined reference to `php_mt_rand_common' php-src/ext/standard/rand.c:57: undefined reference to `php_mt_rand' php-src/ext/standard/rand.c:65: undefined reference to `php_mt_rand_common' ext/standard/.libs/rand.o: In function `php_srand': php-src/ext/standard/rand.c:36: undefined reference to `php_mt_srand' ext/standard/.libs/string.o: In function `php_string_shuffle': php-src/ext/standard/string.c:5388: undefined reference to `php_mt_rand_range' collect2: error: ld returned 1 exit status Makefile:269: recipe for target 'sapi/cli/php' failed make: *** [sapi/cli/php] Error 1 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73739&edit=1

« previous php.bugs (#205994) next »