From owner-freebsd-arch@FreeBSD.ORG Sat Mar 27 01:43:58 2010 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCFA31065672; Sat, 27 Mar 2010 01:43:58 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [IPv6:2001:470:a803::1]) by mx1.freebsd.org (Postfix) with ESMTP id 823058FC24; Sat, 27 Mar 2010 01:43:58 +0000 (UTC) Received: from mail.geekcn.org (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id 98D15A5643B; Sat, 27 Mar 2010 09:43:56 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by mail.geekcn.org (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with LMTP id l4PnWyQCnquX; Sat, 27 Mar 2010 09:43:49 +0800 (CST) Received: from delta.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id D6759A5514B; Sat, 27 Mar 2010 09:43:46 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=BCUummhlLxINy0+9mDgRxyHYy/F22D7yOlELcZTXq4LDGKbzg7s42G/eKpHpVOInW vEGdRnW8NVdYxIZY2zXLA== Message-ID: <4BAD62CF.6090901@delphij.net> Date: Fri, 26 Mar 2010 18:43:43 -0700 From: Xin LI Organization: The Geek China Organization User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.8) Gecko/20100304 Thunderbird/3.0.3 ThunderBrowse/3.2.8.1 MIME-Version: 1.0 To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= References: <4BACFE18.7010309@delphij.net> <86wrwylji0.fsf@ds4.des.no> <4BAD509B.3080805@delphij.net> <86ljdelhgd.fsf@ds4.des.no> In-Reply-To: <86ljdelhgd.fsf@ds4.des.no> X-Enigmail-Version: 1.0.1 OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: ports@freebsd.org, d@delphij.net, the_paya@gentoo.org, Alexander Logvinov , freebsd-arch@freebsd.org Subject: Re: [RFC] Reduce namespace pollution on zlib.h X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Mar 2010 01:43:59 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2010/03/26 17:46, Dag-Erling Smørgrav wrote: > Xin LI writes: >> The problem is that some third party software thinks that they need to >> define _LARGEFILE64_*, which will break zlib.h on FreeBSD :( > > Then that third-party software is broken and needs to be fixed. > > _LARGEFILE64_SOURCE is (supposed to be) used to expose the stat64() API. > FreeBSD does not have stat64(). Any application that defines it and > then calls stat() instead of stat64() is broken to begin with. Any > application that defines it and then calls stat64() will not compile on > FreeBSD. > > See sections 3.3.2 and 3.1 of this document: > > http://www.unix.org/version2/whatsnew/lfs20mar.html > > On Linux, it's a no-op, because while the kernel has separate 32-bit > stat() and 64-bit stat64() syscalls, glibc aliases stat() to stat64(). So... May I consider my import just exposed some existing bugs in other applications and we don't want to workaround these issues? I'm sort of feeling guilty for making the transition path hard, though... Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iQEcBAEBAgAGBQJLrWLPAAoJEATO+BI/yjfBJAcH/0WLPx5wiV/5ue4ZmmdPojMi bxK0XneEwO56bJMOJHg6qxBqwwBm3egabq1abkRYLdOVwoXc9hiGAdVJjjymJ3lz xJWV23XpLHzso9z3Ev33virj32+Br++zsucdh5aEmC0YvdpvFDQUiU9LUNIErf/g bjqzrapugiEkrL8xD2Maq5F+OdeMPOV3HXMjU39RpyRKVTfIkG4tfL8wDmBD/KAI 7byS1syUqDP2uvIvHmO2R3lFrto6cjwRhn38Y51XOQpu/Wvrp6KEKX47/vFBUjwE JHPIGlbkoo3LezPjE+Sv6I4+MAsNncmyol5jKGAxmfe9wNjkHs3Br/AyPGbNCyI= =00ta -----END PGP SIGNATURE-----