Skip to content

Instantly share code, notes, and snippets.

@ralphtheninja
Created December 22, 2012 05:29
Show Gist options
  • Save ralphtheninja/4357616 to your computer and use it in GitHub Desktop.
Save ralphtheninja/4357616 to your computer and use it in GitHub Desktop.
compile error for dtrace-for-linux on ubuntu
cd cmd/dtrace ; make --no-print-directory
cd cmd/ctfconvert ; make --no-print-directory
gcc -g -I. -I../../ -I../../libctf -I../../common -I../../uts/common -I../../linux -I/usr/include/libdwarf -o ../../build/ctfconvert ../../build/ctfconvert.obj/ctfconvert.o ../../build/ctfconvert.obj/alist.o ../../build/ctfconvert.obj/ctf.o ../../build/ctfconvert.obj/dwarf.o ../../build/ctfconvert.obj/hash.o ../../build/ctfconvert.obj/iidesc.o ../../build/ctfconvert.obj/input.o ../../build/ctfconvert.obj/list.o ../../build/ctfconvert.obj/memory.o ../../build/ctfconvert.obj/merge.o ../../build/ctfconvert.obj/output.o ../../build/ctfconvert.obj/st_bugs.o ../../build/ctfconvert.obj/st_parse.o ../../build/ctfconvert.obj/stabs.o ../../build/ctfconvert.obj/stack.o ../../build/ctfconvert.obj/strtab.o ../../build/ctfconvert.obj/symbol.o ../../build/ctfconvert.obj/tdata.o ../../build/ctfconvert.obj/traverse.o ../../build/ctfconvert.obj/util.o ../../build/libctf.a -ldwarf -lbfd -lelf -lz
cd cmd/instr ; make --no-print-directory
cd usdt/c ; make --no-print-directory
tools/mkdriver.pl all
Executing: /home/magnus/src/dtrace-for-linux/tools/make-me
make -C /lib/modules/3.5.0-21-generic/build M=/home/magnus/src/dtrace-for-linux/build-3.5.0-21-generic/driver
CC [M] /home/magnus/src/dtrace-for-linux/build-3.5.0-21-generic/driver/dtrace_linux.o
/home/magnus/src/dtrace-for-linux/build-3.5.0-21-generic/driver/dtrace_linux.c: In function 'mem_set_writable':
/home/magnus/src/dtrace-for-linux/build-3.5.0-21-generic/driver/dtrace_linux.c:1308:14: error: 'pmd_t' has no member named 'pud'
/home/magnus/src/dtrace-for-linux/build-3.5.0-21-generic/driver/dtrace_linux.c:1315:6: error: 'pmd_t' has no member named 'pud'
/home/magnus/src/dtrace-for-linux/build-3.5.0-21-generic/driver/dtrace_linux.c: At top level:
/home/magnus/src/dtrace-for-linux/build-3.5.0-21-generic/driver/dtrace_linux.c:226:30: warning: 'panic_notifier' defined but not used [-Wunused-variable]
make[3]: *** [/home/magnus/src/dtrace-for-linux/build-3.5.0-21-generic/driver/dtrace_linux.o] Error 1
make[2]: *** [_module_/home/magnus/src/dtrace-for-linux/build-3.5.0-21-generic/driver] Error 2
make[1]: *** [kernel] Error 2
tools/bug.sh
make: *** [all] Error 1
magnus@emachines|06:23|~/src/dtrace-for-linux (master) $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment