Dear maintainer, the version 1.13 as shipped on latest portsnap update fails to compile with the following error from portmaster: # portmaster -gdb security/barnyard2 [..] cc -DHAVE_CONFIG_H -I. -I../.. -I.. -I ../sfutil -DSUP_IP6 -I/usr/local/include -I/usr/local/include -DBROCCOLI -O2 -pipe -fstack-protector -fno-strict-aliasing -m64 -Wall -c -o spo_alert_fwsam.o spo_alert_fwsam.c spo_alert_fwsam.c:118:13: error: cannot combine with previous 'int' declaration specifier typedef int SOCKET; ^ [..] The build system is a FreeBSD 11.2-RELEASE. Best regards,
(In reply to Patrice from comment #0) Are you using the default options or did you select more; Using poudriere and default port options I didn't get this. If you selected more options, which ones were they
Hello, thanks for your reply. We played with config options, and found out that it fails with the described error only when activating BRO option. We unticking this one, the port builds successfully. We are not using poudriere but portmaster to compile ports. Regards,
Created attachment 197464 [details] svn-diff-barnyard2 I am not really sure if it is right, but try this.
Comment on attachment 197464 [details] svn-diff-barnyard2 Hello, thank you for your try, but it fails to compile because SOCKET is not defined. Regards,
Created attachment 197821 [details] svn-diff-barnyard2_v2 This should work with PORT_PCAP on or off.
Comment on attachment 197821 [details] svn-diff-barnyard2_v2 Hello, the attached patch works when option BRO is activated, but fails when it is turned off. Regards,
Created attachment 197830 [details] svn-diff-barnyard2_v3 Third try.
Created attachment 197831 [details] svn-diff-barnyard2_all Tried to patch out all warnings (some tautological comparisons and other). I am not sure if everythings is right. Please check it.
Comment on attachment 197831 [details] svn-diff-barnyard2_all Compiles without BRO option, fails with it.
Compiles fine on my system with port or poudriere.
Please tell me the error message.
Well, we failed to apply the complete patch on previous try. By testing it again, we confirm it compiles correctly now with or without BRO option. Thank you for your work,
A commit references this bug: Author: bofh Date: Tue Jan 22 14:57:30 UTC 2019 New revision: 490954 URL: https://svnweb.freebsd.org/changeset/ports/490954 Log: security/barnyard2: fix compile with ooption BRO PR: 231265 Submitted by: freebsd@onyphe.io Changes: head/security/barnyard2/Makefile head/security/barnyard2/files/patch-decode.c head/security/barnyard2/files/patch-map.c head/security/barnyard2/files/patch-parser.c head/security/barnyard2/files/patch-spo__alert__fwsam.c head/security/barnyard2/files/patch-spo__alert__test.c head/security/barnyard2/files/patch-spo__alert__unixsock.c head/security/barnyard2/files/patch-spo__database.c head/security/barnyard2/files/patch-spo__database__cache.c head/security/barnyard2/files/patch-spo__syslog__full.c head/security/barnyard2/files/patch-spooler.c