Re: [PATCH iptables] nfnl_osf: use the right nfnetlink lib

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

 



On Tuesday 2013-04-02 16:38, Nicolas Dichtel wrote:

>>> @@ -7,4 +7,4 @@ AM_CPPFLAGS = ${regular_CPPFLAGS} -I${top_builddir}/include \
>>> sbin_PROGRAMS = nfnl_osf
>>> pkgdata_DATA = pf.os
>>>
>>> -nfnl_osf_LDADD = -lnfnetlink
>>> +nfnl_osf_LDADD = ${libnfnetlink_LIBS} -lnfnetlink
>>
>> You really should remove -lnfnetlink :)
>>
> Not sure to understand your comment. ${libnfnetlink_LIBS} contains only
> something like '-L/path/to/my/lib'.


	pkg-config libnfnetlink --libs

should definitely return at least an -l argument. If not, the .pc file 
is buggy.
This is what the Libs line should look like:


# libnfnetlink pkg-config file

prefix=/usr
exec_prefix=/usr
libdir=/usr/lib64
includedir=/usr/include/libnfnetlink-1.0.1

Name: libnfnetlink
Description: Low-level netfilter netlink communication library
URL: http://netfilter.org/projects/libnfnetlink/
Version: 1.0.1
Requires:
Conflicts:
Libs: -L${libdir} -lnfnetlink
Cflags: -I${includedir}
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux