Dear all.

I'm trying to compile the lustre-2.15.8-1 src.rpm file. I detect first that the kernel version was incorrect, and change it in the spec file like this :

%{!?version: %global version 2.15.8}
# if you want a custom kernel version set it variable with $ver.$arch
%{!?kver:    %global kver    5.14.0-687.39.1.el9_8.x86_64}

I've got error at compile time using this command:

$ rpmbuild -ba rpmbuild/SPECS/lustre.spec --without servers

/root/rpmbuild/BUILD/lustre-2.15.8/lnet/lnet/net_fault.c: In function 'delay_timer_cb': /root/rpmbuild/BUILD/lustre-2.15.8/libcfs/include/libcfs/linux/linux-time.h:238:9: error: implicit declaration of function 'from_timer'; did you mean 'mod_timer'? [-Werror=implicit-function-declaration]
  238 |         from_timer(var, callback_timer, timer_fieldname)
      |         ^~~~~~~~~~
/root/rpmbuild/BUILD/lustre-2.15.8/lnet/lnet/net_fault.c:789:40: note: in expansion of macro 'cfs_from_timer'   789 |         struct lnet_delay_rule *rule = cfs_from_timer(rule, data, dl_timer);
      |                                        ^~~~~~~~~~~~~~
/root/rpmbuild/BUILD/lustre-2.15.8/lnet/lnet/net_fault.c:789:67: error: 'dl_timer' undeclared (first use in this function); did you mean 'del_timer'?   789 |         struct lnet_delay_rule *rule = cfs_from_timer(rule, data, dl_timer);
      |        ^~~~~~~~

I read in the mailling lits that Fokke Dijkstracould compile this rpm in Almalinux 9.8. What i'm missing ?

Regards!

--
-- Jérôme
Chaque coup de colère est un coup de vieux,
chaque sourire est un coup de jeune.
       (Proverbe chinois)


-- 
lustre-discuss mailing list
[email protected]
http://lists.lustre.org/mailman/listinfo/lustre-discuss_lists.lustre.org

Reply via email to