Hi all,

I plan to fix this bug by NMU. The attachment is the debdiff.
I'll wait for 10 days if no one stops me. And I'll upload to DELAY/10 queue.

Yours,
Paul

diff -Nru nat-1.0/debian/changelog nat-1.0/debian/changelog
--- nat-1.0/debian/changelog    2022-04-26 22:48:16.000000000 +0800
+++ nat-1.0/debian/changelog    2024-08-10 21:28:57.000000000 +0800
@@ -1,3 +1,12 @@
+nat (1:1.0-6.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix FTBFS for GCC-14 (Closes: #1075305)
+    - Add debian/patches/0005_fix_ftbfs_gcc14.patch
+    - Update debian/patches/0004_add_sig_handler.patch
+
+ -- Ying-Chun Liu (PaulLiu) <paul...@debian.org>  Sat, 10 Aug 2024 21:28:57 
+0800
+
 nat (1:1.0-6.1) unstable; urgency=low
 
   * Non-maintainer upload.
diff -Nru nat-1.0/debian/patches/0004_add_sig_handler.patch 
nat-1.0/debian/patches/0004_add_sig_handler.patch
--- nat-1.0/debian/patches/0004_add_sig_handler.patch   2022-04-26 
22:25:09.000000000 +0800
+++ nat-1.0/debian/patches/0004_add_sig_handler.patch   2024-08-10 
21:28:57.000000000 +0800
@@ -248,7 +248,7 @@
 ===================================================================
 --- /dev/null
 +++ nat-1.0/sighandler.c
-@@ -0,0 +1,113 @@
+@@ -0,0 +1,114 @@
 +/* Nessus
 + * Copyright (C) 1998 - 2004 Renaud Deraison
 + *
@@ -286,6 +286,7 @@
 +#include <sys/resource.h>
 +#endif
 +
++extern void close_sockets(void);
 +
 +void (*set_signal(int signum, void (*handler)(int)))(int)
 +{
diff -Nru nat-1.0/debian/patches/0005_fix_ftbfs_gcc14.patch 
nat-1.0/debian/patches/0005_fix_ftbfs_gcc14.patch
--- nat-1.0/debian/patches/0005_fix_ftbfs_gcc14.patch   1970-01-01 
08:00:00.000000000 +0800
+++ nat-1.0/debian/patches/0005_fix_ftbfs_gcc14.patch   2024-08-10 
21:28:57.000000000 +0800
@@ -0,0 +1,50 @@
+Description: Port to GCC-14
+Bug-Debian: http://bugs.debian.org/1075305
+Author: Ying-Chun Liu (PaulLiu) <paul...@debian.org>
+Index: nat-1.0/client.c
+===================================================================
+--- nat-1.0.orig/client.c
++++ nat-1.0/client.c
+@@ -32,6 +32,11 @@
+ 
+ #include "includes.h"
+ 
++extern void natprintf(char *format, ...);
++extern int fill_vuln();
++extern BOOL H_name_status (int fd,char *name,int name_type, struct in_addr 
to_ip);
++extern char * Get_Hostbyaddr (struct in_addr ip);
++
+ #ifndef REGISTER
+ #define REGISTER 0
+ #endif
+Index: nat-1.0/nmb.c
+===================================================================
+--- nat-1.0.orig/nmb.c
++++ nat-1.0/nmb.c
+@@ -32,6 +32,7 @@
+ #include "vulns.h"
+ 
+ extern int DEBUGLEVEL;
++extern void natprintf(char *format, ...);
+ 
+ #ifdef SCANNER
+ extern int cur_vuln;
+Index: nat-1.0/parse_ip.c
+===================================================================
+--- nat-1.0.orig/parse_ip.c
++++ nat-1.0/parse_ip.c
+@@ -3,11 +3,14 @@
+ #include <string.h>
+ #include <netdb.h>
+ #include <ctype.h>
++#include <arpa/inet.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include "parse_ip.h"
+ 
++extern void natprintf(char *format, ...);
++
+ struct ipstr *parse_ip(char *);
+ void add_parse_ip(struct ipstr **, char *);
+ char *ip_ntoa(u_long in);
diff -Nru nat-1.0/debian/patches/series nat-1.0/debian/patches/series
--- nat-1.0/debian/patches/series       2022-04-26 22:24:31.000000000 +0800
+++ nat-1.0/debian/patches/series       2024-08-10 21:28:57.000000000 +0800
@@ -2,3 +2,4 @@
 0002_patch_manpage.patch
 0003_add_patch.patch
 0004_add_sig_handler.patch
+0005_fix_ftbfs_gcc14.patch

Attachment: OpenPGP_0x44173FA13D058888.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to