|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2018-05-30 11:47 UTC] cmb@php.net
 
-Status:      Open
+Status:      Feedback
-Assigned To:
+Assigned To: cmb
  [2018-05-30 11:47 UTC] cmb@php.net
  [2018-05-30 14:47 UTC] peterkokot at gmail dot com
  [2018-05-30 16:17 UTC] cmb@php.net
 
-Status:      Feedback
+Status:      Open
-Assigned To: cmb
+Assigned To:
  [2018-05-30 16:17 UTC] cmb@php.net
  [2018-06-20 17:11 UTC] cmb@php.net
  [2018-06-20 21:09 UTC] peterkokot at gmail dot com
  [2018-06-20 21:32 UTC] cmb@php.net
  [2018-06-20 22:00 UTC] peterkokot at gmail dot com
  [2018-06-21 10:45 UTC] marcel_989 at hotmail dot com
  [2018-06-21 10:56 UTC] cmb@php.net
 
-Status:      Open
+Status:      Verified
-Assigned To:
+Assigned To: laruence
  [2018-06-21 10:56 UTC] cmb@php.net
  [2018-06-21 10:57 UTC] cmb@php.net
 
-PHP Version: master-Git-2018-05-30 (Git)
+PHP Version: PHP-7.3.0alpha2
  [2018-06-21 10:57 UTC] cmb@php.net
 
-PHP Version: PHP-7.3.0alpha2
+PHP Version: 7.3.0alpha2
  [2018-06-21 11:32 UTC] laruence@php.net
  [2018-06-21 11:44 UTC] cmb@php.net
  [2018-06-25 10:08 UTC] f dot bosch at genkgo dot nl
  [2018-06-28 13:31 UTC] peterkokot at gmail dot com
  [2018-07-07 09:32 UTC] nikic@php.net
  [2018-07-07 09:32 UTC] nikic@php.net
 
-Status: Verified
+Status: Closed
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 01:00:01 2025 UTC | 
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