Re: Undefined reference?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Stéphane Veyret <sveyret@xxxxxxxxx> wrote:
> I am currently trying to add a new feature to nftables. I made
> modifications on the kernel and updated a VM with this modified
> kernel. I then made modifications on libnftnl, make && make install it
> on this VM. I even made some tests which I managed to execute.
> 
> Now, I am trying to modify the nftables userspace tool. I had to set variables:
> LIBNFTNL_CFLAGS="-g -O2"
> LIBNFTNL_LIBS=$HOME/libnftnl/src/.libs/libnftnl.so ./configure
> in order for configure to work, but it worked. But at linking time, I
> get the following error for each nftnl_* function:
> ld: ./.libs/libnftables.so: undefined reference to `nftnl_trace_free'
> 
> I tried to set the LD_LIBRARY_PATH to /usr/local/lib but it did not
> change anything. Do you have an idea of what the problem is?

Try

LIBNFTNL_LIBS="-L$HOME/libnftnl/src/.libs -lnftnl" ./configure



[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux