Bug #76392 [Opn->Fbk]: Error relocating sapi/cli/php: unsupported relocation type 37
| From: | cmb@php.net | Date: | Wed, 30 May 2018 11:47:43 +0000 |
| Subject: | Bug #76392 [Opn->Fbk]: Error relocating sapi/cli/php: unsupported relocation type 37 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-215432@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76392&edit=1
ID: 76392
Updated by: cmb@php.net
Reported by: peterkokot at gmail dot com
Summary: Error relocating sapi/cli/php: unsupported
relocation type 37
-Status: Open
+Status: Feedback
Type: Bug
Package: *Compile Issues
Operating System: Alpine 3.7
PHP Version: master-Git-2018-05-30 (Git)
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Please try
./configure --disable-all --without-pcre-jit (see
also the respective note in
<http://php.net/manual/en/install.unix.php>).
Previous Comments:
------------------------------------------------------------------------
[2018-05-30 08:29:05] peterkokot at gmail dot com
Description:
------------
When building PHP on Alpine Linux 3.7 the compilation goes through ok:
./buildconf
./configure --disable-all
make
but then the following appears when running CLI SAPI:
./sapi/cli/php -v
Error relocating sapi/cli/php: unsupported relocation type 37
and exits with 127 code.
When running valgrind --leak-check=full --show-leak-kinds=all sapi/cli/php -v
/opt/php-src # valgrind --leak-check=full --show-leak-kinds=all sapi/cli/php -v
==22== Memcheck, a memory error detector
==22== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==22== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
==22== Command: sapi/cli/php -v
==22==
==22== Invalid free() / delete / delete[] / realloc()
==22== at 0x4C939EA: free (vg_replace_malloc.c:530)
==22== by 0x405807B: ??? (in /lib/ld-musl-x86_64.so.1)
==22== Address 0x4e9b180 is in a rw- mapped file
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so segment
==22==
Error relocating sapi/cli/php: unsupported relocation type 37
Error relocating sapi/cli/php: unsupported relocation type 37
Error relocating sapi/cli/php: unsupported relocation type 37
Error relocating sapi/cli/php: unsupported relocation type 37
==22==
==22== HEAP SUMMARY:
==22== in use at exit: 404 bytes in 1 blocks
==22== total heap usage: 1 allocs, 1 frees, 404 bytes allocated
==22==
==22== 404 bytes in 1 blocks are still reachable in loss record 1 of 1
==22== at 0x4C9461F: calloc (vg_replace_malloc.c:711)
==22== by 0x40591A7: ??? (in /lib/ld-musl-x86_64.so.1)
==22== by 0x4059E4F: __dls3 (in /lib/ld-musl-x86_64.so.1)
==22== by 0x40117DF: ??? (in /lib/ld-musl-x86_64.so.1)
==22==
==22== LEAK SUMMARY:
==22== definitely lost: 0 bytes in 0 blocks
==22== indirectly lost: 0 bytes in 0 blocks
==22== possibly lost: 0 bytes in 0 blocks
==22== still reachable: 404 bytes in 1 blocks
==22== suppressed: 0 bytes in 0 blocks
==22==
==22== For counts of detected and suppressed errors, rerun with: -v
==22== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
ldd shows the following:
ldd sapi/cli/php
/lib/ld-musl-x86_64.so.1 (0x7f82e4eff000)
libc.musl-x86_64.so.1 => /lib/ld-musl-x86_64.so.1 (0x7f82e4eff000)
Error relocating sapi/cli/php: unsupported relocation type 37
Error relocating sapi/cli/php: unsupported relocation type 37
Error relocating sapi/cli/php: unsupported relocation type 37
Error relocating sapi/cli/php: unsupported relocation type 37
Expected result:
----------------
exit with code 0
Actual result:
--------------
Error relocating sapi/cli/php: unsupported relocation type 37
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76392&edit=1