From owner-freebsd-bugs Tue Jan 18 1:10: 7 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 80C9314D69 for ; Tue, 18 Jan 2000 01:10:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id BAA91596; Tue, 18 Jan 2000 01:10:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from lark.websci.ru (olga.websci.ru [212.164.55.71]) by hub.freebsd.org (Postfix) with ESMTP id 94DD5152A7 for ; Tue, 18 Jan 2000 01:02:37 -0800 (PST) (envelope-from fjoe@lark.websci.ru) Received: (from fjoe@localhost) by lark.websci.ru (8.9.3/8.9.3) id PAA67829; Tue, 18 Jan 2000 15:02:22 +0600 (NOVT) (envelope-from fjoe) Message-Id: <200001180902.PAA67829@lark.websci.ru> Date: Tue, 18 Jan 2000 15:02:22 +0600 (NOVT) From: Max Khon Reply-To: fjoe@lark.websci.ru To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/16170: compiling machine/setjmp.h with g++ Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 16170 >Category: kern >Synopsis: compiling machine/setjmp.h with g++ >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jan 18 01:10:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Max Khon >Release: FreeBSD 4.0-CURRENT i386 >Organization: WebSci Technologies Inc. >Environment: lark:~$uname -a FreeBSD lark.websci.ru 4.0-CURRENT FreeBSD 4.0-CURRENT #4: Fri Jan 14 10:26:27 NOVT 2000 fjoe@lark.websci.ru:/usr/src/sys/compile/lark i386 lark:~$g++ -v Using builtin specs. gcc version 2.95.2 19991024 (release) lark:~$ >Description: C++ does not like tagless symbols >How-To-Repeat: sample program: --- cut here --- #include int foo(jmp_buf *j) { } --- cut here --- lark:~$g++ -c foo.cc foo.cc:4: non-local function `int foo({anonymous struct} (*)[1])' uses anonymous type lark:~$ >Fix: *** setjmp.h.orig Tue Jan 18 14:52:29 2000 --- setjmp.h Tue Jan 18 14:51:53 2000 *************** *** 40,46 **** * internally to avoid some run-time errors for mismatches. */ #ifndef _ANSI_SOURCE ! typedef struct { int _sjb[_JBLEN + 1]; } sigjmp_buf[1]; #endif /* not ANSI */ ! typedef struct { int _jb[_JBLEN + 1]; } jmp_buf[1]; --- 40,46 ---- * internally to avoid some run-time errors for mismatches. */ #ifndef _ANSI_SOURCE ! typedef struct _sigjmp_buf { int _sjb[_JBLEN + 1]; } sigjmp_buf[1]; #endif /* not ANSI */ ! typedef struct _jmp_buf { int _jb[_JBLEN + 1]; } jmp_buf[1]; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message