Unknown symbol zlib_inflate
Username: Sergey Ninua
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1113
I’ve experienced a strange issue with zlib_inflate on x84_64 system.
There is no zlib_inflate-related symbols at /proc/kallsyms and modules like btrfs couldn’t be loaded.
17.01 branch and the current master branch, both are affected.
Steps to reproduce:
-
Use attached config file (zlib_inflate-test-config). It’s almost default but I’ve set CONFIG_PACKAGE_kmod-fs-btrfs=y and some other options.
-
Compile LEDE:
make defconfig && make -j $(nproc)
- Run qemu:
qemu-system-x86_64 -curses -kernel bin/targets/x86/64/lede-x86-64-ramfs.bzImage
- Try to load btrfs module:
root@LEDE:/# modprobe btrfs [ 23.345891] btrfs: Unknown symbol zlib_inflateInit2 (err 0) [ 23.347096] btrfs: Unknown symbol zlib_inflate (err 0) [ 23.347673] btrfs: Unknown symbol zlib_inflate_workspacesize (err 0) [ 23.348293] btrfs: Unknown symbol zlib_inflateEnd (err 0)
It’s not btrfs related but any module with zlib_inflate in it’s dependency list.