gumsymbolutil-libdwarf.c:538:58: error: 'DW_DLC_READ' undeclared
milahu opened this issue · 0 comments
milahu commented
../gum/backend-libdwarf/gumsymbolutil-libdwarf.c:538:58: error: 'DW_DLC_READ' undeclared (first use in this function); did you mean 'DW_DLA_WEAK'?
maybe wrong libdwarf version?
Run-time dependency libdwarf found: YES 0.4.2
build log
$ nix-build . -A frida-gum
this derivation will be built:
/nix/store/rfx1gpi25pfhfv1p52nsjd2bll7bjksi-frida-gum-16.0.8.drv
building '/nix/store/rfx1gpi25pfhfv1p52nsjd2bll7bjksi-frida-gum-16.0.8.drv'...
unpacking sources
unpacking source archive /nix/store/arbpfpbd4aqns0wzfgk0vnf1aka9hrlg-source
source root is source
patching sources
configuring
meson flags: --buildtype=plain --libdir=/nix/store/16z28zqml3ad7ncqwrib21sjyydnjva3-frida-gum-16.0.8/lib --libexecdir=/nix/store/16z28zqml3ad7ncqwrib21sjyydnjva3-frida-gum-16.0.8/libexec --bindir=/nix/store/16z28zqml3ad7ncqwrib21sjyydnjva3-frida-gum-16.0.8/bin --sbindir=/nix/store/16z28zqml3ad7ncqwrib21sjyydnjva3-frida-gum-16.0.8/sbin --includedir=/nix/store/16z28zqml3ad7ncqwrib21sjyydnjva3-frida-gum-16.0.8/include --mandir=/nix/store/16z28zqml3ad7ncqwrib21sjyydnjva3-frida-gum-16.0.8/share/man --infodir=/nix/store/16z28zqml3ad7ncqwrib21sjyydnjva3-frida-gum-16.0.8/share/info --localedir=/nix/store/16z28zqml3ad7ncqwrib21sjyydnjva3-frida-gum-16.0.8/share/locale -Dauto_features=enabled -Dwrap_mode=nodownload --prefix=/nix/store/16z28zqml3ad7ncqwrib21sjyydnjva3-frida-gum-16.0.8
The Meson build system
Version: 0.64.1
Source dir: /build/source
Build dir: /build/source/build
Build type: native build
Project name: frida-gum
Project version: 1.0.0
C compiler for the host machine: gcc (gcc 11.3.0 "gcc (GCC) 11.3.0")
C linker for the host machine: gcc ld.bfd 2.39
C++ compiler for the host machine: g++ (gcc 11.3.0 "g++ (GCC) 11.3.0")
C++ linker for the host machine: g++ ld.bfd 2.39
Host machine cpu family: x86_64
Host machine cpu: x86_64
Has header "android/api-level.h" : NO
Fetching value of define "FRIDA_VERSION" :
Has header "elf.h" : YES
Has header "link.h" : YES
Has header "stdint.h" : YES
Has header "sys/auxv.h" : YES
Has header "sys/elf.h" : YES
Has header "asm/ptrace.h" : YES
Has header "sys/user.h" : YES
Checking if "asm/prctl.h is available" compiles: YES
Checking for function "madvise" : YES
Checking for function "posix_madvise" : YES
Checking for function "posix_spawnattr_init" : YES
Checking for type "long double" : YES
Checking for type "long long int" : YES
Checking for type "unsigned long long int" : YES
Checking if "compiling for glibc" compiles: YES
Checking whether type "struct mallinfo" has member "arena" : YES
Checking if "toolchain supports the pack pragma" compiles: YES
Checking if "toolchain supports __sync_lock_test_and_set()" compiles: YES
Checking if "toolchain supports __builtin___clear_cache()" compiles: YES
Checking if "toolchain supports __builtin_c[lt]z*()" compiles: YES
Checking if "toolchain supports __builtin_popcount()" compiles: YES
Run-time dependency threads found: YES
Found pkg-config: /nix/store/5cip8xpjb9g10nwyzyslxpck3anc4r4h-pkg-config-wrapper-0.29.2/bin/pkg-config (0.29.2)
Run-time dependency glib-2.0 found: YES 2.74.3
Run-time dependency gobject-2.0 found: YES 2.74.3
Run-time dependency capstone found: YES 5.0.0
Run-time dependency libffi found: YES 3.4.4
Run-time dependency liblzma found: YES 5.4.0
Checking if "compiling with shared GLib" with dependency glib-2.0 compiles: YES
Program g-ir-scanner found: YES (/nix/store/rxqy48lbzysimrarnkydmfwbdjz7js1g-gobject-introspection-wrapped-1.74.0-dev/bin/g-ir-scanner)
Checking for function "g_thread_set_callbacks" with dependency glib-2.0: NO
Checking for function "ffi_set_mem_callbacks" with dependency libffi: NO
Checking for function "pthread_attr_getstack" with dependency threads: YES
Run-time dependency libunwind found: YES 1.6.2
Run-time dependency libelf found: YES 0.8.13
Run-time dependency libdwarf found: YES 0.4.2
Found CMake: /nix/store/j0mq22m4pkizxxpi98x1bbjd3nf7mzfs-cmake-3.24.3/bin/cmake (3.24.3)
Run-time dependency gioopenssl found: NO (tried pkgconfig and cmake)
Configuring config.h using configuration
Program glib-mkenums found: YES (/nix/store/7gp6sgjxwr4bzvy4r29a0rmb476pxww0-glib-2.74.3-dev/bin/glib-mkenums)
Program glib-mkenums found: YES (/nix/store/7gp6sgjxwr4bzvy4r29a0rmb476pxww0-glib-2.74.3-dev/bin/glib-mkenums)
Run-time dependency gobject-introspection-1.0 found: YES 1.74.0
Dependency gobject-introspection-1.0 found: YES 1.74.0 (cached)
Program g-ir-scanner found: YES (/nix/store/9hps5xqlhqvjbqrrjac1qjbx2vgwnj57-gobject-introspection-1.74.0-dev/bin/g-ir-scanner)
Dependency gobject-introspection-1.0 found: YES 1.74.0 (cached)
Program g-ir-compiler found: YES (/nix/store/9hps5xqlhqvjbqrrjac1qjbx2vgwnj57-gobject-introspection-1.74.0-dev/bin/g-ir-compiler)
Build targets in project: 16
frida-gum 1.0.0
User defined options
auto_features: enabled
bindir : /nix/store/16z28zqml3ad7ncqwrib21sjyydnjva3-frida-gum-16.0.8/bin
buildtype : plain
includedir : /nix/store/16z28zqml3ad7ncqwrib21sjyydnjva3-frida-gum-16.0.8/include
infodir : /nix/store/16z28zqml3ad7ncqwrib21sjyydnjva3-frida-gum-16.0.8/share/info
libdir : /nix/store/16z28zqml3ad7ncqwrib21sjyydnjva3-frida-gum-16.0.8/lib
libexecdir : /nix/store/16z28zqml3ad7ncqwrib21sjyydnjva3-frida-gum-16.0.8/libexec
localedir : /nix/store/16z28zqml3ad7ncqwrib21sjyydnjva3-frida-gum-16.0.8/share/locale
mandir : /nix/store/16z28zqml3ad7ncqwrib21sjyydnjva3-frida-gum-16.0.8/share/man
prefix : /nix/store/16z28zqml3ad7ncqwrib21sjyydnjva3-frida-gum-16.0.8
sbindir : /nix/store/16z28zqml3ad7ncqwrib21sjyydnjva3-frida-gum-16.0.8/sbin
wrap_mode : nodownload
Found ninja-1.11.1 at /nix/store/5p4994n7rygjg8v7jaf9dv70z3lgiymd-ninja-1.11.1/bin/ninja
meson: enabled parallel building
configurePhase completed in 43 seconds
building
build flags: -j3
[1/135] Generating tests/data/gum-tests-data with a custom command
[2/135] Generating tests/data/gum-tests-data-stamp with a custom command
[3/135] Compiling C object tests/data/prebuiltcmodule.so.p/prebuiltcmodule.c.o
[4/135] Linking target tests/data/prebuiltcmodule.so
...
[60/135] Compiling C object gum/libfrida-gum-1.0.so.p/backend-libunwind_gumunwbacktracer.c.o
[61/135] Compiling C object gum/libfrida-gum-1.0.so.p/backend-libdwarf_gumsymbolutil-libdwarf.c.o
FAILED: gum/libfrida-gum-1.0.so.p/backend-libdwarf_gumsymbolutil-libdwarf.c.o
gcc -Igum/libfrida-gum-1.0.so.p -Igum -I../gum -I. -I.. -I../gum/arch-x86 -I../gum/arch-arm -I../gum/arch-arm64 -I../gum/arch-mips -Ilibs -I../libs -Ilibs/gum/heap -I../libs/gum/heap -Ilibs/gum/prof -I../libs/gum/prof -I../gum/backend-elf -I/nix/store/7gp6sgjxwr4bzvy4r29a0rmb476pxww0-glib-2.74.3-dev/include/glib-2.0 -I/nix/store/i4dqcpppyyq5yqcvw95mv5s11yfyy8pf-glib-2.74.3/lib/glib-2.0/include -I/nix/store/aw5yynzqi8cg4h733qjch53zcm4nkshr-capstone-5.0-rc2/include/capstone -I/nix/store/7gp6sgjxwr4bzvy4r29a0rmb476pxww0-glib-2.74.3-dev/include -I/nix/store/s7dns7drgskk7xpr4s3kvqcc745dg9js-libffi-3.4.4-dev/include -I/nix/store/d34z32v6z8kqa981lfp23pvhsn7gj2sw-libunwind-1.6.2-dev/include -I/nix/store/ss604a0wwmsbys09pg09hggpwcgh8ac9-libelf-0.8.13/include/libelf -I/nix/store/ss604a0wwmsbys09pg09hggpwcgh8ac9-libelf-0.8.13/include -I/nix/store/qsjlfrza9y6cl9qnwkf5r2axklwqkdin-libdwarf-0.4.2-dev/include/libdwarf-0 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu99 -include /build/source/build/config.h '-DG_LOG_DOMAIN="Frida"' -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DG_DISABLE_DEPRECATED -D_GNU_SOURCE=1 -fPIC -pthread -MD -MQ gum/libfrida-gum-1.0.so.p/backend-libdwarf_gumsymbolutil-libdwarf.c.o -MF gum/libfrida-gum-1.0.so.p/backend-libdwarf_gumsymbolutil-libdwarf.c.o.d -o gum/libfrida-gum-1.0.so.p/backend-libdwarf_gumsymbolutil-libdwarf.c.o -c ../gum/backend-libdwarf/gumsymbolutil-libdwarf.c
../gum/backend-libdwarf/gumsymbolutil-libdwarf.c: In function 'gum_module_entry_from_path_and_base':
../gum/backend-libdwarf/gumsymbolutil-libdwarf.c:538:7: warning: implicit declaration of function 'dwarf_elf_init_b'; did you mean 'dwarf_init_b'? [-Wimplicit-function-declaration]
538 | dwarf_elf_init_b (gum_elf_module_get_elf (module), DW_DLC_READ,
| ^~~~~~~~~~~~~~~~
| dwarf_init_b
../gum/backend-libdwarf/gumsymbolutil-libdwarf.c:538:58: error: 'DW_DLC_READ' undeclared (first use in this function); did you mean 'DW_DLA_WEAK'?
538 | dwarf_elf_init_b (gum_elf_module_get_elf (module), DW_DLC_READ,
| ^~~~~~~~~~~
| DW_DLA_WEAK
../gum/backend-libdwarf/gumsymbolutil-libdwarf.c:538:58: note: each undeclared identifier is reported only once for each function it appears in
../gum/backend-libdwarf/gumsymbolutil-libdwarf.c: In function 'gum_module_entry_free':
../gum/backend-libdwarf/gumsymbolutil-libdwarf.c:561:5: error: too many arguments to function 'dwarf_finish'
561 | dwarf_finish (entry->dbg, NULL);
| ^~~~~~~~~~~~