Skip to content

[OEL 6.5] dwarf.c:581: undefined reference to `dwarf_loclist' issue #83

@miloluo

Description

@miloluo

Hi, guys
When I install dtrace4linux on Oracle Enterprise Linux 6.5 64bit.
I met this problem when using "make all":


../../build/ctfconvert.obj/dwarf.o: In function die_mem_offset': /sw/dtrace-20140420/cmd/ctfconvert/dwarf.c:581: undefined reference todwarf_loclist'
collect2: ld returned 1 exit status
make[3]: *** [../../build/ctfconvert] Error 1
make[2]: *** [all] Error 2
make[1]: *** [do_cmds] Error 2
tools/bug.sh
make: *** [all] Error 1


More log with this please check here: http://justpaste.it/ffw2

I also notice that there is a link with this arch linux:
[Arch Linux] Compile error: undefined reference to `dwarf_loclist' #58
#58

And I also tried "make -i all", it turn out to be a error there:


Executing: /sw/dtrace-20140420/tools/make-me
ERROR: /lib/modules/3.8.13-26.el6uek.x86_64/build does not exist.
make[1]: [kernel] Error 1 (ignored)
tools/mkdriver.pl driver-2 all
symlink ../../driver-2/Makefile build-3.8.13-26.el6uek.x86_64/driver-2/Makefile
symlink ../../driver-2/hworld.c build-3.8.13-26.el6uek.x86_64/driver-2/hworld.c
Executing: /sw/dtrace-20140420/tools/make-me
ERROR: /lib/modules/3.8.13-26.el6uek.x86_64/build does not exist.
make[1]: [kernel] Error 1 (ignored)
tools/mkctf.sh
build/ctfconvert not available - so not building the linux.ctf file
NOTE: The build is complete, but build/ctfconvert is not available.
This means you will get run time errors from the io.d and sched.d files
due to undefined kernel structure definitions. Simply delete or rename
these files until a fix can be put in place to handle older
distros which do not have the required libdwarf dependencies.

  (Typical error is references to undefined struct definitions such
  as dtrace_cpu_t).

sync


More detailed log on : http://justpaste.it/ffw4

Could you guys help me with this?
Thanks very much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions