<?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/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;"
  prev="2005/05/fb149c55b4bdd275dae03fa8bb05efd4"
  next="2005/05/d59623d3755a0d44964cb71dace1dc3b"
  prev-in-thread="2005/05/2f636794b2f8de3ed225621330e47449"
  next-in-thread="2005/05/d59623d3755a0d44964cb71dace1dc3b"
  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>
&gt; _caml_atom_table
&gt; _caml_static_data_end
&gt; _caml_static_data_start
&gt; _caml_code_area_end
&gt; _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 = NULL;
char * caml_code_area_start, * caml_code_area_end = NULL;

And *poof*, the errors went away. 

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

</contents>

</message>

