Find the answer to your Linux question:
Results 1 to 2 of 2
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2011
    Posts
    26

    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 ......

  2. #2
    Just Joined!
    Join Date
    Mar 2012
    Posts
    1
    Try export LIBS="-lmnl" before
    ./configure,make,make install.

    to me it worked

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •