Не собирается 1.11.0 под debian 8.6

Compilation and installation questions and stories
Post Reply
nobody
Posts: 24
Joined: 20 Sep 2016, 09:16

Не собирается 1.11.0 под debian 8.6

Post by nobody » 21 Sep 2016, 14:22

Здравствуйте! Не получается собрать по мануалу https://accel-ppp.org/wiki/doku.php?id=ru:compilation
При make ругается на: Нет правила для сборки цели «modules»

Code: Select all

[  8%] Built target triton
[ 48%] Built target accel-pppd
[ 58%] Built target radius
[ 59%] Built target vlan-mon
[ 60%] Built target pptp
[ 67%] Built target pppoe
[ 70%] Built target l2tp
[ 75%] Built target ipoe
[ 76%] Built target auth_chap_md5
[ 77%] Built target auth_mschap_v1
[ 78%] Built target auth_mschap_v2
[ 79%] Built target auth_pap
[ 80%] Built target log_file
[ 81%] Built target log_syslog
[ 82%] Built target log_tcp
[ 84%] Built target chap-secrets
[ 85%] Built target connlimit
[ 86%] Built target ippool
[ 87%] Built target ipv6pool
[ 88%] Built target logwtmp
[ 89%] Built target sigchld
[ 90%] Built target pppd_compat
[ 92%] Built target ipv6_dhcp
[ 93%] Built target ipv6_nd
[ 97%] Built target shaper
[ 98%] Built target accel-cmd
[100%] Generating driver/ipoe.ko
make[3]: *** Нет правила для сборки цели «modules».  Останов.
drivers/ipoe/CMakeFiles/ipoe_drv.dir/build.make:52: ошибка выполнения рецепта для цели «drivers/ipoe/driver/ipoe.ko»
make[2]: *** [drivers/ipoe/driver/ipoe.ko] Ошибка 2
CMakeFiles/Makefile2:1284: ошибка выполнения рецепта для цели «drivers/ipoe/CMakeFiles/ipoe_drv.dir/all»
make[1]: *** [drivers/ipoe/CMakeFiles/ipoe_drv.dir/all] Ошибка 2
Makefile:137: ошибка выполнения рецепта для цели «all»
make: *** [all] Ошибка 2

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

Re: Не собирается 1.11.0 под debian 8.6

Post by dimka88 » 22 Sep 2016, 13:34

Проверил, все собирается. Давайте смотреть все по порядку начиная с вывода cmake

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

Re: Не собирается 1.11.0 под debian 8.6

Post by dimka88 » 22 Sep 2016, 13:39

Нашел где вы ошиблись, выполнив второй раз make, вы не заметили *** /usr/src/linux: No such file or directory.
Делайте символическую ссылку

Code: Select all

ln -s /usr/src/linux-headers-3.16.0-4-amd64/ /usr/src/linux

nobody
Posts: 24
Joined: 20 Sep 2016, 09:16

Re: Не собирается 1.11.0 под debian 8.6

Post by nobody » 24 Sep 2016, 07:29

dimka88 wrote:Нашел где вы ошиблись, выполнив второй раз make, вы не заметили *** /usr/src/linux: No such file or directory.
Делайте символическую ссылку

Code: Select all

ln -s /usr/src/linux-headers-3.16.0-4-amd64/ /usr/src/linux
Ничего не получается :(
Скопировал всё из /usr/src/linux/linux-3.16.36/ в /usr/src/linux/ , затем из /usr/src/linux-headers-3.16.0-4-amd64/ туда же /usr/src/linux/ , теперь ругается на

Code: Select all

[  8%] Built target triton
[ 48%] Built target accel-pppd
[ 58%] Built target radius
[ 59%] Built target vlan-mon
[ 60%] Built target pptp
[ 67%] Built target pppoe
[ 70%] Built target l2tp
[ 75%] Built target ipoe
[ 76%] Built target auth_chap_md5
[ 77%] Built target auth_mschap_v1
[ 78%] Built target auth_mschap_v2
[ 79%] Built target auth_pap
[ 80%] Built target log_file
[ 81%] Built target log_syslog
[ 82%] Built target log_tcp
[ 84%] Built target chap-secrets
[ 85%] Built target connlimit
[ 86%] Built target ippool
[ 87%] Built target ipv6pool
[ 88%] Built target logwtmp
[ 89%] Built target sigchld
[ 90%] Built target pppd_compat
[ 92%] Built target ipv6_dhcp
[ 93%] Built target ipv6_nd
[ 97%] Built target shaper
[ 98%] Built target accel-cmd
[100%] Generating driver/ipoe.ko

  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.


  WARNING: Symbol version dump ./Module.symvers
           is missing; modules will have no dependencies and modversions.

In file included from <command-line>:0:0:
././include/linux/kconfig.h:4:32: fatal error: generated/autoconf.h: Нет такого файла или каталога
 #include <generated/autoconf.h>
                                ^
compilation terminated.
scripts/Makefile.build:263: ошибка выполнения рецепта для цели «/opt/build/drivers/ipoe/driver/ipoe.o»
make[4]: *** [/opt/build/drivers/ipoe/driver/ipoe.o] Ошибка 1
Makefile:1352: ошибка выполнения рецепта для цели «_module_/opt/build/drivers/ipoe/driver»
make[3]: *** [_module_/opt/build/drivers/ipoe/driver] Ошибка 2
drivers/ipoe/CMakeFiles/ipoe_drv.dir/build.make:52: ошибка выполнения рецепта для цели «drivers/ipoe/driver/ipoe.ko»
make[2]: *** [drivers/ipoe/driver/ipoe.ko] Ошибка 2
CMakeFiles/Makefile2:1284: ошибка выполнения рецепта для цели «drivers/ipoe/CMakeFiles/ipoe_drv.dir/all»
make[1]: *** [drivers/ipoe/CMakeFiles/ipoe_drv.dir/all] Ошибка 2
Makefile:137: ошибка выполнения рецепта для цели «all»
make: *** [all] Ошибка 2
P.S. Я вообще слабо понимаю что я делаю :(

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

Re: Не собирается 1.11.0 под debian 8.6

Post by dimka88 » 24 Sep 2016, 11:44

Давайте по порядку.
Удалите все из директории /opt/accel-ppp-code/build
Затем войдите в данную директорию и выполните

Code: Select all

cmake -DBUILD_IPOE_DRIVER=TRUE -DKDIR=/usr/src/linux-headers-3.16.0-4-amd64 ..
перед этим установите все зависимости.

Code: Select all

apt-get install build-essentials linux-headers-`uname -r`
И прочие libpcre-dev, libssl-dev ..

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

Re: Не собирается 1.11.0 под debian 8.6

Post by dimka88 » 24 Sep 2016, 11:50

nobody wrote: Ничего не получается :(
Скопировал всё из /usr/src/linux/linux-3.16.36/ в /usr/src/linux/ , затем из /usr/src/linux-headers-3.16.0-4-amd64/ туда же /usr/src/linux/ , теперь ругается на
Нужно было всего лишь сделать символическую ссылку директории с исходниками текущего ядра в директорию /usr/src/linux

nobody
Posts: 24
Joined: 20 Sep 2016, 09:16

Re: Не собирается 1.11.0 под debian 8.6

Post by nobody » 24 Sep 2016, 12:14

dimka88 wrote:
nobody wrote: Ничего не получается :(
Скопировал всё из /usr/src/linux/linux-3.16.36/ в /usr/src/linux/ , затем из /usr/src/linux-headers-3.16.0-4-amd64/ туда же /usr/src/linux/ , теперь ругается на
Нужно было всего лишь сделать символическую ссылку директории с исходниками текущего ядра в директорию /usr/src/linux
Сначала я так и сделал, но получил ту же ошибку что и ранее. В директории /usr/src/linux/ у меня куча всякого хлама:

Code: Select all

# ls
linux-3.16.36  linux_3.16.36-1+deb8u1.debian.tar.xz  linux_3.16.36-1+deb8u1.dsc  linux_3.16.36.orig.tar.xz
Ok, сейчас с самого начала повторю всё ещё раз.

nobody
Posts: 24
Joined: 20 Sep 2016, 09:16

Re: Не собирается 1.11.0 под debian 8.6

Post by nobody » 24 Sep 2016, 12:34

Ух ты, кажется получилось. dimka88 Вы просто гений компиляции! :) Вот полный лог действий:

Code: Select all

cd /opt/
#rm -rf /opt/accel-ppp-code
#mkdir accel-ppp-code
#git clone git://git.code.sf.net/p/accel-ppp/code accel-ppp-code
#mkdir /opt/accel-ppp-code/build
#cmake -DBUILD_IPOE_DRIVER=TRUE -DKDIR=/usr/src/linux-headers-3.16.0-4-amd64 /opt/accel-ppp-code

-- The C compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- 'x86_64'
-- Looking for timerfd_create
-- Looking for timerfd_create - found
-- Looking for linux/netfilter/ipset/ip_set.h
-- Looking for linux/netfilter/ipset/ip_set.h - found
-- Looking for setns
-- Looking for setns - found
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/accel-ppp-code/build

#make

Scanning dependencies of target triton
[  1%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/md.c.o
[  2%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/timer.c.o
[  3%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/triton.c.o
[  4%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/conf_file.c.o
[  5%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/loader.c.o
[  6%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/log.c.o
[  7%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/mempool.c.o
[  8%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/event.c.o
Linking C shared library libtriton.so
[  8%] Built target triton
Scanning dependencies of target accel-pppd
[  9%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/memdebug.c.o
[ 10%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/session.c.o
[ 11%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/session_backup.c.o
[ 12%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ifcfg.c.o
[ 13%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/net.c.o
[ 14%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/backup/backup.c.o
[ 15%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp.c.o
[ 17%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp_fsm.c.o
[ 18%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp_lcp.c.o
[ 19%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/lcp_opt_mru.c.o
[ 20%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/lcp_opt_magic.c.o
[ 21%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/lcp_opt_pcomp.c.o
[ 22%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/lcp_opt_accomp.c.o
[ 23%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp_auth.c.o
[ 24%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp_ipcp.c.o
[ 25%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ipcp_opt_ipaddr.c.o
[ 26%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ipcp_opt_dns.c.o
[ 27%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ipcp_opt_wins.c.o
[ 28%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ipv6cp_opt_intfid.c.o
[ 29%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp_ipv6cp.c.o
[ 30%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp_ccp.c.o
[ 31%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ccp_mppe.c.o
[ 32%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/cli/std_cmd.c.o
[ 34%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/cli/show_sessions.c.o
[ 35%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/cli/telnet.c.o
[ 36%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/cli/tcp.c.o
[ 37%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/cli/cli.c.o
[ 38%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/libnetlink/libnetlink.c.o
[ 39%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/libnetlink/iputils.c.o
[ 40%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/libnetlink/genl.c.o
[ 41%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/libnetlink/ipset.c.o
[ 42%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/pwdb.c.o
[ 43%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ipdb.c.o
[ 44%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/iprange.c.o
[ 45%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/utils.c.o
[ 46%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/rbtree.c.o
[ 47%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/log.c.o
[ 48%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/main.c.o
Linking C executable accel-pppd
[ 48%] Built target accel-pppd
Scanning dependencies of target radius
[ 50%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/stat_accm.c.o
[ 51%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/dict.c.o
[ 52%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/req.c.o
[ 53%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/packet.c.o
[ 54%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/auth.c.o
[ 55%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/acct.c.o
[ 56%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/serv.c.o
[ 57%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/dm_coa.c.o
[ 58%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/radius.c.o
Linking C shared library libradius.so
[ 58%] Built target radius
Scanning dependencies of target vlan-mon
[ 59%] Building C object accel-pppd/vlan-mon/CMakeFiles/vlan-mon.dir/vlan_mon.c.o
Linking C shared library libvlan-mon.so
[ 59%] Built target vlan-mon
Scanning dependencies of target pptp
[ 60%] Building C object accel-pppd/ctrl/pptp/CMakeFiles/pptp.dir/pptp.c.o
Linking C shared library libpptp.so
[ 60%] Built target pptp
Scanning dependencies of target pppoe
[ 61%] Building C object accel-pppd/ctrl/pppoe/CMakeFiles/pppoe.dir/pppoe.c.o
[ 62%] Building C object accel-pppd/ctrl/pppoe/CMakeFiles/pppoe.dir/mac_filter.c.o
[ 63%] Building C object accel-pppd/ctrl/pppoe/CMakeFiles/pppoe.dir/dpado.c.o
[ 64%] Building C object accel-pppd/ctrl/pppoe/CMakeFiles/pppoe.dir/cli.c.o
[ 65%] Building C object accel-pppd/ctrl/pppoe/CMakeFiles/pppoe.dir/disc.c.o
[ 67%] Building C object accel-pppd/ctrl/pppoe/CMakeFiles/pppoe.dir/tr101.c.o
Linking C shared library libpppoe.so
[ 67%] Built target pppoe
Scanning dependencies of target l2tp
[ 68%] Building C object accel-pppd/ctrl/l2tp/CMakeFiles/l2tp.dir/l2tp.c.o
[ 69%] Building C object accel-pppd/ctrl/l2tp/CMakeFiles/l2tp.dir/dict.c.o
[ 70%] Building C object accel-pppd/ctrl/l2tp/CMakeFiles/l2tp.dir/packet.c.o
Linking C shared library libl2tp.so
[ 70%] Built target l2tp
Scanning dependencies of target ipoe
[ 71%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/ipoe.c.o
[ 72%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/dhcpv4.c.o
[ 73%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/dhcpv4_options.c.o
[ 74%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/ipoe_netlink.c.o
[ 75%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/arp.c.o
Linking C shared library libipoe.so
[ 75%] Built target ipoe
Scanning dependencies of target auth_chap_md5
[ 76%] Building C object accel-pppd/auth/CMakeFiles/auth_chap_md5.dir/auth_chap_md5.c.o
Linking C shared library libauth_chap_md5.so
[ 76%] Built target auth_chap_md5
Scanning dependencies of target auth_mschap_v1
[ 77%] Building C object accel-pppd/auth/CMakeFiles/auth_mschap_v1.dir/auth_mschap_v1.c.o
Linking C shared library libauth_mschap_v1.so
[ 77%] Built target auth_mschap_v1
Scanning dependencies of target auth_mschap_v2
[ 78%] Building C object accel-pppd/auth/CMakeFiles/auth_mschap_v2.dir/auth_mschap_v2.c.o
Linking C shared library libauth_mschap_v2.so
[ 78%] Built target auth_mschap_v2
Scanning dependencies of target auth_pap
[ 79%] Building C object accel-pppd/auth/CMakeFiles/auth_pap.dir/auth_pap.c.o
Linking C shared library libauth_pap.so
[ 79%] Built target auth_pap
Scanning dependencies of target log_file
[ 80%] Building C object accel-pppd/logs/CMakeFiles/log_file.dir/log_file.c.o
Linking C shared library liblog_file.so
[ 80%] Built target log_file
Scanning dependencies of target log_syslog
[ 81%] Building C object accel-pppd/logs/CMakeFiles/log_syslog.dir/log_syslog.c.o
Linking C shared library liblog_syslog.so
[ 81%] Built target log_syslog
Scanning dependencies of target log_tcp
[ 82%] Building C object accel-pppd/logs/CMakeFiles/log_tcp.dir/log_tcp.c.o
Linking C shared library liblog_tcp.so
[ 82%] Built target log_tcp
Scanning dependencies of target chap-secrets
[ 84%] Building C object accel-pppd/extra/CMakeFiles/chap-secrets.dir/chap-secrets.c.o
Linking C shared library libchap-secrets.so
[ 84%] Built target chap-secrets
Scanning dependencies of target connlimit
[ 85%] Building C object accel-pppd/extra/CMakeFiles/connlimit.dir/connlimit.c.o
Linking C shared library libconnlimit.so
[ 85%] Built target connlimit
Scanning dependencies of target ippool
[ 86%] Building C object accel-pppd/extra/CMakeFiles/ippool.dir/ippool.c.o
Linking C shared library libippool.so
[ 86%] Built target ippool
Scanning dependencies of target ipv6pool
[ 87%] Building C object accel-pppd/extra/CMakeFiles/ipv6pool.dir/ipv6pool.c.o
Linking C shared library libipv6pool.so
[ 87%] Built target ipv6pool
Scanning dependencies of target logwtmp
[ 88%] Building C object accel-pppd/extra/CMakeFiles/logwtmp.dir/logwtmp.c.o
Linking C shared library liblogwtmp.so
[ 88%] Built target logwtmp
Scanning dependencies of target sigchld
[ 89%] Building C object accel-pppd/extra/CMakeFiles/sigchld.dir/sigchld.c.o
Linking C shared library libsigchld.so
[ 89%] Built target sigchld
Scanning dependencies of target pppd_compat
[ 90%] Building C object accel-pppd/extra/CMakeFiles/pppd_compat.dir/pppd_compat.c.o
Linking C shared library libpppd_compat.so
[ 90%] Built target pppd_compat
Scanning dependencies of target ipv6_dhcp
[ 91%] Building C object accel-pppd/ipv6/CMakeFiles/ipv6_dhcp.dir/dhcpv6.c.o
[ 92%] Building C object accel-pppd/ipv6/CMakeFiles/ipv6_dhcp.dir/dhcpv6_packet.c.o
Linking C shared library libipv6_dhcp.so
[ 92%] Built target ipv6_dhcp
Scanning dependencies of target ipv6_nd
[ 93%] Building C object accel-pppd/ipv6/CMakeFiles/ipv6_nd.dir/nd.c.o
Linking C shared library libipv6_nd.so
[ 93%] Built target ipv6_nd
Scanning dependencies of target shaper
[ 94%] Building C object accel-pppd/shaper/CMakeFiles/shaper.dir/shaper.c.o
[ 95%] Building C object accel-pppd/shaper/CMakeFiles/shaper.dir/limiter.c.o
[ 96%] Building C object accel-pppd/shaper/CMakeFiles/shaper.dir/leaf_qdisc.c.o
[ 97%] Building C object accel-pppd/shaper/CMakeFiles/shaper.dir/tc_core.c.o
Linking C shared library libshaper.so
[ 97%] Built target shaper
Scanning dependencies of target accel-cmd
[ 98%] Building C object accel-cmd/CMakeFiles/accel-cmd.dir/accel_cmd.c.o
Linking C executable accel-cmd
[ 98%] Built target accel-cmd
Scanning dependencies of target ipoe_drv
[100%] Generating driver/ipoe.ko
[100%] Built target ipoe_drv

После выполнения "make install" система заменит мою текущую версию accel-ppp на ту, что сейчас собралась? Тогда наверно этого лучше не делать, потому что у меня всё перестанет работать :) Я вообще это делал для того, чтоб собрать deb-пакет новой версии и ipoe-модуля и закинуть это всё на приватную репу, чтоб облегчить процесс установки в будущем :) А ошибка моя была в том, что я не указывал /path/to/accel-ppp-source вроде бы...

nobody
Posts: 24
Joined: 20 Sep 2016, 09:16

Re: Не собирается 1.11.0 под debian 8.6

Post by nobody » 30 Sep 2016, 14:40

Снова нужна Ваша помощь в сборке, но уже модуля :)
P.S. Я знаю что у Дмитрия в репе он уже есть , но мне интересно самому собрать, однако что-то не получается :(

Делаю по этому мануалу , в итоге при сборке получаю не очень информативную ошибку:

Code: Select all

# dkms build -m ipoe-dkms -v 0.1

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=3.16.0-4-amd64 all KVERSION=3.16.0-4-amd64....
Error!  Build of ipoe-dkms.ko failed for: 3.16.0-4-amd64 (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/ipoe-dkms/0.1/build/ for more information.


# cat /var/lib/dkms/ipoe-dkms/0.1/build/make.log 
DKMS make.log for ipoe-dkms-0.1 for kernel 3.16.0-4-amd64 (x86_64)
Пт сен 30 19:11:12 YEKT 2016
make -C /lib/modules/3.16.0-4-amd64/build M=/var/lib/dkms/ipoe-dkms/0.1/build modules
make[1]: вход в каталог «/usr/src/linux-headers-3.16.0-4-amd64»
make[1]: Entering directory `/usr/src/linux-headers-3.16.0-4-amd64'
  CC [M]  /var/lib/dkms/ipoe-dkms/0.1/build/ipoe.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /var/lib/dkms/ipoe-dkms/0.1/build/ipoe.mod.o
  LD [M]  /var/lib/dkms/ipoe-dkms/0.1/build/ipoe.ko
make[1]: выход из каталога «/usr/src/linux-headers-3.16.0-4-amd64»
при чём модуль-то собирается

Code: Select all

# ls /var/lib/dkms/ipoe-dkms/0.1/build/ipoe.ko
/var/lib/dkms/ipoe-dkms/0.1/build/ipoe.ko
# if `insmod /var/lib/dkms/ipoe-dkms/0.1/build/ipoe.ko`; then echo 0; else echo 1; fi
0

но dkms почему-то этого не понимает... или это я чего-то не понимаю? Как ему объяснить, что модуль на самом деле собрался?


UPD
Разобрался. Надо чтоб в /usr/src/ipoe-dkms-0.1/dkms.conf было BUILT_MODULE_NAME[0]="ipoe" , а у меня там было ipoe-dkms .

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest