From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Borkmann Subject: Re: ipvsadm git head not compiling on RHEL6 Date: Thu, 08 Aug 2013 10:27:05 +0200 Message-ID: <52035659.8080503@redhat.com> References: <1375937999-11660-1-git-send-email-horms@verge.net.au> <52034D12.4070100@redhat.com> <20130808101924.7b363a4e@redhat.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130808101924.7b363a4e@redhat.com> Sender: lvs-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Jesper Dangaard Brouer Cc: Simon Horman , lvs-devel@vger.kernel.org, Wensong Zhang , Julian Anastasov On 08/08/2013 10:19 AM, Jesper Dangaard Brouer wrote: > > I noticed that I get an compile error, when compiling ipvsadm > git HEAD 1ea1f41f4 on RHEL6.4. > > Compile Error: > > gcc -Wall -Wunused -Wstrict-prototypes -g -o ipvsadm ipvsadm.o config_stream.o dynamic_array.o libipvs/libipvs.a -lpopt -lnl > libipvs/libipvs.a(libipvs.o): In function `ipvs_nl_send_message': > /home/jbrouer/git/ipvsadm/libipvs/libipvs.c:76: undefined reference to `nl_socket_alloc' > /home/jbrouer/git/ipvsadm/libipvs/libipvs.c:91: undefined reference to `nl_socket_free' > /home/jbrouer/git/ipvsadm/libipvs/libipvs.c:107: undefined reference to `nl_socket_free' > /home/jbrouer/git/ipvsadm/libipvs/libipvs.c:112: undefined reference to `nl_socket_free' > collect2: ld returned 1 exit status > make: *** [ipvsadm] Error 1 > > I'll investigate, but hints would be appreciated ;-) Did you try using libnl3? (Migrating to libnl3 would be better anyway as distributions try to get rid of supporting libnl.) I think sometime in libnl*, nl_handle_{alloc,free} was changed to nl_socket_{alloc,free}. Maybe try changing include locations and libs that are linked against to libnl3.