From owner-freebsd-ports@FreeBSD.ORG Mon Aug 11 13:12:44 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09EB01065670 for ; Mon, 11 Aug 2008 13:12:44 +0000 (UTC) (envelope-from wahjava@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.188]) by mx1.freebsd.org (Postfix) with ESMTP id 672B78FC13 for ; Mon, 11 Aug 2008 13:12:43 +0000 (UTC) (envelope-from wahjava@gmail.com) Received: by ti-out-0910.google.com with SMTP id d27so1012787tid.3 for ; Mon, 11 Aug 2008 06:12:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:cc:subject:x-face :references:x-uptime:x-url:x-openpgp-id:x-openpgp-fingerprint:x-os :x-mailer:x-mail-morse:x-attribution:organization:from:date :in-reply-to:message-id:user-agent:face:mime-version:content-type :sender; bh=+IDRwCO3KpLGDWUBoxiHBT8X9lHYYIlmjbyexzYrrm8=; b=A3kfS+QS59fVqBHCN7PmrH2U2VI9SOC4tGA7ulLJP5mWI33HoxUiXhISgT21OJkFYv B3G1Ceg/L6PVw8sbtTtY2pUNStmgKSjjsH+f/hVGfs/8K5whRe8VpZ3SW6E/YM/DF7R0 j+WJhMQrZsGqWEicbBh64cCL9XmdXJnnoZcdU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:cc:subject:x-face:references:x-uptime:x-url:x-openpgp-id :x-openpgp-fingerprint:x-os:x-mailer:x-mail-morse:x-attribution :organization:from:date:in-reply-to:message-id:user-agent:face :mime-version:content-type:sender; b=ItDkYYDg21Dqe3J1lvdobQlyOjx3CxGHi4m+CD99sseLnOmRo0WHH5JB05gH1qGMCj J8isQ80opLZvBgi6KgA5Whn5cw5qkViOymtQ8SFwR/u1aAzXRT+E2EoQPZ4Y/b+UOIsR bBf8xtiS9J42m7lLyxLHTVWqFAMvs6MtFJiuw= Received: by 10.110.15.19 with SMTP id 19mr9516309tio.59.1218460361733; Mon, 11 Aug 2008 06:12:41 -0700 (PDT) Received: from chateau.d.lf ( [122.163.146.128]) by mx.google.com with ESMTPS id d7sm2084411tib.4.2008.08.11.06.12.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 11 Aug 2008 06:12:40 -0700 (PDT) To: Jeremy Chadwick X-Face: )vGQ9yK7Y$Flebu1C>(B\gYBm)[$zfKM+p&TT[[JWl6:]S>cc$%-z7-`46Zf0B*syL.C]oCq[upTG~zuS0.$"_%)|Q@$hA=9{3l{%u^h3jJ^Zl; t7 References: <200808111538.09660.wahjava.ml@gmail.com> <20080811112119.GA20914@eos.sc1.parodius.com> <87ljz3sq02.fsf@chateau.d.lf> <20080811123719.GA23937@eos.sc1.parodius.com> X-Uptime: 18:38:46 up 2:07, 1 user, load average: 0.03, 0.02, 0.00 X-URL: http://wahjava.wordpress.com/ X-OpenPGP-ID: 762E5E74 X-OpenPGP-Fingerprint: 1E00 4679 77E4 F8EE 2E4B 56F2 1F2F 8410 762E 5E74 X-OS: GNU/Linux on Linux 2.6.25-gentoo-r7 kernel on x86_64 architecture X-Mailer: Gnus/5.11 (Oort 5.11) Emacs/22.2.1 (x86_64-pc-linux-gnu) X-Mail-Morse: .-- .- .... .--- .- ...- .- .--.-. --. -- .- .. .-.. .-.-.- -.-. --- -- X-Attribution: =?utf-8?B?4KSG4KS24KWA4KS3?= Organization: The Church of Emacs From: wahjava.ml@gmail.com (Ashish Shukla =?utf-8?B?4KSG4KS24KWA4KS3IA==?= =?utf-8?B?4KS24KWB4KSV4KWN4KSy?=) Date: Mon, 11 Aug 2008 18:43:56 +0530 In-Reply-To: <20080811123719.GA23937@eos.sc1.parodius.com> (Jeremy Chadwick's message of "Mon\, 11 Aug 2008 05\:37\:19 -0700") Message-ID: <87d4kfsnhn.fsf@chateau.d.lf> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJ1BMVEWpqal/f39tbW1jY2Md HR2goKCenp6UlJROTk7////9/f35+fnT09ORJdieAAACVklEQVQ4jXXUP2vbQBQA8AvUTkgz5OzY Z0iGWhpS6BSrkECn0mvx0MEJ6AjtYrfoBCVDlD8naJYmNlRfwZq8+mkKlIZaGpJSYmP7Q/XkJDrJ Td8i/H68u3vHPaPufwLdf32AMA4A6GcAgvAamY1pOJiDIFqicTwLswDhfr3uxfFtkAY/GFHPMwzD 8zpnACmIOnE6js7rQb+v4NJrG9od0C+QgpHMy5jBewV+UDSMWiw1Y4fWfyV7+NGFzDsYa3pth9LJ Q4XvXxFHcJRvHOmygn5NAEabnDcQQguarnfoiwSCJ99jmKKcphsZONmWsDK9Ro7cvZOCtQdg8nje egLhc2LNlkLmsezzTFUUy5w18ocox/f0LaLgJy0zO75zk+9pp85GAj36xjqhdI0y3tq2m4dqqcWX zQWBTz8L1irvolXV4J+3q7eCDgVnttjNq6X8H+9KOZsuNk1uCzx8pSp+E9HImfJOTLdcGqo+YKnG EIovizkEn48V7BO+ch2DXcD4ENSpWiU+q8hjjbgTBZCXnZtyj0Ws4Q1Q0B2WXFtYZo65Bbyeeldw RS6qFueM80LlLA29YlVwGRYvFD+kwI/0O+A2PlpOP9GwslUVciHuYGechuBTp922YiDZCrghTknm XSyOM+D3aoRZlo0Jb42zY7DN4p2x4AeZ+QAYutx1sHwTHzMT5cMNduQ9yW3GczN4KZ86kb0c9O8T yXDeFqpl2fryPEAYGXIlezAPXYh2NgVr/gvdoHIuDwuPwOhcWE8f8mmICq41eATkn8x0kuRTIKcB wE9+/QUtiiAnYcaN7wAAAABJRU5ErkJggg== MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Sender: =?UTF-8?B?4KSG4KS24KWA4KS3IOCktuClgeCkleCljeCksiBBc2hpc2ggU2h1a2xh?= Cc: freebsd-ports@freebsd.org Subject: Re: Is _environ present in 7.0-RELEASE ? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Aug 2008 13:12:44 -0000 --=-=-= Content-Type: text/plain; charset=utf-8 Jeremy Chadwick writes: > On Mon, Aug 11, 2008 at 05:49:41PM +0530, Ashish Shukla ???????????? ??????????????? wrote: >> Jeremy Chadwick writes: >> > On Mon, Aug 11, 2008 at 03:38:04PM +0530, Ashish Shukla wrote: >> >> [snip] >> >> >> The '__environ' symbol is also not defined. Can anyone hint me, what is misconfigured on my box ? >> >> > Something tells me this might interest you. See the most recent commit: >> >> > http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/stdlib/getenv.c >> >> Sorry, but I'm not able to figure out, what relevant stuff there is >> relevant here. I checked out the diff[1] (with the previous commit) and >> the recent commit 1.12.2.2[2], but not able to find anything >> relevant. Could you please elaborate, what are you trying to say ? > 1) The only variable exported to a process from libc is "environ", > not __environ or _environ. Look at src/lib/libc/stdlib/getenv.c for > an example, and confirmation. Yes, this is what I'm trying to say. But if you saw my libxine's config.log, there is a check in its configure script for presence of _environ variable, which is not present in 7.0-RELEASE at least. So, I'm wondering, why no one else received this error while building libxine port. > 2) Your code assigns environ = NULL, which is why I felt the above > commit has relevancy to you. You should be aware that there are many > different conditions where clearing environ on FreeBSD behaves > differently compared to other OSes; the commit makes it compatible with > pretty much everything. nop, that is just a simple test case, and my aim of assigning NULL to force compiler to generate code referencing 'environ' variable. So, should I file a PR for this ? Thanks for the reply, Ashish -- ·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- -- --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkigOxgACgkQHy+EEHYuXnTcpACgqV29BDotXaf9TKfhaLT+2hJt UzUAoIBU3kvLk9wK6FTJn0nxDQgoM6pQ =kEGm -----END PGP SIGNATURE----- --=-=-=--