Bug #73739 [NEW]: undefined reference to `php_mt_rand_range'
| From: | mail at dasprids dot de | Date: | Wed, 14 Dec 2016 17:19:21 +0000 |
| Subject: | Bug #73739 [NEW]: undefined reference to `php_mt_rand_range' | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-205989@lists.php.net to get a copy of this message | ||
From: mail at dasprids dot de
Operating system: UbuntuGNOME 16.04
PHP version: master-Git-2016-12-14 (Git)
Package: Compile Failure
Bug Type: Bug
Bug description:undefined reference to `php_mt_rand_range'
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 bug report at https://bugs.php.net/bug.php?id=73739&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73739&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73739&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73739&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73739&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73739&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73739&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73739&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73739&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73739&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73739&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73739&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73739&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73739&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73739&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73739&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73739&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73739&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73739&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73739&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73739&r=mysqlcfg