[Defy Android Development] pravarth:
Not able to compile nfs(network file system) module

I've been trying to compile a module for nfs, but in vain. I'm using the prebuilt toolchain provided in the android ndk (Tried 4.4.3 and 4.7, got the same result). I got the source from the master branch in quarx's git repo.

The modules compiles successfully with no errors. I know that nfs.ko as dependencies with lockd and sunrpc so compiled them as well.

When i try to load them on my phone i get the following error:

insmod: can't insert 'sunrpc.ko': unknown symbol in module or invalid parameter
insmod: can't insert 'lockd.ko': unknown symbol in module or invalid parameter
insmod: can't insert 'nfs.ko': unknown symbol in module or invalid parameter

dmesg returns a list of unknown symbols, so i guess there are still a couple of dependencies left. I'm not able to figure out what to do next. Hope someone can shed some light on this issue.

Here is the dmesg output:

[79033.524780] lockd: Unknown symbol rpc_put_task
[79033.525451] lockd: Unknown symbol svc_wake_up
[79033.527038] lockd: Unknown symbol xdr_decode_string_inplace
[79033.527648] lockd: Unknown symbol rpc_shutdown_client
[79033.528106] lockd: Unknown symbol svc_recv
[79033.528656] lockd: Unknown symbol xdr_inline_decode
[79033.529388] lockd: Unknown symbol svc_prepare_thread
[79033.530456] lockd: Unknown symbol svc_exit_thread
[79033.531066] lockd: Unknown symbol rpc_ntop
[79033.531768] lockd: Unknown symbol xdr_encode_opaque
[79033.532226] lockd: Unknown symbol xdr_encode_opaque_fixed
[79033.532806] lockd: Unknown symbol rpc_run_task
[79033.537597] lockd: Unknown symbol xdr_encode_netobj
[79033.538848] lockd: Unknown symbol svc_create_xprt
[79033.539306] lockd: Unknown symbol __rpc_wait_for_completion_task
[79033.539978] lockd: Unknown symbol svc_xprt_put
[79033.540618] lockd: Unknown symbol svc_process
[79033.541046] lockd: Unknown symbol xdr_init_decode
[79033.542358] lockd: Unknown symbol nlm_debug
[79033.542816] lockd: Unknown symbol rpc_create
[79033.543365] lockd: Unknown symbol svc_destroy
[79033.543823] lockd: Unknown symbol svc_create
[79033.544281] lockd: Unknown symbol rpc_call_sync
[79033.545135] lockd: Unknown symbol rpc_delay
[79033.545837] lockd: Unknown symbol svc_set_client
[79033.546417] lockd: Unknown symbol xdr_reserve_space
[79033.546997] lockd: Unknown symbol rpc_force_rebind
[79033.547485] lockd: Unknown symbol rpc_restart_call
[79033.548065] lockd: Unknown symbol svc_find_xprt
[79033.548614] lockd: Unknown symbol xdr_encode_string
[79033.549499] lockd: Unknown symbol _GLOBAL_OFFSET_TABLE_
[79033.549987] lockd: Unknown symbol xdr_decode_netobj
[79033.550628] lockd: Unknown symbol svc_sock_update_bufs
[79033.551086] lockd: Unknown symbol svc_print_addr
[79033.551727] lockd: Unknown symbol xdr_init_encode
[79068.556457] sunrpc: Unknown symbol _GLOBAL_OFFSET_TABLE_
[79082.251403] nfs: Unknown symbol rpc_put_task
[79082.251983] nfs: Unknown symbol rpc_put_mount
[79082.257293] nfs: Unknown symbol nlmclnt_proc
[79082.268890] nfs: Unknown symbol rpc_proc_register
[79082.269256] nfs: Unknown symbol xdr_write_pages
[79082.269531] nfs: Unknown symbol rpc_shutdown_client
[79082.269958] nfs: Unknown symbol svc_recv
[79082.270263] nfs: Unknown symbol xdr_inline_decode
[79082.270629] nfs: Unknown symbol rpc_mkpipe
[79082.271057] nfs: Unknown symbol rpc_wake_up
[79082.271362] nfs: Unknown symbol svc_prepare_thread
[79082.272216] nfs: Unknown symbol svc_exit_thread
[79082.275878] nfs: Unknown symbol rpc_pton
[79082.276367] nfs: Unknown symbol rpc_ntop
[79082.276702] nfs: Unknown symbol rpc_wake_up_queued_task
[79082.277160] nfs: Unknown symbol xdr_encode_opaque
[79082.277587] nfs: Unknown symbol xdr_read_pages
[79082.277832] nfs: Unknown symbol xdr_encode_opaque_fixed
[79082.278167] nfs: Unknown symbol rpc_sleep_on
[79082.278472] nfs: Unknown symbol rpc_run_task
[79082.279144] nfs: Unknown symbol rpc_print_iostats
[79082.279541] nfs: Unknown symbol xdr_enter_page
[79082.279846] nfs: Unknown symbol rpc_get_mount
[79082.280395] nfs: Unknown symbol xdr_encode_pages
[79082.280853] nfs: Unknown symbol svc_create_xprt
[79082.281097] nfs: Unknown symbol __rpc_wait_for_completion_task
[79082.281402] nfs: Unknown symbol rpc_setbufsize
[79082.281860] nfs: Unknown symbol qword_add
[79082.282257] nfs: Unknown symbol xprt_load_transport
[79082.282623] nfs: Unknown symbol rpc_clone_client
[79082.283111] nfs: Unknown symbol svc_process
[79082.297180] nfs: Unknown symbol rpc_peeraddr2str
[79082.297485] nfs: Unknown symbol rpc_lookup_cred
[79082.297729] nfs: Unknown symbol qword_get
[79082.298095] nfs: Unknown symbol rpc_lookup_machine_cred
[79082.298431] nfs: Unknown symbol xdr_init_decode
[79082.298767] nfs: Unknown symbol sunrpc_cache_register_pipefs
[79082.302062] nfs: Unknown symbol rpc_max_payload
[79082.304077] nfs: Unknown symbol rpc_proc_unregister
[79082.304962] nfs: Unknown symbol sunrpc_cache_lookup
[79082.305297] nfs: Unknown symbol rpc_create
[79082.305633] nfs: Unknown symbol svc_destroy
[79082.305877] nfs: Unknown symbol rpc_call_start
[79082.306152] nfs: Unknown symbol svc_create
[79082.306457] nfs: Unknown symbol rpc_call_sync
[79082.309387] nfs: Unknown symbol rpc_queue_upcall
[79082.310058] nfs: Unknown symbol cache_check
[79082.310333] nfs: Unknown symbol rpc_delay
[79082.311004] nfs: Unknown symbol rpc_killall_tasks
[79082.311401] nfs: Unknown symbol xdr_reserve_space
[79082.312347] nfs: Unknown symbol rpc_restart_call
[79082.312805] nfs: Unknown symbol svc_gss_principal
[79082.313171] nfs: Unknown symbol xdr_inline_pages
[79082.313659] nfs: Unknown symbol rpc_init_wait_queue
[79082.313995] nfs: Unknown symbol put_rpccred
[79082.314270] nfs: Unknown symbol _GLOBAL_OFFSET_TABLE_
[79082.331787] nfs: Unknown symbol sunrpc_cache_unregister_pipefs
[79082.332153] nfs: Unknown symbol rpc_unlink
[79082.332519] nfs: Unknown symbol sunrpc_cache_pipe_upcall
[79082.332855] nfs: Unknown symbol svc_sock_update_bufs
[79082.333068] nfs: Unknown symbol svc_print_addr
[79082.333435] nfs: Unknown symbol nlmclnt_init
[79082.333709] nfs: Unknown symbol rpc_call_async
[79082.334045] nfs: Unknown symbol nlmclnt_done
[79082.334655] nfs: Unknown symbol rpcauth_create
[79082.334869] nfs: Unknown symbol xdr_init_encode
[79082.335174] nfs: Unknown symbol nfs_debug
[79082.335418] nfs: Unknown symbol sunrpc_cache_update
[79082.335845] nfs: Unknown symbol rpc_destroy_wait_queue
[79082.336120] nfs: Unknown symbol xdr_shift_buf