On Thu, Aug 08, 2013 at 10:27:05AM +0200, Daniel Borkmann wrote:
> 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.
I'm pretty sure that I saw the same problem and that using libnl3 was
the solution.
--
To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
|