Skip to contentSkip to conversation

libmnl compile failure.

DISCUSSION maowenan 3 participants 5 messages Dec 16, 2016 – Dec 21, 2016 netfilter

lore
Share & tools
lore

maowenan

author
#0 lore raw

Hi,

There is something wrong when I make libmnl, could you please help check?

localhost:~/maowenan/libmnl # pwd
/root/maowenan/libmnl
localhost:~/maowenan/libmnl #
localhost:~/maowenan/libmnl # make
make all-recursive
make[1]: Entering directory `/root/maowenan/libmnl'
Making all in src
make[2]: Entering directory /root/maowenan/libmnl/src' make[2]: Nothing to be done for all'.
make[2]: Leaving directory `/root/maowenan/libmnl/src'
Making all in include
make[2]: Entering directory `/root/maowenan/libmnl/include' Making all in libmnl
make[3]: Entering directory /root/maowenan/libmnl/include/libmnl' make[3]: Nothing to be done for all'.
make[3]: Leaving directory `/root/maowenan/libmnl/include/libmnl' Making all in linux
make[3]: Entering directory `/root/maowenan/libmnl/include/linux' Making all in netfilter
make[4]: Entering directory /root/maowenan/libmnl/include/linux/netfilter' make[4]: Nothing to be done for all'.
make[4]: Leaving directory /root/maowenan/libmnl/include/linux/netfilter' make[4]: Entering directory /root/maowenan/libmnl/include/linux' make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory /root/maowenan/libmnl/include/linux' make[3]: Leaving directory /root/maowenan/libmnl/include/linux' make[3]: Entering directory /root/maowenan/libmnl/include' make[3]: Nothing to be done for all-am'.
make[3]: Leaving directory /root/maowenan/libmnl/include' make[2]: Leaving directory /root/maowenan/libmnl/include' Making all in examples
make[2]: Entering directory `/root/maowenan/libmnl/examples' Making all in genl
make[3]: Entering directory /root/maowenan/libmnl/examples/genl' make[3]: Nothing to be done for all'.
make[3]: Leaving directory `/root/maowenan/libmnl/examples/genl' Making all in kobject
make[3]: Entering directory /root/maowenan/libmnl/examples/kobject' make[3]: Nothing to be done for all'.
make[3]: Leaving directory `/root/maowenan/libmnl/examples/kobject' Making all in netfilter
make[3]: Entering directory /root/maowenan/libmnl/examples/netfilter' make[3]: Nothing to be done for all'.
make[3]: Leaving directory `/root/maowenan/libmnl/examples/netfilter' Making all in rtnl
make[3]: Entering directory /root/maowenan/libmnl/examples/rtnl' make[3]: Nothing to be done for all'.
make[3]: Leaving directory /root/maowenan/libmnl/examples/rtnl' make[3]: Entering directory /root/maowenan/libmnl/examples' make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory /root/maowenan/libmnl/examples' make[2]: Leaving directory /root/maowenan/libmnl/examples' make[2]: Entering directory `/root/maowenan/libmnl'
make[2]: Leaving directory `/root/maowenan/libmnl'
make[1]: Leaving directory `/root/maowenan/libmnl'

reviewer
#1 lore raw

Hi,

Quoted 1 line · maowenan

There is something wrong when I make libmnl, could you please help check?

There is no error message in the output you pasted. Looks like you're calling 'make' in an already built source tree, so nothing needs to be done. Do you see the binaries in src/.libs?

Cheers, Phil

author
#2 lore raw

no, I don't see src.libs, but I have built nft success now, there is nothing need to do when make libmnl. The libmnl and libnftnl have existed in my system.
Thank you very much.

Quoted 17 lines

-----Original Message-----
From: Phil Sutter [mailto:[email protected]]
Sent: Monday, December 19, 2016 4:49 PM
To: maowenan
Cc: [email protected]
Subject: Re: libmnl compile failure.

Hi,

Quoted 1 line · maowenan

There is something wrong when I make libmnl, could you please help check?

There is no error message in the output you pasted. Looks like you're calling 'make' in an already built source tree, so nothing needs to be done. Do you see the binaries in src/.libs?

Cheers, Phil

author
#3 lore raw
In reply to Phil Sutter
Quoted 11 lines

-----Original Message-----
From: Phil Sutter [mailto:[email protected]]
Sent: Monday, December 19, 2016 4:49 PM
To: maowenan
Cc: [email protected]
Subject: Re: libmnl compile failure.

Hi,

Quoted 8 lines
Quoted 1 line · maowenan

There is something wrong when I make libmnl, could you please help check?

There is no error message in the output you pasted. Looks like you're calling 'make' in an already built source tree, so nothing needs to be done. Do you see the binaries in src/.libs?

Cheers, Phil

                                        Local
                                            process
                                              ^  |                 .-----------.
                   .-----------.              |  |                 |  Routing  |
                   |           |-----> input /    \---> output --->|  Decision |----
--> prerouting --->|  Routing  |                                   .-----------.    \
                   | Decision  |                                                     --> postrouting
                   |           |                                                    /
                   |           |---------------> forward --------------------------- 
                   .-----------.

Is nftables output chain before routing decision? I think output is after routing decision, Is it wrong with above graphic?
https://wiki.nftables.org/wiki-nftables/index.php/Netfilter_hooks

maintainer
#4 lore raw
Quoted 31 lines · maowenan
Quoted 11 lines

-----Original Message-----
From: Phil Sutter [mailto:[email protected]]
Sent: Monday, December 19, 2016 4:49 PM
To: maowenan
Cc: [email protected]
Subject: Re: libmnl compile failure.

Hi,

Quoted 8 lines
Quoted 1 line · maowenan

There is something wrong when I make libmnl, could you please help check?

There is no error message in the output you pasted. Looks like you're calling 'make' in an already built source tree, so nothing needs to be done. Do you see the binaries in src/.libs?

Cheers, Phil

                                        Local
                                            process
                                              ^  |                 .-----------.
                   .-----------.              |  |                 |  Routing  |
                   |           |-----> input /    \---> output --->|  Decision |----
--> prerouting --->|  Routing  |                                   .-----------.    \
                   | Decision  |                                                     --> postrouting
                   |           |                                                    /
                   |           |---------------> forward --------------------------- 
                   .-----------.
Quoted 1 line

Is nftables output chain before routing decision? I think output is after routing decision, Is it wrong with above graphic?

Yes, the graph is wrong.

Output is after routing (which is why we need 'mangle' table in iptables for rerouting and nftables' "route" chain property).