* [PATCH libnetfilter_queue] src: doc: Re-order gcc args so nf-queue.c compiles on Debian systems
@ 2025-03-19 0:56 Duncan Roe
2025-03-19 9:28 ` Pablo Neira Ayuso
0 siblings, 1 reply; 5+ messages in thread
From: Duncan Roe @ 2025-03-19 0:56 UTC (permalink / raw)
To: netfilter-devel; +Cc: ged
Change the order of gcc arguments following the discussion starting at
https://www.spinics.net/lists/netfilter-devel/msg90612.html.
While being about it, update the obsolete -ggdb debug option to -gdwarf-4.
Reported-by: "G.W. Haywood" <ged@jubileegroup.co.uk>
Fixes: f0eb6a9c15a5 ("src: doc: Update the Main Page to be nft-focussed")
Signed-off-by: Duncan Roe <duncan_roe@optusnet.com.au>
---
src/libnetfilter_queue.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libnetfilter_queue.c b/src/libnetfilter_queue.c
index f152efb..99799c0 100644
--- a/src/libnetfilter_queue.c
+++ b/src/libnetfilter_queue.c
@@ -86,7 +86,7 @@
* nf-queue.c source file.
* Simple compile line:
* \verbatim
-gcc -g3 -ggdb -Wall -lmnl -lnetfilter_queue -o nf-queue nf-queue.c
+gcc -g3 -gdwarf-4 -Wall nf-queue.c -o nf-queue -lnetfilter_queue -lmnl
\endverbatim
*The doxygen documentation
* \htmlonly
--
2.46.3
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH libnetfilter_queue] src: doc: Re-order gcc args so nf-queue.c compiles on Debian systems 2025-03-19 0:56 [PATCH libnetfilter_queue] src: doc: Re-order gcc args so nf-queue.c compiles on Debian systems Duncan Roe @ 2025-03-19 9:28 ` Pablo Neira Ayuso 2025-03-19 20:42 ` Duncan Roe 0 siblings, 1 reply; 5+ messages in thread From: Pablo Neira Ayuso @ 2025-03-19 9:28 UTC (permalink / raw) To: Duncan Roe; +Cc: netfilter-devel, ged On Wed, Mar 19, 2025 at 11:56:05AM +1100, Duncan Roe wrote: > Change the order of gcc arguments following the discussion starting at > https://www.spinics.net/lists/netfilter-devel/msg90612.html. > While being about it, update the obsolete -ggdb debug option to -gdwarf-4. > > Reported-by: "G.W. Haywood" <ged@jubileegroup.co.uk> > Fixes: f0eb6a9c15a5 ("src: doc: Update the Main Page to be nft-focussed") > Signed-off-by: Duncan Roe <duncan_roe@optusnet.com.au> > --- > src/libnetfilter_queue.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/libnetfilter_queue.c b/src/libnetfilter_queue.c > index f152efb..99799c0 100644 > --- a/src/libnetfilter_queue.c > +++ b/src/libnetfilter_queue.c > @@ -86,7 +86,7 @@ > * nf-queue.c source file. > * Simple compile line: > * \verbatim > -gcc -g3 -ggdb -Wall -lmnl -lnetfilter_queue -o nf-queue nf-queue.c > +gcc -g3 -gdwarf-4 -Wall nf-queue.c -o nf-queue -lnetfilter_queue -lmnl I am going t remove -g3 and -gdwarf-4, so it ends up with: gcc -Wall nf-queue.c -o nf-queue -lnetfilter_queue -lmnl to keep this example as simple as possible. > \endverbatim > *The doxygen documentation > * \htmlonly > -- > 2.46.3 > > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH libnetfilter_queue] src: doc: Re-order gcc args so nf-queue.c compiles on Debian systems 2025-03-19 9:28 ` Pablo Neira Ayuso @ 2025-03-19 20:42 ` Duncan Roe 2025-03-21 1:57 ` Duncan Roe 0 siblings, 1 reply; 5+ messages in thread From: Duncan Roe @ 2025-03-19 20:42 UTC (permalink / raw) To: Pablo Neira Ayuso; +Cc: Netfilter Development Hi Pablo, On Wed, Mar 19, 2025 at 10:28:52AM +0100, Pablo Neira Ayuso wrote: > On Wed, Mar 19, 2025 at 11:56:05AM +1100, Duncan Roe wrote: > > Change the order of gcc arguments following the discussion starting at > > https://www.spinics.net/lists/netfilter-devel/msg90612.html. > > While being about it, update the obsolete -ggdb debug option to -gdwarf-4. > > > > Reported-by: "G.W. Haywood" <ged@jubileegroup.co.uk> > > Fixes: f0eb6a9c15a5 ("src: doc: Update the Main Page to be nft-focussed") > > Signed-off-by: Duncan Roe <duncan_roe@optusnet.com.au> > > --- > > src/libnetfilter_queue.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/src/libnetfilter_queue.c b/src/libnetfilter_queue.c > > index f152efb..99799c0 100644 > > --- a/src/libnetfilter_queue.c > > +++ b/src/libnetfilter_queue.c > > @@ -86,7 +86,7 @@ > > * nf-queue.c source file. > > * Simple compile line: > > * \verbatim > > -gcc -g3 -ggdb -Wall -lmnl -lnetfilter_queue -o nf-queue nf-queue.c > > +gcc -g3 -gdwarf-4 -Wall nf-queue.c -o nf-queue -lnetfilter_queue -lmnl > > I am going t remove -g3 and -gdwarf-4, so it ends up with: > > gcc -Wall nf-queue.c -o nf-queue -lnetfilter_queue -lmnl That makes nonsense of the previous line: | you should start by reading (or, if feasible, compiling and stepping through with gdb) nf-queue.c You can only step through nf-queue.c if you compile with the debug options. Please leave them there. Cheers ... Duncan. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH libnetfilter_queue] src: doc: Re-order gcc args so nf-queue.c compiles on Debian systems 2025-03-19 20:42 ` Duncan Roe @ 2025-03-21 1:57 ` Duncan Roe 2025-03-21 10:26 ` Pablo Neira Ayuso 0 siblings, 1 reply; 5+ messages in thread From: Duncan Roe @ 2025-03-21 1:57 UTC (permalink / raw) To: Pablo Neira Ayuso; +Cc: Netfilter Development Hi Pablo, On Thu, Mar 20, 2025 at 07:42:12AM +1100, Duncan Roe wrote: > Hi Pablo, > > On Wed, Mar 19, 2025 at 10:28:52AM +0100, Pablo Neira Ayuso wrote: > > On Wed, Mar 19, 2025 at 11:56:05AM +1100, Duncan Roe wrote: > > > * Simple compile line: > > > * \verbatim > > > -gcc -g3 -ggdb -Wall -lmnl -lnetfilter_queue -o nf-queue nf-queue.c > > > +gcc -g3 -gdwarf-4 -Wall nf-queue.c -o nf-queue -lnetfilter_queue -lmnl > > > > I am going t remove -g3 and -gdwarf-4, so it ends up with: > > > > gcc -Wall nf-queue.c -o nf-queue -lnetfilter_queue -lmnl > > That makes nonsense of the previous line: > > | you should start by reading (or, if feasible, compiling and stepping through with gdb) nf-queue.c > > You can only step through nf-queue.c if you compile with the debug options. > > Please leave them there. ^^^^^^ ^^^^^ ^^^^ ^^^^^^ You chose to ignore this or maybe you just missed it? I can send a patch to remove the reference to gdb in the previous paragraph or I can send a patch to reinstate the gcc debug options. Which would you prefer? Cheers ... Duncan. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH libnetfilter_queue] src: doc: Re-order gcc args so nf-queue.c compiles on Debian systems 2025-03-21 1:57 ` Duncan Roe @ 2025-03-21 10:26 ` Pablo Neira Ayuso 0 siblings, 0 replies; 5+ messages in thread From: Pablo Neira Ayuso @ 2025-03-21 10:26 UTC (permalink / raw) To: Netfilter Development On Fri, Mar 21, 2025 at 12:57:32PM +1100, Duncan Roe wrote: > Hi Pablo, > > On Thu, Mar 20, 2025 at 07:42:12AM +1100, Duncan Roe wrote: > > Hi Pablo, > > > > On Wed, Mar 19, 2025 at 10:28:52AM +0100, Pablo Neira Ayuso wrote: > > > On Wed, Mar 19, 2025 at 11:56:05AM +1100, Duncan Roe wrote: > > > > * Simple compile line: > > > > * \verbatim > > > > -gcc -g3 -ggdb -Wall -lmnl -lnetfilter_queue -o nf-queue nf-queue.c > > > > +gcc -g3 -gdwarf-4 -Wall nf-queue.c -o nf-queue -lnetfilter_queue -lmnl > > > > > > I am going t remove -g3 and -gdwarf-4, so it ends up with: > > > > > > gcc -Wall nf-queue.c -o nf-queue -lnetfilter_queue -lmnl > > > > That makes nonsense of the previous line: > > > > | you should start by reading (or, if feasible, compiling and stepping through with gdb) nf-queue.c > > > > You can only step through nf-queue.c if you compile with the debug options. > > > > Please leave them there. > ^^^^^^ ^^^^^ ^^^^ ^^^^^^ > You chose to ignore this or maybe you just missed it? none of them, just disagreement. > I can send a patch to remove the reference to gdb in the previous paragraph or I > can send a patch to reinstate the gcc debug options. Which would you prefer? developers are familiar with debugging tools, there are more choices that gdb, -g is a "popular" flag, there is no need to document that many gcc options in the documentation, just a "Simple compile line" is fine. I very much apologize for the discomfort this rises on you. Thanks. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-03-21 10:26 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2025-03-19 0:56 [PATCH libnetfilter_queue] src: doc: Re-order gcc args so nf-queue.c compiles on Debian systems Duncan Roe 2025-03-19 9:28 ` Pablo Neira Ayuso 2025-03-19 20:42 ` Duncan Roe 2025-03-21 1:57 ` Duncan Roe 2025-03-21 10:26 ` Pablo Neira Ayuso
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).