kedr-0.4.1 installation failed on Fedora 19

117 views
Skip to first unread message

sache...@gmail.com

unread,
Aug 26, 2013, 3:28:13 PM8/26/13
to kedr-d...@googlegroups.com
Following are the steps I did and the kedr compilation is failing.
 
1) I downloded the kedr from "http://kedr.berlios.de/ " and saved it under “/home/ksdeegal/kedr-build”
 
2) Unzip the file

·         bzip2 -dk <kedr-0.4.1.tar.bz2>

·         tar -xvf <kedr-0.4.1.tar>

 
3) "cd kedr-0.4.1/”
 
4) “cmake kedr-0.4.1/”
 
5) "make”

 

6) Compilation failed with following errors:
[root@hpdl380pg8 kedr-build]# make
[  2%] Generating kedr.ko, Module.symvers
/home/ksdeegal/kedr-build/core/../kedr-0.4.1/core/kedr_base.c: In function ‘functions_map_add’:
/home/ksdeegal/kedr-build/core/../kedr-0.4.1/core/kedr_base.c:849:63: error: macro "hlist_for_each_entry" passed 4 arguments, but takes just 3
  hlist_for_each_entry(map_elem, node_tmp, &map->heads[i], list)
                                                               ^
/home/ksdeegal/kedr-build/core/../kedr-0.4.1/core/kedr_base.c:849:2: error: ‘hlist_for_each_entry’ undeclared (first use in this function)
  hlist_for_each_entry(map_elem, node_tmp, &map->heads[i], list)
  ^
/home/ksdeegal/kedr-build/core/../kedr-0.4.1/core/kedr_base.c:849:2: note: each undeclared identifier is reported only once for each function it appears in
/home/ksdeegal/kedr-build/core/../kedr-0.4.1/core/kedr_base.c:850:2: error: expected ‘;’ before ‘{’ token
  {
  ^
/home/ksdeegal/kedr-build/core/../kedr-0.4.1/core/kedr_base.c:844:21: warning: unused variable ‘node_tmp’ [-Wunused-variable]
  struct hlist_node* node_tmp;
                     ^
/home/ksdeegal/kedr-build/core/../kedr-0.4.1/core/kedr_base.c: In function ‘functions_map_remove’:
/home/ksdeegal/kedr-build/core/../kedr-0.4.1/core/kedr_base.c:876:63: error: macro "hlist_for_each_entry" passed 4 arguments, but takes just 3
  hlist_for_each_entry(map_elem, node_tmp, &map->heads[i], list)
                                                               ^
/home/ksdeegal/kedr-build/core/../kedr-0.4.1/core/kedr_base.c:876:2: error: ‘hlist_for_each_entry’ undeclared (first use in this function)
  hlist_for_each_entry(map_elem, node_tmp, &map->heads[i], list)
  ^
/home/ksdeegal/kedr-build/core/../kedr-0.4.1/core/kedr_base.c:877:2: error: expected ‘;’ before ‘{’ token
  {
  ^
/home/ksdeegal/kedr-build/core/../kedr-0.4.1/core/kedr_base.c:872:29: warning: unused variable ‘map_elem’ [-Wunused-variable]
  struct functions_map_elem* map_elem;
                             ^
/home/ksdeegal/kedr-build/core/../kedr-0.4.1/core/kedr_base.c:871:21: warning: unused variable ‘node_tmp’ [-Wunused-variable]
  struct hlist_node* node_tmp;
                     ^
/home/ksdeegal/kedr-build/core/../kedr-0.4.1/core/kedr_base.c: In function ‘function_counters_table_get’:
/home/ksdeegal/kedr-build/core/../kedr-0.4.1/core/kedr_base.c:996:61: error: macro "hlist_for_each_entry" passed 4 arguments, but takes just 3
  hlist_for_each_entry(elem, node_tmp, &table->heads[i], list)
                                                             ^
/home/ksdeegal/kedr-build/core/../kedr-0.4.1/core/kedr_base.c:996:2: error: ‘hlist_for_each_entry’ undeclared (first use in this function)
  hlist_for_each_entry(elem, node_tmp, &table->heads[i], list)
  ^
/home/ksdeegal/kedr-build/core/../kedr-0.4.1/core/kedr_base.c:997:2: error: expected ‘;’ before ‘{’ token
  {
  ^
/home/ksdeegal/kedr-build/core/../kedr-0.4.1/core/kedr_base.c:991:21: warning: unused variable ‘node_tmp’ [-Wunused-variable]
  struct hlist_node* node_tmp;
                     ^
make[4]: *** [/home/ksdeegal/kedr-build/core/../kedr-0.4.1/core/kedr_base.o] Error 1
make[3]: *** [_module_/home/ksdeegal/kedr-build/core] Error 2
make[2]: *** [core/kedr.ko] Error 2
make[1]: *** [core/CMakeFiles/kedr.dir/all] Error 2
make: *** [all] Error 2
 
6) [root@hpdl380pg8 kedr-build]# uname -r
3.11.0-rc5-i40e-net-next-JK4+
 
7) [root@hpdl380pg8 kedr-build]# cat /etc/fedora-release
Fedora release 19 (Schrödinger’s Cat)
 
8) Why is it failing?

Eugene Shatokhin

unread,
Aug 27, 2013, 12:53:37 AM8/27/13
to sache...@gmail.com, kedr-d...@googlegroups.com
Hi,

I fixed this problem (build on kernel 3.9+) in the repository some time ago but did not make a new release since then.

Please try the most recent version of KEDR from the Mercurial repository:

The signatures of hlist_* macros changed in kernel 3.9, that is why the build was failing.

If the version from the repo fails to build, please let me know, I'll fix it.

Thanks for you report,
Regards

Eugene

sache...@gmail.com

unread,
Aug 28, 2013, 1:58:06 PM8/28/13
to kedr-d...@googlegroups.com, sache...@gmail.com
Thanks for your response. I tried following command to make the clone and it is not working: The command sits on the system for ever.
 
"hg clone https://code.google.com/p/kedr/kedr-build/"    <--kedr-build is a local directory in the system.
Reply all
Reply to author
Forward
0 new messages