Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building modules, stage 2. MODPOST 1 modules WARNING: "__aeabi_uldivmod" [/home/xw/workspace/github/openwrt-master/build_dir/target-arm_cortex-a9+vfpv3_glibc_eabi/linux-mvebu_cortexa9/ndpi-netfilter-a360566-2.6/ndpi-netfilter/src/xt_ndpi.ko] undefined! #44

Closed
panda-mute opened this issue Jan 20, 2019 · 3 comments

Comments

@panda-mute
Copy link

32-bit CPU.

Sorry, I can't figure out which file cause this issue.

@panda-mute
Copy link
Author

diff --git a/src/lib/third_party/src/lruc.c b/src/lib/third_party/src/lruc.c
index a63ed99..b450fde 100644
--- a/src/lib/third_party/src/lruc.c
+++ b/src/lib/third_party/src/lruc.c
@@ -156,10 +156,11 @@ lruc *lruc_new(uint64_t cache_size, uint32_t average_length) {
     perror("LRU Cache unable to create cache object");
     return NULL;
   }
-  cache->hash_table_size      = cache_size / average_length;
   cache->average_item_length  = average_length;
   cache->free_memory          = cache_size;
   cache->total_memory         = cache_size;
+  do_div(cache_size, average_length);
+  cache->hash_table_size      = cache_size;
 #ifndef __KERNEL__
   cache->seed                 = time(NULL);
 #else

@vel21ripn
Copy link
Owner

Thanks! Fixed in 23e3cbd

@panda-mute
Copy link
Author

Got it, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants