From e433db1745fdfb3edd3d511bb28222064e30a44b Mon Sep 17 00:00:00 2001 From: Alexander Leidinger Date: Thu, 30 Oct 2003 14:09:29 +0000 Subject: From the submitter: ---snip--- The security/nmap port (currently at 3.48, but previous versions also had this problem) triggers a bug in GCC 3.3.1 on FreeBSD/sparc64 which causes the compilation of the port to fail. The GCC bug itself is know and AFAIK Thomas Moestl (tmm@freebsd.org) tried to get a fix for it in upstream GCC. However, I didn't see an entry in the release notes of GCC 3.3.2 that would suggest that it has been fixed there. Another port that has a workaround for this particular GCC bug is e.g. x11/XFree86-4-libraries (files/patch-XRes.c). ---snip--- PR: 58698 Submitted by: Marius Strobl Approved by: maintainer --- security/nmap/files/patch-nsock::src::nsock_event.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 security/nmap/files/patch-nsock::src::nsock_event.c (limited to 'security') diff --git a/security/nmap/files/patch-nsock::src::nsock_event.c b/security/nmap/files/patch-nsock::src::nsock_event.c new file mode 100644 index 000000000000..e2b50646b66d --- /dev/null +++ b/security/nmap/files/patch-nsock::src::nsock_event.c @@ -0,0 +1,13 @@ +--- nsock/src/nsock_event.c.orig Fri Oct 3 15:33:05 2003 ++++ nsock/src/nsock_event.c Fri Oct 3 15:32:31 2003 +@@ -242,8 +242,9 @@ + int type_code = (int) type; + unsigned long serial = ms->next_event_serial++; + unsigned long max_serial_allowed; +- int shiftbits = sizeof(nsock_event_id) * 8 - TYPE_CODE_NUM_BITS; ++ int shiftbits; + assert(type <= 3); ++ shiftbits = sizeof(nsock_event_id) * 8 - TYPE_CODE_NUM_BITS; + + max_serial_allowed = ( 1 << shiftbits ) - 1; + if (serial == max_serial_allowed ) { -- cgit v1.2.3