From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id 97A807ED47 for ; Fri, 20 Jul 2012 19:13:39 +0200 (CEST) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of ml@pulsschlag.net) identity=pra; client-ip=194.95.184.44; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="ml@pulsschlag.net"; x-sender="ml@pulsschlag.net"; x-conformance=sidf_compatible Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of ml@pulsschlag.net) identity=mailfrom; client-ip=194.95.184.44; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="ml@pulsschlag.net"; x-sender="ml@pulsschlag.net"; x-conformance=sidf_compatible Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mailhost.mis.mpg.de) identity=helo; client-ip=194.95.184.44; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="ml@pulsschlag.net"; x-sender="postmaster@mailhost.mis.mpg.de"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgwKAB2RCVDCX7gs/2dsb2JhbABFuBsDgSSBB4IgAQEEAXkFCwsSBhwSSQ4GiBoKvxOLTmWFG2ADjXCIaIl3hQCCYQ X-IronPort-AV: E=Sophos;i="4.77,623,1336341600"; d="scan'208";a="151287200" Received: from mailhost.mis.mpg.de ([194.95.184.44]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 20 Jul 2012 19:13:38 +0200 Received: from twww.mis.mpg.de (twww.mis.mpg.de [194.95.185.34]) by mailhost.mis.mpg.de (8.13.8/8.13.8) with ESMTP id q6KHDaaN001056; Fri, 20 Jul 2012 19:13:36 +0200 (MEST) Received: from phoenix.fritz.box (brln-4dbc2c3a.pool.mediaWays.net [77.188.44.58]) (authenticated bits=0) by twww.mis.mpg.de (8.14.4/8.14.4) with ESMTP id q6KHDaon020729 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO); Fri, 20 Jul 2012 19:13:38 +0200 (MEST) Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=iso-8859-1 From: Keyan In-Reply-To: <5009880D.8000005@inria.fr> Date: Fri, 20 Jul 2012 19:13:31 +0200 Cc: caml-list@inria.fr Content-Transfer-Encoding: quoted-printable Message-Id: <2F636BDB-7F60-44C4-A9E4-B0D7E2A6BE45@pulsschlag.net> References: <811EC13F-3683-4DDC-A780-00630A109559@pulsschlag.net> <5009880D.8000005@inria.fr> To: Xavier Leroy X-Mailer: Apple Mail (2.1278) X-MIS-Check-Sender: OK, user zahedi() has authenticated himself with PLAIN. Subject: Re: [Caml-list] Bug in libunix.a + Patch Hi, I will post it on the bug tracker too. My setting is: Mac OS X 10.7.4 gcc version: i686-apple-darwin11-llvm-gcc-4.2 ocaml 3.12.1 Xcode 4.3.3 (4E3002) I don't develop in Xcode, but use makefiles instead. Homebrew was used to i= nstall ocaml. The error only occurs when linking to a dynamic lib, not when I link agains= t an executable (main loop in c). Best, Keyan On 20 Jul 2012, at 18:32, Xavier Leroy wrote: > On 07/20/2012 04:45 PM, Keyan wrote: >=20 >> _envrion was not found, when linking libunix.a to a library on Mac > OS X: >>=20 >> Undefined symbols for architecture x86_64: >> "_environ", referenced from: >> _unix_execvpe in libunix.a(execvp.o) >> _unix_environment in libunix.a(envir.o) >=20 > At the risk of sounding like a broken record, could you please file a > report on our bug tracker: > http://caml.inria.fr/mantis/ > It's the best way to ensure that the issue will not slip past our radar. >=20 > Also, please tell us which versions of MacOS X and of Xcode you're using. >=20 > Because this sounds very much like a bug in the C library or in the > linker: the "environ" variable is standardized as part of POSIX and > derived standard like the Single Unix Specification, and MacOS X has > been very very good so far at following POSIX standards. >=20 > - Xavier Leroy