netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iptables] nfnl_osf: use the right nfnetlink lib
@ 2013-03-29 14:21 Nicolas Dichtel
  2013-03-29 15:20 ` Jan Engelhardt
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Dichtel @ 2013-03-29 14:21 UTC (permalink / raw)
  To: pablo; +Cc: netfilter-devel, Nicolas Dichtel

If the user specify libnfnetlink_LIBS during the configure, we must use it.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
---
 utils/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/Makefile.am b/utils/Makefile.am
index f1bbfc5..8a85396 100644
--- a/utils/Makefile.am
+++ b/utils/Makefile.am
@@ -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
-- 
1.8.0.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH iptables] nfnl_osf: use the right nfnetlink lib
  2013-03-29 14:21 [PATCH iptables] nfnl_osf: use the right nfnetlink lib Nicolas Dichtel
@ 2013-03-29 15:20 ` Jan Engelhardt
  2013-04-02 14:38   ` Nicolas Dichtel
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Engelhardt @ 2013-03-29 15:20 UTC (permalink / raw)
  To: Nicolas Dichtel; +Cc: pablo, netfilter-devel

On Friday 2013-03-29 15:21, Nicolas Dichtel wrote:

>If the user specify libnfnetlink_LIBS during the configure, we must use it.
>
>Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
>---
> utils/Makefile.am | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/utils/Makefile.am b/utils/Makefile.am
>index f1bbfc5..8a85396 100644
>--- a/utils/Makefile.am
>+++ b/utils/Makefile.am
>@@ -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 :)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH iptables] nfnl_osf: use the right nfnetlink lib
  2013-03-29 15:20 ` Jan Engelhardt
@ 2013-04-02 14:38   ` Nicolas Dichtel
  2013-04-03  2:17     ` Jan Engelhardt
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Dichtel @ 2013-04-02 14:38 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: pablo, netfilter-devel

Le 29/03/2013 16:20, Jan Engelhardt a écrit :
> On Friday 2013-03-29 15:21, Nicolas Dichtel wrote:
>
>> If the user specify libnfnetlink_LIBS during the configure, we must use it.
>>
>> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
>> ---
>> utils/Makefile.am | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/utils/Makefile.am b/utils/Makefile.am
>> index f1bbfc5..8a85396 100644
>> --- a/utils/Makefile.am
>> +++ b/utils/Makefile.am
>> @@ -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'.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH iptables] nfnl_osf: use the right nfnetlink lib
  2013-04-02 14:38   ` Nicolas Dichtel
@ 2013-04-03  2:17     ` Jan Engelhardt
  2013-04-03  9:21       ` [PATCH iptables v2] " Nicolas Dichtel
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Engelhardt @ 2013-04-03  2:17 UTC (permalink / raw)
  To: Nicolas Dichtel; +Cc: pablo, netfilter-devel

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}

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH iptables v2] nfnl_osf: use the right nfnetlink lib
  2013-04-03  2:17     ` Jan Engelhardt
@ 2013-04-03  9:21       ` Nicolas Dichtel
  0 siblings, 0 replies; 5+ messages in thread
From: Nicolas Dichtel @ 2013-04-03  9:21 UTC (permalink / raw)
  To: jengelh; +Cc: pablo, netfilter-devel, Nicolas Dichtel

If the user specify libnfnetlink_LIBS during the configure, we must use it.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
---

v2: remove duplicate -lnfnetlink

 utils/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/Makefile.am b/utils/Makefile.am
index f1bbfc5..66f5c5c 100644
--- a/utils/Makefile.am
+++ b/utils/Makefile.am
@@ -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}
-- 
1.8.0.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-03  9:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-29 14:21 [PATCH iptables] nfnl_osf: use the right nfnetlink lib Nicolas Dichtel
2013-03-29 15:20 ` Jan Engelhardt
2013-04-02 14:38   ` Nicolas Dichtel
2013-04-03  2:17     ` Jan Engelhardt
2013-04-03  9:21       ` [PATCH iptables v2] " Nicolas Dichtel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).