<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2005/05/d59623d3755a0d44964cb71dace1dc3b"
  from="skaller &lt;skaller@u...&gt;"
  author="skaller"
  date="2005-05-17T06:52:37"
  subject="Re: [Caml-list] Re: Problems linking in an object file produced with &quot;ocamlopt -c -output-obj&quot;"
  prev="2005/05/e3905eefb5bca0ae534f009bbd2727b0"
  next="2005/05/ad6da15ccfaa0e7a0955bc9273bde7dc"
  prev-in-thread="2005/05/e3905eefb5bca0ae534f009bbd2727b0"
  next-in-thread="2005/05/98050f94f904b8d69aaf978125ce24d7"
  prev-thread="2005/05/2332def498bd48c8285be502f031bd55"
  next-thread="2005/05/fb149c55b4bdd275dae03fa8bb05efd4"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Problems linking in an object file produced with &quot;ocamlopt -c -output-obj&quot;">
<msg 
  url="2005/05/2f636794b2f8de3ed225621330e47449"
  from="Corey O&apos;Connor &lt;coreyoconnor@g...&gt;"
  author="Corey O&apos;Connor"
  date="2005-05-16T18:31:43"
  subject="Problems linking in an object file produced with &quot;ocamlopt -c -output-obj&quot;">
<msg 
  url="2005/05/e3905eefb5bca0ae534f009bbd2727b0"
  from="Corey O&apos;Connor &lt;coreyoconnor@g...&gt;"
  author="Corey O&apos;Connor"
  date="2005-05-17T06:14:26"
  subject="Re: Problems linking in an object file produced with &quot;ocamlopt -c -output-obj&quot;">
<msg 
  url="2005/05/d59623d3755a0d44964cb71dace1dc3b"
  from="skaller &lt;skaller@u...&gt;"
  author="skaller"
  date="2005-05-17T06:52:37"
  subject="Re: [Caml-list] Re: Problems linking in an object file produced with &quot;ocamlopt -c -output-obj&quot;">
<msg 
  url="2005/05/98050f94f904b8d69aaf978125ce24d7"
  from="Marcin &apos;Qrczak&apos; Kowalczyk &lt;qrczak@k...&gt;"
  author="Marcin &apos;Qrczak&apos; Kowalczyk"
  date="2005-05-18T08:03:09"
  subject="Re: [Caml-list] Re: Problems linking in an object file produced with &quot;ocamlopt -c -output-obj&quot;">
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
On Tue, 2005-05-17 at 16:14, Corey O'Connor wrote:
&gt; &gt; _caml_atom_table
&gt; &gt; _caml_static_data_end
&gt; &gt; _caml_static_data_start
&gt; &gt; _caml_code_area_end
&gt; &gt; _caml_code_area_start
&gt; 
&gt; Umm.. Well. I changed asmrun/startup.c from:
&gt; char * caml_static_data_start, * caml_static_data_end;
&gt; char * caml_code_area_start, * caml_code_area_end;
&gt; 
&gt; To:
&gt; char * caml_static_data_start, * caml_static_data_end = NULL;
&gt; char * caml_code_area_start, * caml_code_area_end = NULL;
&gt; 
&gt; And *poof*, the errors went away. 
&gt; 
&gt; This is under Mac OS X 10.4 for what it's worth. Maybe something
&gt; changed with GCC 4.0 effecting the export of extern variables with no
&gt; initializers?

See ISO C99, 6.9.2./1

Variables with external linkage must be defined exactly
once (if they're used) or at most once (if they're not).

The above fragments do not constitute an external
definition, an initialiser is required for that.

The Ocaml sources are incorrect, you patch fixes them.
This should go in the bug tracker. 

-- 
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850, 
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net



</contents>

</message>

