From owner-freebsd-libh Wed Sep 25 16:33:49 2002 Delivered-To: freebsd-libh@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CBD137B401 for ; Wed, 25 Sep 2002 16:33:46 -0700 (PDT) Received: from aeimail.aei.ca (aeimail.aei.ca [206.123.6.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id A1B2F43E6A for ; Wed, 25 Sep 2002 16:33:45 -0700 (PDT) (envelope-from anarcat@anarcat.ath.cx) Received: from shall.anarcat.ath.cx (shvlgyonbhty4bk0@hv-hs-38-172.aei.ca [216.221.38.172]) by aeimail.aei.ca (8.11.6/8.10.1) with ESMTP id g8PNXd307721; Wed, 25 Sep 2002 19:33:40 -0400 (EDT) Received: from lenny.anarcat.ath.cx (lenny.anarcat.ath.cx [192.168.0.4]) by shall.anarcat.ath.cx (Postfix) with SMTP id 27C9934C; Wed, 25 Sep 2002 19:37:32 -0400 (EDT) Received: by lenny.anarcat.ath.cx (sSMTP sendmail emulation); Wed, 25 Sep 2002 19:32:46 -0400 Date: Wed, 25 Sep 2002 19:32:46 -0400 From: The Anarcat To: Alexander Langer Cc: Alexander Langer , freebsd-libh@FreeBSD.ORG Subject: Re: cvs commit: libh/bin/tclh Makefile tclh.cc libh/include Log.hh Pointer.hh ProgressIndicator.hh String.hh limits libh/include/database DatabaseEngineDb185.hh libh/include/file Archive.hh libh/include/hui Hui.hh libh/lib/common ... Message-ID: <20020925233246.GC37362@lenny.anarcat.ath.cx> Mail-Followup-To: The Anarcat , Alexander Langer , Alexander Langer , freebsd-libh@FreeBSD.ORG References: <200209252218.g8PMIpki042647@rtp1.SlowBlink.Com> <20020925222648.GD41575@fump.kawo2.rwth-aachen.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="69pVuxX8awAiJ7fD" Content-Disposition: inline In-Reply-To: <20020925222648.GD41575@fump.kawo2.rwth-aachen.de> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --69pVuxX8awAiJ7fD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I wonder if this[1] is related. This is probably fixable. I really don't know where that darn limits file is in GCC 3.x though, locate(1) doesn't seem to find it anywhere. What's really odd is that this worked before, and that Dim.hh has never been changed. Oh well, I guess it's make CC=3Dgcc31 CXX=3Dg++31 from now on. A. [1]: -------------------------------------------------------------- >> Building none (no TVision or Qt) -------------------------------------------------------------- mkdir -p /usr/home/anarcat/libh/compile/none =3D=3D=3D> hui c++ -pipe -g -I/usr/local/include/tcl8.3 -fpic -DPIC -I/usr/home/anarcat/l= ibh/lib/hui/../../include -Wall -c /usr/home/anarcat/libh/lib/hui/Hui.cc -= o Hui.o In file included from /usr/home/anarcat/libh/lib/hui/../../include/hui/Hui.= hh:43, from /usr/home/anarcat/libh/lib/hui/Hui.cc:37: /usr/home/anarcat/libh/lib/hui/../../include/hui/Dim.hh:37: limits: No such= file or directory In file included from /usr/home/anarcat/libh/lib/hui/../../include/hui/Hui.= hh:43, from /usr/home/anarcat/libh/lib/hui/Hui.cc:37: /usr/home/anarcat/libh/lib/hui/../../include/hui/Dim.hh: In function `stati= c Dimension Size::maxWidth()': /usr/home/anarcat/libh/lib/hui/../../include/hui/Dim.hh:185: `numeric_limit= s' undeclared (first use this function) /usr/home/anarcat/libh/lib/hui/../../include/hui/Dim.hh:185: (Each undeclar= ed identifier is reported only once /usr/home/anarcat/libh/lib/hui/../../include/hui/Dim.hh:185: for each funct= ion it appears in.) /usr/home/anarcat/libh/lib/hui/../../include/hui/Dim.hh:185: syntax error b= efore `>' /usr/home/anarcat/libh/lib/hui/../../include/hui/Dim.hh:186: warning: contr= ol reaches end of non-void function `Size::maxWidth()' /usr/home/anarcat/libh/lib/hui/../../include/hui/Dim.hh: In function `stati= c Dimension Size::maxHeight()': /usr/home/anarcat/libh/lib/hui/../../include/hui/Dim.hh:191: syntax error b= efore `>' /usr/home/anarcat/libh/lib/hui/../../include/hui/Dim.hh:192: warning: contr= ol reaches end of non-void function `Size::maxHeight()' *** Error code 1 On Thu Sep 26, 2002 at 12:26:48AM +0200, Alexander Langer wrote: > Thus spake Alexander Langer (alex@rtp1.SlowBlink.Com): >=20 > > Fix build with GCC 3.x >=20 > This probably breaks builds with gcc 2.x, but only because gcc 2.x > doesn't comform to the C++ standards. >=20 > I suggest we only use GCC 3.x from now. >=20 > Btw, this fix includes a lot of ugly hacks, e.g. the additional public: > declarations in Hui.hh, but I saw no other, cleaner, way. They have to > be public anyways, since they are used elsewhere. >=20 > Alex >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-libh" in the body of the message >=20 --=20 Premature optimization is the root of all evil - Donald Knuth --69pVuxX8awAiJ7fD Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9kkedttcWHAnWiGcRAo9CAKCg//A+kr7YgI+aEX5yYPpccCTMuACdHwLD dmbG0Az9xEpcMfdiTI4Ekug= =K0qS -----END PGP SIGNATURE----- --69pVuxX8awAiJ7fD-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message