[FS#443] Error in kmodloader order?

LEDE Bugs lede-bugs at lists.infradead.org
Sat Feb 4 04:34:45 PST 2017


The following task has a new comment added:

FS#443 - Error in kmodloader order?
User who did this - Anton van Bohemen (avbohemen)

----------
Thanks for the info. Apparently, LD_LIBRARY_PATH is empty on my system, and that accounts for the following:

root at router ~# echo $LD_LIBRARY_PATH

root at router ~# modinfo xfrm_algo
cannot find module - xfrm_algo
root at router ~# modinfo xfrm_ipcomp
cannot find module - xfrm_ipcomp
root at router ~# modinfo xfrm_user
module:         /lib/modules/4.4.46/xfrm_user.ko
alias:          net-pf-16-proto-6
license:        GPL
depends:        xfrm_algo
root at router ~# modinfo af_key
module:         /lib/modules/4.4.46/af_key.ko
alias:          net-pf-15
license:        GPL
depends:        xfrm_algo


Things start to work when I set LD_LIBRARY_PATH to at least /lib:

root at router ipsec# export LD_LIBRARY_PATH=/lib
root at router ipsec# modinfo xfrm_algo
module:         /lib/modules/4.4.46/xfrm_algo.ko
license:        GPL
depends:
root at router ipsec# modinfo xfrm_ipcomp
module:         /lib/modules/4.4.46/xfrm_ipcomp.ko
license:        GPL
depends:        xfrm_algo


Then the question is, where should LD_LIBRARY_PATH be set so kmodloader picks it up at boot, and why is it not set automatically?
----------

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=443#comment1596



More information about the lede-bugs mailing list