Comments (4)
Hello, can you try apt install liblzma-dev libbz2-dev
? We are aiming to simplify the build soon.
from phpspy.
Steps taken on a fresh Ubuntu 18.04 (Docker) container.
git clone https://github.com/adsr/phpspy.git
cd phpspy
apt-get install -y autoconf bison flex gawk git liblzma-dev libbz2-dev make python zlibc zlib1g zlib1g-dev
make
This got the compiling work. Ending with the following:
CCLD libebl_tilegx.so
CCLD libebl_m68k.so
CCLD libebl_bpf.so
CCLD libebl_riscv.so
rm sparc_initreg.o ppc_cfi.o m68k_cfi.o riscv_initreg.o x86_64_symbol.o ppc_auxv.o alpha_symbol.o arm_auxv.o m68k_symbol.o riscv_corenote.o i386_unwind.o sparc_symbol.o x86_64_syscall.o aarch64_init.o ppc_initreg.o i386_retval.o sparc_corenote.o m68k_initreg.o sparc_cfi.o ppc_regs.o ppc_init.o s390_init.o ppc_syscall.o tilegx_symbol.o ia64_symbol.o i386_corenote.o m68k_corenote.o s390_cfi.o sh_regs.o i386_init.o ppc_corenote.o alpha_init.o i386_auxv.o m68k_init.o x32_corenote.o s390_initreg.o arm_attrs.o ppc64_resolve_sym.o x86_64_initreg.o ia64_init.o arm_initreg.o ppc64_retval.o x86_64_retval.o ia64_retval.o ppc64_unwind.o tilegx_init.o arm_cfi.o aarch64_initreg.o sparc_attrs.o i386_syscall.o arm_retval.o bpf_symbol.o arm_symbol.o x86_64_corenote.o aarch64_symbol.o s390_unwind.o aarch64_corenote.o alpha_corenote.o sparc64_corenote.o x86_64_cfi.o sh_symbol.o x86_64_init.o i386_regs.o ppc64_corenote.o s390_retval.o ppc_retval.o bpf_regs.o bpf_init.o ia64_regs.o alpha_retval.o arm_corenote.o aarch64_cfi.o aarch64_unwind.o sparc_init.o i386_initreg.o x86_64_unwind.o aarch64_retval.o s390_corenote.o riscv_regs.o sparc_auxv.o riscv_symbol.o s390_symbol.o sparc_retval.o s390x_corenote.o riscv_init.o x86_64_regs.o sh_retval.o sh_corenote.o i386_cfi.o alpha_regs.o ppc64_symbol.o m68k_retval.o arm_regs.o aarch64_regs.o sparc_regs.o i386_symbol.o m68k_regs.o alpha_auxv.o ppc_symbol.o arm_init.o s390_regs.o tilegx_retval.o riscv_cfi.o ppc64_init.o ppc_attrs.o tilegx_regs.o tilegx_corenote.o sh_init.o
make[1]: Leaving directory '/media/pheagey/f7e5435a-cbb0-43a7-8aad-152438f6f974/Projects/tools/phpspy/vendor/elfutils'
cd vendor/termbox && ./waf configure && ./waf --targets=termbox_static
Setting top to : /media/pheagey/f7e5435a-cbb0-43a7-8aad-152438f6f974/Projects/tools/phpspy/vendor/termbox
Setting out to : /media/pheagey/f7e5435a-cbb0-43a7-8aad-152438f6f974/Projects/tools/phpspy/vendor/termbox/build
Checking for 'gcc' (C compiler) : /usr/bin/gcc
'configure' finished successfully (0.048s)
Waf: Entering directory `/media/pheagey/f7e5435a-cbb0-43a7-8aad-152438f6f974/Projects/tools/phpspy/vendor/termbox/build'
[1/3] c: src/termbox.c -> build/src/termbox.c.2.o
[2/3] c: src/utf8.c -> build/src/utf8.c.2.o
../src/termbox.c: In function ‘sigwinch_handler’:
../src/termbox.c:582:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(winch_fds[1], &zzz, sizeof(int));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/termbox.c:19:0:
../src/bytebuffer.inl: In function ‘bytebuffer_flush’:
../src/bytebuffer.inl:58:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(fd, b->buf, b->len);
^~~~~~~~~~~~~~~~~~~~~~~~~
../src/termbox.c: In function ‘wait_fill_event’:
../src/termbox.c:672:4: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
read(winch_fds[0], &zzz, sizeof(int));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[3/3] cstlib: build/src/termbox.c.2.o build/src/utf8.c.2.o -> build/src/libtermbox.a
Waf: Leaving directory `/media/pheagey/f7e5435a-cbb0-43a7-8aad-152438f6f974/Projects/tools/phpspy/vendor/termbox/build'
'build' finished successfully (0.744s)
cc -std=c99 -Wall -Wextra -pedantic -g -Ofast -pthread -I. -I./vendor -Ivendor/termbox/src -Ivendor/elfutils/lib -Ivendor/elfutils/libelf -Ivendor/elfutils/libebl -Ivendor/elfutils/libdwelf -Ivendor/elfutils/libdwfl -Ivendor/elfutils/libdw -Ivendor/elfutils/libcpu -Ivendor/elfutils/backends -Ivendor/symlinks/libdwfl -Ivendor/termbox/src/ -DUSE_TERMBOX=1 phpspy.c pgrep.c top.c addr_libdw.c event_fout.c -o phpspy -Lvendor/elfutils/libdw -Lvendor/elfutils/libelf -Lvendor/elfutils/libdwfl -Lvendor/elfutils/libebl -Lvendor/elfutils/libdwelf -Wl,-Bstatic -ldw -lelf -ldwfl -lebl -ldwelf -Lvendor/elfutils/lib -leu -Lvendor/elfutils/backends -lebl_x86_64_pic -Wl,-Bdynamic -ldl -lz -llzma -lbz2 -Wl,-Bstatic -Lvendor/termbox/build/src/ -ltermbox -Wl,-Bdynamic
pheagey@Armor-VIII:~/Projects/tools/phpspy$ ./phpspy --help
Usage:
phpspy [options] -p <pid>
phpspy [options] -P <pgrep-args>
phpspy [options] -- <cmd>
...
Looks like it is some OS packages missing.
I will double check this tomorrow in a Windows 10 WSL Ubuntu 18.04 to confirm fix.
Thank you.
from phpspy.
Confirmed; it was missing OS packages.
apt-get install -y autoconf bison flex gawk git liblzma-dev libbz2-dev make python zlibc zlib1g zlib1g-dev
The above installs all the required OS packages for Ubuntu 18.04
from phpspy.
Thanks. See #48 for simplified build. We shouldn't need any of autoconf bison flex gawk git liblzma-dev libbz2-dev make python zlibc zlib1g zlib1g-dev
in that branch.
from phpspy.
Related Issues (20)
- Is it possible to run phpspy on a core dump? HOT 1
- Not enough space HOT 3
- Wrong stack reported HOT 3
- Cleanup string handling
- Not working with php-fpm HOT 9
- Wrong bin path with chroot inside overlayfs HOT 1
- Support FreeBSD
- Warning during compilation on Ubunto 20
- Phpspy on Apache2 PHP in Docker HOT 3
- Aarch64 support HOT 5
- Idea: Add signal handlers and syslog/print C and PHP stack trace on unexpected exit HOT 1
- Add option to retry reading the stack trace of a running application immediately HOT 2
- Request info atomic write HOT 6
- Using pyroscope - phpspy - not a dynamic object HOT 7
- bug: Failed to copy executor_globals HOT 1
- Make var peek max string length user configurable HOT 1
- Termbox2 dependency issue HOT 4
- Support ZTS PHP versions HOT 3
- get_php_bin_path: Failed HOT 1
- Errors being written to stdout HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpspy.