From owner-freebsd-ports Tue Aug 6 11:28:21 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6EE9837B400; Tue, 6 Aug 2002 11:28:18 -0700 (PDT) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7478C43E70; Tue, 6 Aug 2002 11:28:17 -0700 (PDT) (envelope-from keramida@FreeBSD.org) Received: from hades.hell.gr (patr530-b149.otenet.gr [212.205.244.157]) by mailsrv.otenet.gr (8.12.4/8.12.4) with ESMTP id g76IS7PL029588; Tue, 6 Aug 2002 21:28:10 +0300 (EEST) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.5/8.12.5) with ESMTP id g76IS5Xj001219; Tue, 6 Aug 2002 21:28:05 +0300 (EEST) (envelope-from keramida@FreeBSD.org) Received: (from charon@localhost) by hades.hell.gr (8.12.5/8.12.5/Submit) id g76IS5ed001215; Tue, 6 Aug 2002 21:28:05 +0300 (EEST) (envelope-from keramida@FreeBSD.org) Date: Tue, 6 Aug 2002 21:27:48 +0300 From: Giorgos Keramidas To: Christian Weisgerber Cc: freebsd-ports@FreeBSD.org Subject: Re: ports/39147: minor editors/emacs20 build problem Message-ID: <20020806182747.GA659@hades.hell.gr> References: <200207292205.g6TM5Crs085530@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0OAP2g/MAC+5xKAE" Content-Disposition: inline In-Reply-To: <200207292205.g6TM5Crs085530@freefall.freebsd.org> X-Operating-System: FreeBSD 5.0-CURRENT i386 X-PGP-Fingerprint: C1EB 0653 DB8B A557 3829 00F9 D60F 941A 3186 03B6 X-Phone: +30-944-116520 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On 2002-07-29 15:05 +0000, Christian Weisgerber wrote: > Synopsis: minor editors/emacs20 build problem > > State-Changed-From-To: open->closed > State-Changed-By: naddy > State-Changed-When: Mon Jul 29 14:59:08 PDT 2002 > State-Changed-Why: > I removed the sys_nerr declaration from emacs.c. I don't see how this > could cause trouble. > > http://www.freebsd.org/cgi/query-pr.cgi?pr=39147 Thanks for taking care of this. The redeclaration wouldn't cause any problems, if it used the same type for sys_nerr[] as is already used in the system headers. The first declaration of sys_nerr[] that conflicted comes from stdio.h: root@hades[21:20]/usr/include# grep -n sys_nerr stdio.h 238:extern __const int sys_nerr; /* perror(3) external variables */ The sources of Emacs contain a redeclaration of sys_nerr which doesn't match this type: root@hades[21:25]/var/tmp# grep -n sys_nerr emacs-20.7/src/emacs.c 605: extern int sys_nerr; The missing `__const' caused the type mismatch, which in my case was fatal because I had enabled -Werror for some test builds and forgot about it. - Giorgos --0OAP2g/MAC+5xKAE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9UBUi1g+UGjGGA7YRAhkEAKCz2OXp2brwZQUCBooPVPvIZn3VfgCdExux lDE2B0NOaCjjcZqzgXNBhg8= =JCXl -----END PGP SIGNATURE----- --0OAP2g/MAC+5xKAE-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message