dtrace4linux / linux

dtrace for linux - kernel driver and userland tools
http://crtags.blogspot.com
1.18k stars 226 forks source link

build error on SUSE Linux Enterprise Server #127

Closed robertbee closed 7 years ago

robertbee commented 7 years ago

SUSE Linux Enterprise Server 12 (x86_64) SUSE Linux Enterprise Server 11 (x86_64)

are both got the same error.

I already install the elfutils , the error information are:

root:/opt/dtrace/linux-master # make all BUILD_DIR=build-3.12.49-11-default \ tools/mkdriver.pl driver-kmem ; \ tools/build.pl build-3.12.49-11-default uname -m Executing: /opt/dtrace/linux-master/tools/make-me make -C /lib/modules/3.12.49-11-default/build M=/opt/dtrace/linux-master/build-3.12.49-11-default/driver-kmem make[1]: Entering directory `/usr/src/linux-3.12.49-11-obj/x86_64/default' Building modules, stage 2. MODPOST 1 modules Error: you dont appear to have /usr/include/gelf.h, which means compilation will fail. You should add the libelf-dev package to your system and retry the 'make all'. makefile:67: recipe for target 'all' failed make: *** [all] Error 1

altually, I can find gelf.h at /usr/local/include/gelf.h

root:# find / -name "gelf.h" -print /usr/local/include/gelf.h

so I think the compiling makefile have something wrong or the dtrace4linux do not support the SLE.

bitfree commented 7 years ago

how about install elfutils-libelf-devel package..

Error: you dont appear to have /usr/include/gelf.h, which means compilation will fail. You should add the libelf-dev package to your system and retry the 'make all'.

glibc-headers packages include /usr/include/elf.h file

2016-12-01 17:34 GMT+09:00 robertbee notifications@github.com:

SUSE Linux Enterprise Server 12 (x86_64) SUSE Linux Enterprise Server 11 (x86_64)

are both got the same error.

I already install the elfutils , the error information are:

root:/opt/dtrace/linux-master # make all BUILD_DIR=build-3.12.49-11-default tools/mkdriver.pl driver-kmem ; tools/build.pl build-3.12.49-11-default uname -m Executing: /opt/dtrace/linux-master/tools/make-me make -C /lib/modules/3.12.49-11-default/build M=/opt/dtrace/linux-master/ build-3.12.49-11-default/driver-kmem make[1]: Entering directory `/usr/src/linux-3.12.49-11-obj/x86_64/default' Building modules, stage 2. MODPOST 1 modules Error: you dont appear to have /usr/include/gelf.h, which means compilation will fail. You should add the libelf-dev package to your system and retry the 'make all'. makefile:67: recipe for target 'all' failed make: *** [all] Error 1

altually, I can find gelf.h at /usr/local/include/gelf.h

root:# find / -name "gelf.h" -print /usr/local/include/gelf.h

so I think the compiling makefile have something wrong or the dtrace4linux do not support the SLE.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dtrace4linux/linux/issues/127, or mute the thread https://github.com/notifications/unsubscribe-auth/AHmqCNT69vbqoSkK8W_Urtz9_4EHaj59ks5rDoaAgaJpZM4LBH42 .

-- mailto : bitfree@gmail.com mobile : 82-10-6449-2031

robertbee commented 7 years ago

actually I download the elfutils sourcecode and build it, so the include file directory should be /usr/local/include/gelf.h so I think you do not support this. the solve way is easy, copy the /usr/local/include/*.h files to the /usr/include and also with the libs.