Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build tbstack without libunwind-ptrace #33

Open
eivanov89 opened this issue Jan 19, 2023 · 2 comments
Open

Can't build tbstack without libunwind-ptrace #33

eivanov89 opened this issue Jan 19, 2023 · 2 comments
Assignees

Comments

@eivanov89
Copy link
Member

Hi guys,

> ./configure --help | grep ptrace
  --disable-ptrace        Disable libunwind ptrace (default enabled)
> ./configure --disable-ptrace
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for library containing elf_begin... -lelf
./configure: line 5359: syntax error near unexpected token `LIBUNWIND,'
./configure: line 5359: `  PKG_CHECK_MODULES(LIBUNWIND, libunwind-ptrace)'
@BobIsOnFire BobIsOnFire self-assigned this Jun 1, 2023
@BobIsOnFire
Copy link
Member

Hi @eivanov89 ,

Cannot reproduce this out of the gate. Please share more information: OS, tbstack commit, versions of autoconf, automake and pkg-config that you use. Also please share other commands that you executed in the repository before ./configure.

@eivanov89
Copy link
Member Author

Hi @BobIsOnFire
It was obsolete Ubuntu, now I can't it reproduce on Ubuntu 20.04. Though I got another issue. Configure missed that I don't have dwarf-devel and I got compilation error:

src/unwind.c:35:10: fatal error: dwarf.h: No such file or directory
   35 | #include <dwarf.h>

When I installed libdwarf-devel, it didn't help. I had to change the include:

diff --git a/src/unwind.c b/src/unwind.c
index 7f2e54d..e7c3aba 100644
--- a/src/unwind.c
+++ b/src/unwind.c
@@ -32,7 +32,7 @@
 #include "snapshot.h"
 #include "unwind.h"

-#include <dwarf.h>
+#include <libdwarf/dwarf.h>
 #include <gelf.h>
 #include <libelf.h>
 #include <libgen.h>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants