libnl: fix automake breakage

Patrick McHardy kaber at trash.net
Thu Nov 5 10:11:48 EST 2009


Jan Engelhardt wrote:
> On Thursday 2009-11-05 13:38, Patrick McHardy wrote:
> 
>>    libnl: fix automake breakage
>>    
>>    libnl-route must be handled before libnl-nf in lib_LTLIBRARIES since
>>    the later depends on the former.
> 
> But this is already expressed:
> 
> libnl_nf_la_LIBADD  = libnl-route.la 
> 
> and automake does normally honor this dependency (because it's expressed
> as a real existing file rather than "-lnf-route"):

Well, it fails for me during "make install":

libtool: relink: gcc -shared  netfilter/.libs/ct.o
netfilter/.libs/ct_obj.o netfilter/.libs/log.o netfilter/.libs/log_msg.o
netfilter/.libs/log_msg_obj.o netfilter/.libs/log_obj.o
netfilter/.libs/netfilter.o netfilter/.libs/nfnl.o
netfilter/.libs/queue.o netfilter/.libs/queue_msg.o
netfilter/.libs/queue_msg_obj.o netfilter/.libs/queue_obj.o
-L/usr/local/lib -lnl-route -lm    -Wl,-soname -Wl,libnl-nf.so.2 -o
.libs/libnl-nf.so.2.0.0
/usr/bin/ld: cannot find -lnl-route
collect2: ld returned 1 exit status
libtool: install: error: relink `libnl-nf.la' with the above command
before installing it

BTW, one more thing, "make clean" doesn't clean up the dep files
and .dirstamp.



More information about the libnl mailing list