LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   IPSET 6.8 install problem (https://www.linuxquestions.org/questions/linux-networking-3/ipset-6-8-install-problem-893083/)

dashang.trivedi 07-22-2011 12:46 AM

IPSET 6.8 install problem
 
I want to install IPSET 6.8..

for that i m doing this steps:
---> sh autogen.sh
1)./configure --with-kbuild=/lib/modules/2.6.39.2-1smp/build/ --libexecdir=/usr/local/lib/

So its give No package 'libmnl' found
So i install libmnl and set path
export libmnl_LIBS=$PWD/libmnl-1.0.1/src/.libs/
export libmnl_CFLAGS=$PWD/libmnl-1.0.1/include/
than again i m start with

2) ./configure --with-kbuild=/lib/modules/2.6.39.2-1smp/build/ --libexecdir=/usr/local/lib/
SUCCESSFULLY CONFIGURE

3)make
BUT ITS GIVE ERROR
Its stop process in between.
Code:

../lib/.libs/libipset.a(session.o): In function `generic_data_attr_cb':
session.c:(.text+0x239): undefined reference to `mnl_attr_get_type'
session.c:(.text+0x24c): undefined reference to `mnl_attr_type_valid'
session.c:(.text+0x280): undefined reference to `mnl_attr_validate'
session.c:(.text+0x29f): undefined reference to `mnl_attr_get_payload_len'
../lib/.libs/libipset.a(session.o): In function `open_nested':
session.c:(.text+0x35f): undefined reference to `mnl_attr_nest_start'
../lib/.libs/libipset.a(session.o): In function `rawdata2attr':
session.c:(.text+0x43e): undefined reference to `mnl_attr_put'
session.c:(.text+0x4ef): undefined reference to `mnl_attr_nest_start'
session.c:(.text+0x515): undefined reference to `mnl_attr_put'
session.c:(.text+0x524): undefined reference to `mnl_attr_nest_end'
../lib/.libs/libipset.a(session.o): In function `close_nested':
session.c:(.text+0x669): undefined reference to `mnl_attr_nest_end'
../lib/.libs/libipset.a(session.o): In function `attr2data':
session.c:(.text+0x908): undefined reference to `mnl_attr_get_payload'
session.c:(.text+0x997): undefined reference to `mnl_attr_parse_nested'
session.c:(.text+0xa11): undefined reference to `mnl_attr_get_payload'
../lib/.libs/libipset.a(session.o): In function `callback_error':
session.c:(.text+0xba9): undefined reference to `mnl_nlmsg_get_payload'
session.c:(.text+0xbba): undefined reference to `mnl_nlmsg_size'
session.c:(.text+0xbe8): undefined reference to `mnl_nlmsg_get_payload'
session.c:(.text+0xc55): undefined reference to `mnl_attr_parse'
session.c:(.text+0xc7d): undefined reference to `mnl_attr_get_u32'
../lib/.libs/libipset.a(session.o): In function `ipset_commit':
session.c:(.text+0x102a): undefined reference to `mnl_attr_nest_end'
../lib/.libs/libipset.a(session.o): In function `callback_list':
session.c:(.text+0x1404): undefined reference to `mnl_attr_parse_nested'
session.c:(.text+0x1533): undefined reference to `mnl_attr_get_payload'
session.c:(.text+0x154c): undefined reference to `mnl_attr_get_payload'
session.c:(.text+0x155e): undefined reference to `mnl_attr_get_payload_len'
session.c:(.text+0x157c): undefined reference to `mnl_attr_ok'
session.c:(.text+0x15c7): undefined reference to `mnl_attr_parse_nested'
session.c:(.text+0x1823): undefined reference to `mnl_attr_next'
../lib/.libs/libipset.a(session.o): In function `callback_data':
session.c:(.text+0x1dac): undefined reference to `mnl_attr_parse'
session.c:(.text+0x1dc7): undefined reference to `mnl_attr_get_u8'
session.c:(.text+0x1ef8): undefined reference to `mnl_attr_get_str'
session.c:(.text+0x1f6a): undefined reference to `mnl_attr_get_str'
session.c:(.text+0x205e): undefined reference to `mnl_attr_get_u8'
session.c:(.text+0x206f): undefined reference to `mnl_attr_get_u8'
../lib/.libs/libipset.a(session.o): In function `build_send_private_msg':
session.c:(.text+0x2362): undefined reference to `mnl_attr_put_u8'
session.c:(.text+0x250c): undefined reference to `mnl_attr_put_u8'
../lib/.libs/libipset.a(session.o): In function `build_msg':
session.c:(.text+0x25bd): undefined reference to `mnl_attr_put_u8'
session.c:(.text+0x274b): undefined reference to `mnl_attr_put_u8'
session.c:(.text+0x2a2b): undefined reference to `mnl_attr_nest_cancel'
../lib/.libs/libipset.a(mnl.o): In function `ipset_mnl_query':
mnl.c:(.text+0x3e): undefined reference to `mnl_socket_sendto'
mnl.c:(.text+0x83): undefined reference to `mnl_cb_run2'
mnl.c:(.text+0x99): undefined reference to `mnl_socket_recvfrom'
../lib/.libs/libipset.a(mnl.o): In function `ipset_mnl_fill_hdr':
mnl.c:(.text+0xd6): undefined reference to `mnl_nlmsg_put_header'
mnl.c:(.text+0x107): undefined reference to `mnl_nlmsg_put_extra_header'
../lib/.libs/libipset.a(mnl.o): In function `ipset_mnl_fini':
mnl.c:(.text+0x134): undefined reference to `mnl_socket_close'
../lib/.libs/libipset.a(mnl.o): In function `ipset_mnl_init':
mnl.c:(.text+0x17c): undefined reference to `mnl_socket_open'
mnl.c:(.text+0x19a): undefined reference to `mnl_socket_bind'
mnl.c:(.text+0x1a8): undefined reference to `mnl_socket_get_portid'
mnl.c:(.text+0x1de): undefined reference to `mnl_socket_close'
collect2: ld returned 1 exit status
make[2]: *** [ipset] Error 1
make[2]: Leaving directory `/usr/src/kernels/linux-2.6.39.2/ipset-6.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/kernels/linux-2.6.39.2/ipset-6.8'
make: *** [all] Error 2


PLEASE TELL ME HOW TO INSTALL IPSET ......

TB0ne 07-22-2011 10:19 AM

Quote:

Originally Posted by dashang.trivedi (Post 4422016)
I want to install IPSET 6.8..

for that i m doing this steps:
---> sh autogen.sh
1)./configure --with-kbuild=/lib/modules/2.6.39.2-1smp/build/ --libexecdir=/usr/local/lib/

So its give No package 'libmnl' found
So i install libmnl and set path
export libmnl_LIBS=$PWD/libmnl-1.0.1/src/.libs/
export libmnl_CFLAGS=$PWD/libmnl-1.0.1/include/
than again i m start with

How did you install the library? And did you re-run the autogen.sh, or do a "make clean" after you installed it? What version/distro of Linux are you using?
Quote:

2) ./configure --with-kbuild=/lib/modules/2.6.39.2-1smp/build/ --libexecdir=/usr/local/lib/
SUCCESSFULLY CONFIGURE

3)make
BUT ITS GIVE ERROR Its stop process in between.
PLEASE TELL ME HOW TO INSTALL IPSET ......
You are missing a library or header somewhere. And this should be available in your online repos...have you tried to add it?

dashang.trivedi 07-22-2011 11:03 AM

Sir Thank You for replay...

sir which library i m not getting ....
I m using fedora 11...
i download ipset6.8.tar.bz file from ipset website...

i just follow the step which they have mention in their installation guide..

1) sh autogen.sh
2) ./configure (with kernel build directory) but its give me error that not found libmnl

so i download libmnl.1.0.1.tar.gz from netfilter web site and install it
3) than again i try with ./configure with build source its done
but when i type make command its give error

TB0ne 07-22-2011 01:04 PM

Quote:

Originally Posted by dashang.trivedi (Post 4422453)
Sir Thank You for replay...

sir which library i m not getting ....I m using fedora 11...
i download ipset6.8.tar.bz file from ipset website...

Ok...again, have you tried to install ipset from the online repos? "yum install ipset"???
Quote:

i just follow the step which they have mention in their installation guide..
1) sh autogen.sh
2) ./configure (with kernel build directory) but its give me error that not found libmnl

so i download libmnl.1.0.1.tar.gz from netfilter web site and install it
3) than again i try with ./configure with build source its done
but when i type make command its give error
Same as above...why don't you install the library from your online repos? Look for the libmnl library, and install it, and your development headers.

Also, FC11 is OLD, and hit end-of-life last year. The latest is 15...

Caesurus 06-25-2013 07:07 AM

I know the post is super old, but I figured it may help someone.
Quote:

Originally Posted by dashang.trivedi
I want to install IPSET 6.8..

for that i m doing this steps:
---> sh autogen.sh
1)./configure --with-kbuild=/lib/modules/2.6.39.2-1smp/build/ --libexecdir=/usr/local/lib/

So its give No package 'libmnl' found
So i install libmnl and set path
export libmnl_LIBS=$PWD/libmnl-1.0.1/src/.libs/
export libmnl_CFLAGS=$PWD/libmnl-1.0.1/include/
The correct settings for these exports are:
Code:

export libmnl_CFLAGS="-I/buildpath/libmnl-1.0.3/include/"
export libmnl_LIBS="-L/usr/libs -lmnl"



All times are GMT -5. The time now is 02:31 AM.