- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, everyone!
When Ibuild the sep driver manually, there are some errors as follows.
My platform is Q6600, fedora 9 and the kenel is 2.6.25.
Anyone one have some suggestions?
=====================================
[root@localhost src]# ./build-driver
Options in brackets "[ ... ]" indicate default values
that will be used when only the ENTER key is pressed.
C compiler to use: [ /usr/bin/gcc ]
Make command to use: [ /usr/bin/make ]
Kernel source directory: [ /lib/modules/2.6.25-14.fc9.i686/build ]
rm -f *.o .*.o.cmd .*.o.d .*.ko.cmd .*.ko.unsigned.cmd
rm -f sep3_1.ko sep3_1.ko.unsigned sep3_1-x32-2.6.25-14.fc9.i686smp.ko
rm -f Module.symvers Modules.symvers *.mod.c modules.order Module.markers
rm -rf .tmp_versions
make[1]: Entering directory `/opt/intel/vtune_amplifier_xe_2011/sepdk/src/pax'
rm -f *.o .*.o.cmd .*.o.d .*.ko.cmd .*.ko.unsigned.cmd
rm -f pax.ko pax.ko.unsigned pax-x32-2.6.25-14.fc9.i686smp.ko
rm -f Module.symvers Modules.symvers *.mod.c modules.order Module.markers
rm -rf .tmp_versions
make[1]: Leaving directory `/opt/intel/vtune_amplifier_xe_2011/sepdk/src/pax'
/usr/bin/make -C /lib/modules/2.6.25-14.fc9.i686/build M=/opt/intel/vtune_amplifier_xe_2011/sepdk/src LDDINCDIR=/opt/intel/vtune_amplifier_xe_2011/sepdk/src/../include LDDINCDIR1=/opt/intel/vtune_amplifier_xe_2011/sepdk/src/inc modules PWD=/opt/intel/vtune_amplifier_xe_2011/sepdk/src
make[1]: Entering directory `/usr/src/kernels/2.6.25-14.fc9.i686'
CC
CC
CC
CC
CC
/opt/intel/vtune_amplifier_xe_2011/sepdk/src/linuxos.c: In function linuxos_VMA_For_Process:
/opt/intel/vtune_amplifier_xe_2011/sepdk/src/linuxos.c:199: error: struct task_struct has no member named parent
/opt/intel/vtune_amplifier_xe_2011/sepdk/src/linuxos.c:200: error: struct task_struct has no member named parent
make[2]: *** [/opt/intel/vtune_amplifier_xe_2011/sepdk/src/linuxos.o] Error 1
make[1]: *** [_module_/opt/intel/vtune_amplifier_xe_2011/sepdk/src] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.25-14.fc9.i686'
make: *** [default] Error 2
Jason
2010/11/27
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The problem was solved.
My platform is Q6600, and the kenel is 2.6.25-14.fc9.i686.
My kernel development environment was created by the filekernel-devel-2.6.25-14.fc9.i686.rpm. The install directory is /usr/src/kernels/2.6.25-14.fc9.i686.
When I run build-driver scripts, the linuxos.c file reports error which is lack of "parent" field in struct task_struct.
The task_struct was defined in file sched.h and I confirmed that there are no'parent' member in the struct definition. So I added it mannually such as the following line.
struct task_struct *parent; /* parent process */
Then, the build-driver script was executed successfully.Next, following the directs in README.txt file.
I post my solution herein order to give someone suggestions.
Jason
2010/11/27

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page