Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Mar 2021 06:01:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 254570] security/fwknop Fix compilation error on 13 and 14
Message-ID:  <bug-254570-7788-bSR5fTZmWu@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-254570-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-254570-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254570

--- Comment #1 from sean.greven@gmail.com ---
Comment on attachment 223598
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D223598
Fix compilation error on FreeBSD 13 and 14.

Hey Jens, thank you for creating this diff.
I am unable to apply this patch and I suspect I am doing something drastica=
lly
wrong.=20=20
I manually created the file patch-client_log__msg.h
and updated the Makefile with the changes however when I try run make I get:
root@BBD13RC3:/usr/ports/security/fwknop # make
=3D=3D=3D>  Patching for fwknop-2.6.10_2
=3D=3D=3D>  Applying FreeBSD patches for fwknop-2.6.10_2 from
/usr/ports/security/fwknop/files
File to patch:
and when I point that to the log_msg.h file manually it patches the file but
ends up with an error anyway.

./log_msg.h:1:1: error: expected identifier or '('
--- client/log_msg.h.orig      2021-03-26 08:55:00 UTC
^
./log_msg.h:7:2: error: extraneous closing brace ('}')
-} log_level_t;
 ^
./log_msg.h:7:4: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
-} log_level_t;
   ^
./log_msg.h:8:1: error: expected external declaration
+};
^
./log_msg.h:8:2: error: extraneous closing brace ('}')
+};
 ^
./log_msg.h:52:3: error: redefinition of 'log_level_t' with a different typ=
e:
'enum (anonymous enum at ./log_msg.h:43:1)' vs 'int'
} log_level_t;
  ^
./log_msg.h:7:4: note: previous definition is here
-} log_level_t;
   ^
1 warning and 5 errors generated.
*** [fwknop-fwknop.o] Error code 1

Any ideas

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254570-7788-bSR5fTZmWu>