From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 65308BCAC for ; Tue, 17 May 2005 08:14:26 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j4H6EPcE029261 for ; Tue, 17 May 2005 08:14:26 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id IAA28049 for ; Tue, 17 May 2005 08:14:25 +0200 (MET DST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.200]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j4H6EOa6029258 for ; Tue, 17 May 2005 08:14:25 +0200 Received: by zproxy.gmail.com with SMTP id 34so1524995nzf for ; Mon, 16 May 2005 23:14:24 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=T7JJHdeyohXOlueb8cuH5CIaqlUUR7HkAwwKYDyuuF43y/16Ta/YAJgl58LSisMXHR8mv3hS21A0Bwr+j+6F3fGPPeQ20ALVj9R/SxR+ebv37NlZZtdCBbeaLzHUMk70Kx0DnODJSrtfYjyvOVICiE0pRPLeLquDFzEQL8ohL+k= Received: by 10.36.146.12 with SMTP id t12mr2036224nzd; Mon, 16 May 2005 23:14:24 -0700 (PDT) Received: by 10.36.79.10 with HTTP; Mon, 16 May 2005 23:14:24 -0700 (PDT) Message-ID: Date: Mon, 16 May 2005 23:14:24 -0700 From: "Corey O'Connor" Reply-To: "Corey O'Connor" To: Ocaml Subject: Re: Problems linking in an object file produced with "ocamlopt -c -output-obj" In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Miltered: at nez-perce with ID 42898BC2.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 42898BC0.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocamlopt:01 -output-obj:01 asmrun:01 char:01 char:01 gcc:01 extern:01 corey:98 poof:98 data:02 data:02 caml:02 caml:02 variables:02 linking:03 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.2 X-Spam-Level: > _caml_atom_table > _caml_static_data_end > _caml_static_data_start > _caml_code_area_end > _caml_code_area_start Umm.. Well. I changed asmrun/startup.c from: char * caml_static_data_start, * caml_static_data_end; char * caml_code_area_start, * caml_code_area_end; To: char * caml_static_data_start, * caml_static_data_end =3D NULL; char * caml_code_area_start, * caml_code_area_end =3D NULL; And *poof*, the errors went away.=20 This is under Mac OS X 10.4 for what it's worth. Maybe something changed with GCC 4.0 effecting the export of extern variables with no initializers? -Corey O'Connor