From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Mar 5 07:52:31 2015 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2C45FF56 for ; Thu, 5 Mar 2015 07:52:31 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ECEFDCB5 for ; Thu, 5 Mar 2015 07:52:30 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t257qUM6002971 for ; Thu, 5 Mar 2015 07:52:30 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 198301] japanese/sj3-server sj3.c:1359: error: expected declaration or statement at end of input Date: Thu, 05 Mar 2015 07:52:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: yoshin-t@jp.fujitsu.com X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: hrs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Mar 2015 07:52:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198301 Bug ID: 198301 Summary: japanese/sj3-server sj3.c:1359: error: expected declaration or statement at end of input Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: hrs@FreeBSD.org Reporter: yoshin-t@jp.fujitsu.com Flags: maintainer-feedback?(hrs@FreeBSD.org) Assignee: hrs@FreeBSD.org Created attachment 153819 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=153819&action=edit FIXED japanese/sj3-server/files/post-patch-sj3-sj3.c # uname -r 8.4-RELEASE-p23 will end in build failure. sj3.c: In function 'clearutmpentry': sj3.c:1359: error: expected declaration or statement at end of input *** Error code 1 This is because '}' is missing in case of __FreeBSD_version <= 900006 void clearutmpentry () { /* XXX */ #if __FreeBSD_version <= 900006 int f; struct utmp Utmp; Utmp.ut_line[0] = '\0'; Utmp.ut_name[0] = '\0'; Utmp.ut_host[0] = '\0'; Utmp.ut_time = 0; if (Ttyslot > 0 && (f = open (_PATH_UTMP, 1)) >= 0) { lseek (f, (long) (Ttyslot * sizeof (Utmp)), 0); write (f, (char *)&Utmp, sizeof (Utmp)); close (f); } #else return; } #endif -- You are receiving this mail because: You are the assignee for the bug.