From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id DAFBABC0B for ; Sat, 3 Feb 2007 01:21:47 +0100 (CET) Received: from hub.hrl.com (hub.hrl.com [208.179.241.200]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l130LkwM002717 for ; Sat, 3 Feb 2007 01:21:47 +0100 Received: from [192.27.172.110] (dangle.hrl.com [192.27.172.110]) by hpux03.hrl.com (iPlanet Messaging Server 5.2 HotFix 2.10 (built Dec 26 2005)) with ESMTP id <0JCV000E22C98U@hpux03.hrl.com> for caml-list@inria.fr; Fri, 02 Feb 2007 16:21:45 -0800 (PST) Date: Fri, 02 Feb 2007 16:21:45 -0800 From: Aleksey Nogin Subject: Re: [Caml-list] ocamlc vs ocamlc.opt? In-reply-to: <45C11557.10704@rftp.com> To: Robert Roessler Cc: Caml List Reply-To: Caml List , Aleksey Nogin Message-id: <45C3D599.9080101@metaprl.org> Organization: MetaPRL/Mojave Research Group MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT User-Agent: Thunderbird 1.5.0.9 (X11/20061215) References: <45C11557.10704@rftp.com> X-Miltered: at concorde with ID 45C3D59A.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocamlc:01 ocamlc:01 bytecode:01 findlib:01 ocamlfind:01 lablgtk:01 -thread:01 threads:01 lablgtk:01 gtkinit:01 cmo:01 usr:01 lib:01 ocaml:01 stublibs:01 On 31.01.2007 14:16, Robert Roessler wrote: > I just ran into a problem where building a bytecode executable failed > with findlib ("ocamlfind ocamlc ...") but the equivalent non-findlib > command worked. Then I saw that I could force the same error message in > my non-findlib build by just matching findlib's ocamlc.opt, while I had > used ocamlc. > > The command line is: > ocamlc -o bait -I +lablgtk2 -I +lablscintilla -thread threads.cma > lablgtk.cma gtkInit.cmo scintilla.cma bait.ml > > which works fine. Changing ocamlc to ocamlc.opt yields: > Error on dynamically loaded library: > /usr/lib/ocaml/stublibs/dlllablscintilla.so: undefined symbol: > caml_names_of_builtin_cprim > > This is on FC6, with a Yum-installed OCaml 3.09.3 package. Both of the > versions of the compiler identify themselves as 3.09.3 with the same > standard library location, and both were built on Dec 2 of 2006. > It's possible that there was some problem with how it was compiled. Feel free to try my RPM from http://rpm.nogin.org/MetaPRL/fc6/ocaml-3.09.3-1.rhfc6.i386.html (you should be able to use http://rpmbin.nogin.org/MetaPRL/fedora-6/ in yum, with http://rpmbin.nogin.org/GPG-PUBKEY.txt key, if you prefer installing via yum). Aleksey