You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[OEL 6.5] dwarf.c:581: undefined reference to `dwarf_loclist' issue #83
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).
I also notice that there is a link with this arch linux:
[Arch Linux] Compile error: undefined reference to `dwarf_loclist' #58#58 #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).
Because I don't have OEL's ULN for dtrace installation.
So I turn to here. So dtrace4linux doesn't support OEL? I thought it was a redhat fedora branch linux.
Thanks very much.
I havent tried to build dtrace4linux on OEL because its there. I thought
they even published their own source code.
If OEL doesnt make it available, then I could grab a copy of OEL and
validate dtrace4linux works.
I also got his problem on fedora 20 -> ../../build/ctfconvert.obj/dwarf.o: In function die_mem_offset': /home/lcestari/repositories/linux/cmd/ctfconvert/dwarf.c:581: undefined reference todwarf_loclist'
collect2: error: 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
I also got his problem on fedora 20 -> ../../build/ctfconvert.obj/dwarf.o:
In function die_mem_offset':
/home/lcestari/repositories/linux/cmd/ctfconvert/dwarf.c:581: undefined
reference todwarf_loclist'
collect2: error: 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
—
Reply to this email directly or view it on GitHub #83 (comment).
Thank you very much for the helping me =) I think I have both libs:
[lcestari@localhost linux]$ sudo yum install elfutils-libs
Loaded plugins: auto-update-debuginfo, langpacks, refresh-packagekit
Package elfutils-libs-0.160-1.fc20.x86_64 already installed and latest version
Nothing to do
[lcestari@localhost linux]$ sudo yum install libdwarf
Loaded plugins: auto-update-debuginfo, langpacks, refresh-packagekit
Package libdwarf-20140131-2.fc20.x86_64 already installed and latest version
Nothing to do
(not 100% for libdw but in http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/libdw.so.1()(64bit) claims it would be in elfutils-libs ). very weird, isnt it?
Thank you very much for the helping me =) I think I have both libs:
[lcestari@localhost linux]$ sudo yum install elfutils-libs
Loaded plugins: auto-update-debuginfo, langpacks, refresh-packagekit
Package elfutils-libs-0.160-1.fc20.x86_64 already installed and latest
version
Nothing to do
[lcestari@localhost linux]$ sudo yum install libdwarf
Loaded plugins: auto-update-debuginfo, langpacks, refresh-packagekit
Package libdwarf-20140131-2.fc20.x86_64 already installed and latest
version
Nothing to do
(not 100% for libdw but in http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/libdw.so.1()(64bit)
claims it would be in elfutils-libs ). very weird, isnt it?
—
Reply to this email directly or view it on GitHub #83 (comment).
Running 'make -i all' I got a strange warning in end:
LD [M] /home/lcestari/repositories/linux/build-3.15.10-200.fc20.x86_64/driver-2/hworld.ko
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).
Does that means I have to rename/remove $REPO/etc/sched.d , $REPO/libdtrace/sched.d and $REPO/etc/io.d ?
Also, I tried to run dtrace but it always show the command usage like I'm doing sth wrong, for example:
dtrace -s d.d
Usage /bin/dtrace [--help] [-h | -G] [-C [-I]] -s File.d [-o ]
Where d.d is the following:
$ cat d.d
callout_execute:::callout_start
{
self->cstart = timestamp;
}
callout_execute:::callout_end
{
@length = quantize(timestamp - self->cstart);
}
Do I have to restart so my kernel will be able to load this new module?
Running 'make -i all' I got a strange warning in end:
LD [M]
/home/lcestari/repositories/linux/build-3.15.10-200.fc20.x86_64/driver-2/hworld.ko
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).
Does that means I have to rename/remove $REPO/etc/sched.d ,
$REPO/libdtrace/sched.d and $REPO/etc/io.d ?
Also, I tried to run dtrace but it always show the command usage like I'm
doing sth wrong, for example:
dtrace -s d.d
Usage /bin/dtrace [--help] [-h | -G] [-C [-I]] -s File.d [-o ]
Where d.d is the following:
$ cat d.d
callout_execute:::callout_start
{
self->cstart = timestamp;
}
callout_execute:::callout_end
{
@length = quantize(timestamp - self->cstart);
}
Do I have to restart so my kernel will be able to load this new module?
—
Reply to this email directly or view it on GitHub #83 (comment).
it is not creating dtracedrv.ko if I do, "make -i all" and its snippet is below
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace.c:7801: error: request for member 'val' in something not a structure or union
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace.c: In function 'dtrace_ioctl':
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace.c:16599: error: request for member 'val' in something not a structure or union
make[3]: [/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace.o] Error 1 (ignored)
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_asm.o
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_asm.c: In function 'dtrace_copystr':
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_asm.c:197: warning: ignoring return value of 'copy_from_user', declared with attribute warn_unused_result
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_isa.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_linux.o
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_linux.c: In function 'priv_policy_only':
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_linux.c:2447: error: request for member 'val' in something not a structure or union
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_linux.c:2455: error: request for member 'val' in something not a structure or union
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_linux.c:2459: error: request for member 'val' in something not a structure or union
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_linux.c: In function 'dtracedrv_write':
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_linux.c:2673: error: request for member 'val' in something not a structure or union
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_linux.c:2674: error: request for member 'val' in something not a structure or union
make[3]: [/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_linux.o] Error 1 (ignored)
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_subr.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dwarf.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/fasttrap.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/fasttrap_isa.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/fasttrap_linux.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/fbt_linux.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/instr_linux.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/instr_size.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/intr.o
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/intr.c: In function 'dtrace_write_idt_entry2':
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/intr.c:730: warning: unused variable 'vec'
AS [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/intr_x86-32.o
AS [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/intr_x86-64.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/libc.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/missing.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/mutex.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/printf.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/profile.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/prov_common.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/prov_proc.o
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/prov_proc.c: In function 'psinfo_arg':
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/prov_proc.c:34: error: request for member 'val' in something not a structure or union
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/prov_proc.c:35: error: request for member 'val' in something not a structure or union
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/prov_proc.c:36: error: request for member 'val' in something not a structure or union
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/prov_proc.c:37: error: request for member 'val' in something not a structure or union
make[3]: [/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/prov_proc.o] Error 1 (ignored)
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/sdt_linux.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/sdt_subr.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/signal.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/systrace.o
AS [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/systrace_asm.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/taskq.o
In file included from include/linux/spinlock_types.h:18,
from include/linux/spinlock.h:80,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/../../linux/linux_types.h:77,
from /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_linux.h:29,
from /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/taskq.c:35:
include/linux/lockdep.h:345:1: warning: "lockdep_init_map" redefined
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/taskq.c:33:1: warning: this is the location of the previous definition
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/tcp.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/toxic.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/uncompress.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/vminfo.o
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/vminfo.c:46: warning: 'sdt_add_locator' defined but not used
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/vminfo.c:66: warning: 'vminfo_instr_callback' defined but not used
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/x_call.o
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/x_call.c:96:3: warning: #warning "NCPU is large - your module may not load (x_call.c)"
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/xen.o
LD [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtracedrv.o
ld: /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/ctl.o: No such file: No such file or directory
make[3]: [/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtracedrv.o] Error 1 (ignored)
Building modules, stage 2.
MODPOST 0 modules
tools/mkdriver.pl driver-2 all
symlink ../../driver-2/Makefile build-2.6.32-431.29.2.el6.x86_64/driver-2/Makefile
symlink ../../driver-2/hworld.c build-2.6.32-431.29.2.el6.x86_64/driver-2/hworld.c
Executing: /root/linux/tools/make-me
make -C /lib/modules/2.6.32-431.29.2.el6.x86_64/build M=/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver-2
LD /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver-2/built-in.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver-2/hworld.o
Building modules, stage 2.
MODPOST 1 modules
CC /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver-2/hworld.mod.o
LD [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver-2/hworld.ko.unsigned
NO SIGN [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver-2/hworld.ko
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
[root@fractal-2590 linux]# make load
tools/load.pl
05:28:57 Syncing...
05:28:57 Loading: build-2.6.32-431.29.2.el6.x86_64/driver/dtracedrv.ko
insmod: can't read 'build-2.6.32-431.29.2.el6.x86_64/driver/dtracedrv.ko': No such file or directory
/proc/dtrace does not exist. Maybe the driver didnt load properly.
make: *** [load] Error 1
Hi @dtrace4linux, how are you doing? Thank you for the reply (and sorry that I take too long to answer). I installed the oracle version by mistake =/ I tried to remove it but somehow it became the dependency of other libraries (I was quite sure it wasn't before), like, if I uninstall, I also got installed the: google-chrome-stable perl-CPAN perl-ExtUtils-Install perl-ExtUtils-MakeMaker perl-ExtUtils-ParseXS perl-devel redhat-lsb redhat-lsb-languages .I don't think there is a way to remove it right now but if you get any idea, I will be glad to listen and try =) (just to mention I already tried to remove them all and install this dependencies to see if it would sill require the oracle package but it always try to add it again =/)
Just remove the files that are installed. dtrace4linux doesnt install as a
normal RPM type package. I think theres confusion about dtrace4linux and
Oracles linux.
I tried to get a copy of OEL and failed - the oracle web site is too
difficult to navigate.
Hi @dtrace4linuxhttps://github.com/dtrace4linux, how are you doing?
Thank you for the reply (and sorry that I take too long to answer). I
installed the oracle version by mistake =/ I tried to remove it but somehow
it became the dependency of other libraries (I was quite sure it wasn't
before), like, if I uninstall, I also got installed the:
google-chrome-stable perl-CPAN perl-ExtUtils-Install
perl-ExtUtils-MakeMaker perl-ExtUtils-ParseXS perl-devel redhat-lsb
redhat-lsb-languages .I don't think there is a way to remove it right now
but if you get any idea, I will be glad to listen and try =) (just to
mention I already tried to remove them all and install this dependencies to
see if it would sill require the oracle package but it always try to add it
again =/)
—
Reply to this email directly or view it on GitHub #83 (comment).
i installed this on centos6.5 with kernal 2.6.32-431.el6.x86_64 . it ocurred "root.dwarf.c:(.text+0x1f): undefined reference to `dwarf_loclist'" when i make all. then i make clean && make all again , it passed. but when i make test, the system halted...
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).
On 20 Dec 2016 14:02, "周晶" ***@***.***> wrote:
any update here ?
I got this
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).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#83 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABWFhK7twk4bbRn6HtpxUQnzlifDn-bPks5rJ9_igaJpZM4B6S3M>
.
Activity
dtrace4linux commentedon May 13, 2014
Why are you using dtrace4linux on oel?
On 13 May 2014 02:44, "miloluo" notifications@github.com wrote:
miloluo commentedon May 13, 2014
Because I don't have OEL's ULN for dtrace installation.
So I turn to here. So dtrace4linux doesn't support OEL? I thought it was a redhat fedora branch linux.
Thanks very much.
IvanMamontov commentedon Aug 27, 2014
Any updates? I am trying to build dtrace on OEL too and I have the same problem.
dtrace4linux commentedon Aug 27, 2014
Why are you trying to install dtrace4linux on Oracle linux? They have their
own dtrace.
On 27 August 2014 07:12, Ivan Mamontov notifications@github.com wrote:
IvanMamontov commentedon Aug 27, 2014
Oracle Public Yum does not provide dtrace repositories for free http://docs.oracle.com/cd/E52668_01/E53499/html/ol7-install.html
So in order to get oracle own dtrace I have to pay about $800.
dtrace4linux commentedon Aug 27, 2014
Ok, next suggestion: can you avoid using OEL?
I havent tried to build dtrace4linux on OEL because its there. I thought
they even published their own source code.
If OEL doesnt make it available, then I could grab a copy of OEL and
validate dtrace4linux works.
On 27 August 2014 10:13, Ivan Mamontov notifications@github.com wrote:
luan-cestari commentedon Sep 19, 2014
I also got his problem on fedora 20 -> ../../build/ctfconvert.obj/dwarf.o: In function
die_mem_offset': /home/lcestari/repositories/linux/cmd/ctfconvert/dwarf.c:581: undefined reference todwarf_loclist'collect2: error: 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
dtrace4linux commentedon Sep 20, 2014
You have libdwarf installed but you need to install libdw.
Or, you have libdw installed but you need to install libdwarf.
You may think the above is crazy, and that is the very sad state of the
DWARF debug libraries.
On 19 September 2014 19:21, luan-cestari notifications@github.com wrote:
luan-cestari commentedon Sep 20, 2014
Thank you very much for the helping me =) I think I have both libs:
[lcestari@localhost linux]$ sudo yum install elfutils-libs
Loaded plugins: auto-update-debuginfo, langpacks, refresh-packagekit
Package elfutils-libs-0.160-1.fc20.x86_64 already installed and latest version
Nothing to do
[lcestari@localhost linux]$ sudo yum install libdwarf
Loaded plugins: auto-update-debuginfo, langpacks, refresh-packagekit
Package libdwarf-20140131-2.fc20.x86_64 already installed and latest version
Nothing to do
(not 100% for libdw but in http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/libdw.so.1()(64bit) claims it would be in elfutils-libs ). very weird, isnt it?
dtrace4linux commentedon Sep 20, 2014
can you send me the output from
make clean ; make all
thanks
Its picking up the wrong one, given both - or maybe neither support
dwarf_loclist. You can mostly ignore the error and just do
make -i all
that should give you a working dtracedrv.ko which can be loaded in the
kernel.
On 20 September 2014 12:52, luan-cestari notifications@github.com wrote:
luan-cestari commentedon Sep 20, 2014
The output is https://gist.github.com/luan-cestari/0e039c6ee2bc38b38afe
Running 'make -i all' I got a strange warning in end:
LD [M] /home/lcestari/repositories/linux/build-3.15.10-200.fc20.x86_64/driver-2/hworld.ko
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.
Does that means I have to rename/remove $REPO/etc/sched.d , $REPO/libdtrace/sched.d and $REPO/etc/io.d ?
Also, I tried to run dtrace but it always show the command usage like I'm doing sth wrong, for example:
dtrace -s d.d
Usage /bin/dtrace [--help] [-h | -G] [-C [-I]] -s File.d [-o ]
Where d.d is the following:
$ cat d.d
callout_execute:::callout_start
{
self->cstart = timestamp;
}
callout_execute:::callout_end
{
}
Do I have to restart so my kernel will be able to load this new module?
dtrace4linux commentedon Sep 21, 2014
You appear to be running oracles version of dtrace and not dtrace4linux.
You need to avoid mixing them up.
On 20 September 2014 13:33, luan-cestari notifications@github.com wrote:
kirantpatil commentedon Oct 8, 2014
Running on CentOS 6.5
it is not creating dtracedrv.ko if I do, "make -i all" and its snippet is below
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace.c:7801: error: request for member 'val' in something not a structure or union
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace.c: In function 'dtrace_ioctl':
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace.c:16599: error: request for member 'val' in something not a structure or union
make[3]: [/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace.o] Error 1 (ignored)
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_asm.o
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_asm.c: In function 'dtrace_copystr':
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_asm.c:197: warning: ignoring return value of 'copy_from_user', declared with attribute warn_unused_result
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_isa.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_linux.o
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_linux.c: In function 'priv_policy_only':
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_linux.c:2447: error: request for member 'val' in something not a structure or union
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_linux.c:2455: error: request for member 'val' in something not a structure or union
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_linux.c:2459: error: request for member 'val' in something not a structure or union
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_linux.c: In function 'dtracedrv_write':
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_linux.c:2673: error: request for member 'val' in something not a structure or union
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_linux.c:2674: error: request for member 'val' in something not a structure or union
make[3]: [/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_linux.o] Error 1 (ignored)
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_subr.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dwarf.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/fasttrap.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/fasttrap_isa.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/fasttrap_linux.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/fbt_linux.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/instr_linux.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/instr_size.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/intr.o
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/intr.c: In function 'dtrace_write_idt_entry2':
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/intr.c:730: warning: unused variable 'vec'
AS [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/intr_x86-32.o
AS [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/intr_x86-64.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/libc.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/missing.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/mutex.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/printf.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/profile.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/prov_common.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/prov_proc.o
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/prov_proc.c: In function 'psinfo_arg':
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/prov_proc.c:34: error: request for member 'val' in something not a structure or union
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/prov_proc.c:35: error: request for member 'val' in something not a structure or union
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/prov_proc.c:36: error: request for member 'val' in something not a structure or union
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/prov_proc.c:37: error: request for member 'val' in something not a structure or union
make[3]: [/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/prov_proc.o] Error 1 (ignored)
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/sdt_linux.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/sdt_subr.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/signal.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/systrace.o
AS [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/systrace_asm.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/taskq.o
In file included from include/linux/spinlock_types.h:18,
from include/linux/spinlock.h:80,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/../../linux/linux_types.h:77,
from /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtrace_linux.h:29,
from /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/taskq.c:35:
include/linux/lockdep.h:345:1: warning: "lockdep_init_map" redefined
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/taskq.c:33:1: warning: this is the location of the previous definition
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/tcp.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/toxic.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/uncompress.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/vminfo.o
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/vminfo.c:46: warning: 'sdt_add_locator' defined but not used
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/vminfo.c:66: warning: 'vminfo_instr_callback' defined but not used
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/x_call.o
/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/x_call.c:96:3: warning: #warning "NCPU is large - your module may not load (x_call.c)"
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/xen.o
LD [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtracedrv.o
ld: /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/ctl.o: No such file: No such file or directory
make[3]: [/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver/dtracedrv.o] Error 1 (ignored)
Building modules, stage 2.
MODPOST 0 modules
tools/mkdriver.pl driver-2 all
symlink ../../driver-2/Makefile build-2.6.32-431.29.2.el6.x86_64/driver-2/Makefile
symlink ../../driver-2/hworld.c build-2.6.32-431.29.2.el6.x86_64/driver-2/hworld.c
Executing: /root/linux/tools/make-me
make -C /lib/modules/2.6.32-431.29.2.el6.x86_64/build M=/root/linux/build-2.6.32-431.29.2.el6.x86_64/driver-2
LD /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver-2/built-in.o
CC [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver-2/hworld.o
Building modules, stage 2.
MODPOST 1 modules
CC /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver-2/hworld.mod.o
LD [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver-2/hworld.ko.unsigned
NO SIGN [M] /root/linux/build-2.6.32-431.29.2.el6.x86_64/driver-2/hworld.ko
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.
sync
[root@fractal-2590 linux]# make load
tools/load.pl
05:28:57 Syncing...
05:28:57 Loading: build-2.6.32-431.29.2.el6.x86_64/driver/dtracedrv.ko
insmod: can't read 'build-2.6.32-431.29.2.el6.x86_64/driver/dtracedrv.ko': No such file or directory
/proc/dtrace does not exist. Maybe the driver didnt load properly.
make: *** [load] Error 1
kirantpatil commentedon Oct 16, 2014
@dtrace4linux, any updates on this issue on how to resolve it ?
luan-cestari commentedon Oct 16, 2014
Hi @dtrace4linux, how are you doing? Thank you for the reply (and sorry that I take too long to answer). I installed the oracle version by mistake =/ I tried to remove it but somehow it became the dependency of other libraries (I was quite sure it wasn't before), like, if I uninstall, I also got installed the: google-chrome-stable perl-CPAN perl-ExtUtils-Install perl-ExtUtils-MakeMaker perl-ExtUtils-ParseXS perl-devel redhat-lsb redhat-lsb-languages .I don't think there is a way to remove it right now but if you get any idea, I will be glad to listen and try =) (just to mention I already tried to remove them all and install this dependencies to see if it would sill require the oracle package but it always try to add it again =/)
dtrace4linux commentedon Oct 16, 2014
Just remove the files that are installed. dtrace4linux doesnt install as a
normal RPM type package. I think theres confusion about dtrace4linux and
Oracles linux.
I tried to get a copy of OEL and failed - the oracle web site is too
difficult to navigate.
On 16 October 2014 13:38, luan-cestari notifications@github.com wrote:
kim0 commentedon Dec 6, 2014
I just failed to install on a fresh centos-7-x64 with the dwarf_loclist error .. Any hopes to get this fixed please?
loganbruns commentedon Feb 8, 2015
@kim0, fwiw, this pull request fixes the CentOS 7 build for me.
bolton1643 commentedon Sep 11, 2016
i installed this on centos6.5 with kernal 2.6.32-431.el6.x86_64 . it ocurred "root.dwarf.c:(.text+0x1f): undefined reference to `dwarf_loclist'" when i make all. then i make clean && make all again , it passed. but when i make test, the system halted...
idevz commentedon Dec 20, 2016
any update here ?
I got this
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).dtrace4linux commentedon Dec 20, 2016
idevz commentedon Dec 21, 2016
@dtrace4linux Thanks for your reply, but I install this in my Centos Vm based parallels on my OSX, not an OEL.