From owner-freebsd-hackers Fri Feb 14 8:15:26 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4AE5737B401 for ; Fri, 14 Feb 2003 08:15:25 -0800 (PST) Received: from mta07-svc.ntlworld.com (mta07-svc.ntlworld.com [62.253.162.47]) by mx1.FreeBSD.org (Postfix) with ESMTP id D610943F75 for ; Fri, 14 Feb 2003 08:15:23 -0800 (PST) (envelope-from colin.percival@wadham.ox.ac.uk) Received: from piii600.wadham.ox.ac.uk ([81.103.196.4]) by mta07-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20030214161522.GLPP3191.mta07-svc.ntlworld.com@piii600.wadham.ox.ac.uk>; Fri, 14 Feb 2003 16:15:22 +0000 Message-Id: <5.0.2.1.1.20030214155843.03e92e80@popserver.sfu.ca> X-Sender: cperciva@popserver.sfu.ca X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Fri, 14 Feb 2003 16:15:16 +0000 To: freebsd-hackers@FreeBSD.ORG From: Colin Percival Subject: Re: libobjc wierdness Cc: Chad David In-Reply-To: <5.0.2.1.1.20021217071753.02d1c4f8@popserver.sfu.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Back in December, I was trying to work out why libobjc always compiled differently. Now that I've worked it out, I thought I'd report back (mostly for the archives). It turns out that the variability is caused by gcc's mechanism for creating a unique name; when a file doesn't contain any programmer defined global names, gcc generates one from the file name and some extra stuff. In gcc 2.95.4, this extra stuff is based on the time and pid; in later versions, it is based on the inode's device, number, and file modification time; and Nathan Sidwell has a patch which simply uses the full path of the file. Applying his patch (with some minor changes to make it fit 2.95.4), I've now got libobjc consistently building to the same file (apart from the easily handled library index). Colin Percival To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message