Closed ramth05 closed 6 months ago
Getting below error while running make ( manual install )
/bin/sh /app/php-memory-profiler/libtool --mode=compile cc -I. -I/app/php-memory-profiler -I/app/php-memory-profiler/include -I/app/php-memory-profiler/main -I/app/php-memory-profiler -I/usr/include/php81 -I/usr/include/php81/main -I/usr/include/php81/TSRM -I/usr/include/php81/Zend -I/usr/include/php81/ext -I/usr/include/php81/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /app/php-memory-profiler/memprof.c -o memprof.lo -MMD -MF memprof.dep -MT memprof.lo mkdir .libs cc -I. -I/app/php-memory-profiler -I/app/php-memory-profiler/include -I/app/php-memory-profiler/main -I/app/php-memory-profiler -I/usr/include/php81 -I/usr/include/php81/main -I/usr/include/php81/TSRM -I/usr/include/php81/Zend -I/usr/include/php81/ext -I/usr/include/php81/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /app/php-memory-profiler/memprof.c -MMD -MF memprof.dep -MT memprof.lo -fPIC -DPIC -o .libs/memprof.o /app/php-memory-profiler/memprof.c:27:10: fatal error: sys/queue.h: No such file or directory 27 | #include <sys/queue.h> | ^~~~~ compilation terminated.
Latest master commit
PHP 8.1.17
Alpine Linux v3.16
For me the solution in this issue fixed it for me: https://github.com/arnaud-lb/php-memory-profiler/issues/15
Thank you @JeroenBoesten. I've updated the README to add bsd-compat-headers in dependencies.
bsd-compat-headers
Description
Getting below error while running make ( manual install )
/bin/sh /app/php-memory-profiler/libtool --mode=compile cc -I. -I/app/php-memory-profiler -I/app/php-memory-profiler/include -I/app/php-memory-profiler/main -I/app/php-memory-profiler -I/usr/include/php81 -I/usr/include/php81/main -I/usr/include/php81/TSRM -I/usr/include/php81/Zend -I/usr/include/php81/ext -I/usr/include/php81/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /app/php-memory-profiler/memprof.c -o memprof.lo -MMD -MF memprof.dep -MT memprof.lo mkdir .libs cc -I. -I/app/php-memory-profiler -I/app/php-memory-profiler/include -I/app/php-memory-profiler/main -I/app/php-memory-profiler -I/usr/include/php81 -I/usr/include/php81/main -I/usr/include/php81/TSRM -I/usr/include/php81/Zend -I/usr/include/php81/ext -I/usr/include/php81/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /app/php-memory-profiler/memprof.c -MMD -MF memprof.dep -MT memprof.lo -fPIC -DPIC -o .libs/memprof.o /app/php-memory-profiler/memprof.c:27:10: fatal error: sys/queue.h: No such file or directory 27 | #include <sys/queue.h> | ^
~~~~ compilation terminated.php-memprof Version
Latest master commit
PHP Version
PHP 8.1.17
Operating System
Alpine Linux v3.16