netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jan Engelhardt <jengelh@inai.de>
To: Oskar Berggren <oskar.berggren@gmail.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: ipset make modules_install fails to honor INSTALL_MOD_PATH
Date: Thu, 21 May 2020 23:09:01 +0200 (CEST)	[thread overview]
Message-ID: <nycvar.YFH.7.77.849.2005212305180.7617@n3.vanv.qr> (raw)
In-Reply-To: <CAHOuc7OX=a0OjLpyJf3bU9sfmrd+_XbMBt+JN3w1QeKGPod0pw@mail.gmail.com>


On Thursday 2020-05-21 21:27, Oskar Berggren wrote:

>make
>make modules
>DESTDIR=... make install
>INSTALL_MOD_PATH=... make modules_install

» make modules_install DESTDIR=/tmp/RT INSTALL_MOD_PATH=/tmp/RT2
make -C /home/jengelh/code/linux M=$PWD/kernel/net \
                KDIR=$PWD/kernel modules_install
make[1]: Entering directory '/home/jengelh/code/linux'
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_bitmap_ip.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_bitmap_ipmac.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_bitmap_port.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_ip.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_ipmac.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_ipmark.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_ipport.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_ipportip.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_ipportnet.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_mac.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_net.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_netiface.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_netnet.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_netport.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_netportnet.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_list_set.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/xt_set.ko
  INSTALL /ipset-7.6/kernel/net/sched/em_ipset.ko
  DEPMOD  5.7.0-rc6-2.gb520bde-default+
Warning: modules_install: missing 'System.map' file. Skipping depmod.
make[1]: Leaving directory '/home/jengelh/code/linux'
modinfo: ERROR: Module alias ip_set_hash_ip not found.

!!! WARNING !!! WARNING !!! WARNING !!!

Your distribution seems to ignore the /lib/modules/<kernelrelease>/extra/
subdirectory, where the ipset kernel modules are installed.

Add the 'extra' directory to the search definition of your depmod
configuration (/etc/depmod.conf or /etc/depmod.d/) and re-run

        depmod <kernelrelease>

otherwise the ipset kernel modules in the extra subdir will be ignored.


» find /tmp/RT2/
/tmp/RT2/
/tmp/RT2/lib
/tmp/RT2/lib/modules
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/sched
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/sched/em_ipset.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/xt_set.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_list_set.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_hash_netportnet.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_hash_netport.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_hash_netnet.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_hash_netiface.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_hash_net.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_hash_mac.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_hash_ipportnet.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_hash_ipportip.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_hash_ipport.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_hash_ipmark.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_hash_ipmac.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_hash_ip.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_bitmap_port.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_bitmap_ipmac.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_bitmap_ip.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set.ko



  reply	other threads:[~2020-05-21 21:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-21 19:27 ipset make modules_install fails to honor INSTALL_MOD_PATH Oskar Berggren
2020-05-21 21:09 ` Jan Engelhardt [this message]
2020-05-21 22:05   ` Oskar Berggren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=nycvar.YFH.7.77.849.2005212305180.7617@n3.vanv.qr \
    --to=jengelh@inai.de \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=oskar.berggren@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).