From owner-freebsd-current Mon Jan 20 17:49: 5 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CD5E37B407; Mon, 20 Jan 2003 17:49:03 -0800 (PST) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 88DA443EB2; Mon, 20 Jan 2003 17:49:02 -0800 (PST) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.12.6/8.12.6) with ESMTP id h0L1n1ro016795 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 20 Jan 2003 20:49:01 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id h0L1muH87466; Mon, 20 Jan 2003 20:48:56 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15916.42760.152912.977008@grasshopper.cs.duke.edu> Date: Mon, 20 Jan 2003 20:48:56 -0500 (EST) To: Hajimu UMEMOTO Cc: David Malone , current@FreeBSD.org, emulation@FreeBSD.org Subject: Re: [CFR] IPv6 support for Linux sym In-Reply-To: References: <20030119195957.GA54865@walton.maths.tcd.ie> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hajimu UMEMOTO writes: > dwmalone> 2) The patches wouldn't compile on the alpha 'cos of some > dwmalone> ifdefs in the linux emulation code. I just hadn't got around > dwmalone> to resolving this. > > Oops, thank you for pointing this out. It seems that other than > linux_connect() are ifdef'ed by __alpha__. Is it right? Is there any > problem removing #ifdef __alpha__ and compiling the codes in on > FreeBSD/Alpha? > The ifdefs are there because the linux hack^W OS uses a different syscall table on each platform, with a different ABI (eg, the same syscall may take 3 args on x86 and 2 on alpha). They basically never cleaned up after bootstrapping themselves from OSF/1. The #ifndef alpha code is not compiled because it will never be referred to on the alpha.. The osf1 compat code is a much better match for the linux networking syscalls, so that's what's used. On alpha, the linux compat module depends on the osf1 compat module.. Naively, I'm uncertain why you're having compilation problems on alpha, since the code is just ifdef'ed out there anyway ;) Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message