From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id B9A557EE6B for ; Sun, 24 Nov 2013 09:56:13 +0100 (CET) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of nick@mykola.org) identity=pra; client-ip=62.149.13.57; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="nick@mykola.org"; x-sender="nick@mykola.org"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of nick@mykola.org) identity=mailfrom; client-ip=62.149.13.57; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="nick@mykola.org"; x-sender="nick@mykola.org"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mykola.org) identity=helo; client-ip=62.149.13.57; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="nick@mykola.org"; x-sender="postmaster@mykola.org"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap4EACy+kVI+lQ05/2dsb2JhbABZgz++JXSCZmx9FIgYnyGfYZIugRMDjzmIW4EwhRSLToMq X-IPAS-Result: Ap4EACy+kVI+lQ05/2dsb2JhbABZgz++JXSCZmx9FIgYnyGfYZIugRMDjzmIW4EwhRSLToMq X-IronPort-AV: E=Sophos;i="4.93,761,1378850400"; d="scan'208";a="37538683" Received: from beobachter.cc.colocall.com (HELO mykola.org) ([62.149.13.57]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 24 Nov 2013 09:56:12 +0100 Received: from [10.0.1.2] ([193.34.217.150]) (authenticated bits=0) by mykola.org (8.14.6/8.14.5) with ESMTP id rAO8uq8Y047292 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Sun, 24 Nov 2013 10:56:55 +0200 (EET) (envelope-from nick@mykola.org) From: Mykola Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: Date: Sun, 24 Nov 2013 10:56:06 +0200 To: OCaml Mailing List Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) X-Mailer: Apple Mail (2.1822) Subject: [Caml-list] OS X linking problem Hi all, A strange thing found: ocamlopt can't link against some libraries on my OS = X with the following errors: Undefined symbols for architecture x86_64: "_caml_atom_table", referenced from: _intern_alloc in libasmrun.a(intern.o) _intern_rec in libasmrun.a(intern.o) _caml_make_vect in libasmrun.a(array.o) _caml_array_gather in libasmrun.a(array.o) _caml_alloc in libasmrun.a(alloc.o) _caml_alloc_array in libasmrun.a(alloc.o) _caml_alloc_dummy in libasmrun.a(alloc.o) ... "_caml_code_area_end", referenced from: _segv_handler in libasmrun.a(signals_asm.o) "_caml_code_area_start", referenced from: _segv_handler in libasmrun.a(signals_asm.o) All of such libraries could be found by the following commands: % cat test.ml let _ =3D Printf.printf "Compiled!!!\n" % list=3D(`(ls /usr/lib; ls /usr/local/lib; ls /usr/local/lib/ocaml) | grep= '^lib' | sed -e 's/\.[^.]+$//' -e 's/^lib//' | sort -u`) % for i in $list; do echo -n "$i ... "; ocamlopt -cclib -l$i -o test test.m= l > $i.log 2>&1; if [[ $? -eq 0 ]]; then rm $i.log; echo OK; else echo FAIL= ED; fi; done % grep atom_table *.log Could somebody tell me where is the problem? And what do I have to do if I = need to link against one of such libraries?=