getting error loading module

PPPoE related questions
Post Reply
hashbang
Posts: 8
Joined: 12 Jul 2015, 10:28

getting error loading module

Post by hashbang » 11 Oct 2019, 10:05

HI,
Compiled on openwrt while starting I get this error in logs

[2019-10-11 13:36:45.409]loader: failed to load 'pppoe': Error loading shared library libvlan-mon.so: No such file or directory (needed by /usr/lib/accel-ppp/libpppoe.so)
thanks

dimka88
Posts: 588
Joined: 13 Oct 2014, 05:51
Contact:

Re: getting error loading module

Post by dimka88 » 11 Oct 2019, 10:11

Hi, provide please build output. Did you build with `cmake -DBUILD_VLAN_MON_DRIVER=TRUE`?

hashbang
Posts: 8
Joined: 12 Jul 2015, 10:28

Re: getting error loading module

Post by hashbang » 12 Oct 2019, 12:04

ty, Rt missing vlan-mon.ko
I'm trying to compiling on openwrt i'll post the make file and error when i add this in make file
CMAKE_OPTIONS += \
-DBUILD_DRIVER=TRUE \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DLOG_PGSQL=FALSE \
-DSHAPER=TRUE \
-DRADIUS=TRUE \
-DNETSNMP=TURE \
-DLOG_FILE=TRUE \
-DLIB_SUFFIX= \
-DBUILD_VLAN_MON_DRIVER=TRUE \
Error :
[ 99%] Linking C executable accel-cmd
make[5]: Leaving directory '/home/sutradhar/openwrt-18.06/build_dir/target-x86_64_musl/accel-ppp-12.0'
[ 99%] Built target accel-cmd
make[5]: Entering directory '/home/sutradhar/openwrt-18.06/build_dir/target-x86_64_musl/accel-ppp-12.0'
Scanning dependencies of target vlan_mon_drv
make[5]: Leaving directory '/home/sutradhar/openwrt-18.06/build_dir/target-x86_64_musl/accel-ppp-12.0'
make[5]: Entering directory '/home/sutradhar/openwrt-18.06/build_dir/target-x86_64_musl/accel-ppp-12.0'
[100%] Generating driver/vlan_mon.ko
make[6]: Entering directory '/home/sutradhar/openwrt-18.06/build_dir/target-x86_64_musl/accel-ppp-12.0/drivers/vlan_mon'
make[6]: *** /usr/src/linux: No such file or directory. Stop.
make[6]: Leaving directory '/home/sutradhar/openwrt-18.06/build_dir/target-x86_64_musl/accel-ppp-12.0/drivers/vlan_mon'
drivers/vlan_mon/CMakeFiles/vlan_mon_drv.dir/build.make:61: recipe for target 'drivers/vlan_mon/driver/vlan_mon.ko' failed
make[5]: *** [drivers/vlan_mon/driver/vlan_mon.ko] Error 2
make[5]: Leaving directory '/home/sutradhar/openwrt-18.06/build_dir/target-x86_64_musl/accel-ppp-12.0'
CMakeFiles/Makefile2:1451: recipe for target 'drivers/vlan_mon/CMakeFiles/vlan_mon_drv.dir/all' failed
make[4]: *** [drivers/vlan_mon/CMakeFiles/vlan_mon_drv.dir/all] Error 2
make[4]: Leaving directory '/home/sutradhar/openwrt-18.06/build_dir/target-x86_64_musl/accel-ppp-12.0'
Makefile:151: recipe for target 'all' failed
make[3]: *** [all] Error 2

dimka88
Posts: 588
Joined: 13 Oct 2014, 05:51
Contact:

Re: getting error loading module

Post by dimka88 » 12 Oct 2019, 13:15

If you really need vlan-mon module, you have to make symbolic link to kernel headers /usr/src/linux
Or if you don't need this, just dont set `-DBUILD_VLAN_MON_DRIVER=TRUE`

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests