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=2.8 required=5.0 tests=DNS_FROM_RFC_POST,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 5362CBBAF for ; Wed, 11 Mar 2009 14:55:50 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArgBAFdft0nRVduulGdsb2JhbACUcD8BAQEBCQkKCQ+qVIEGj3QBAwEDhAoGgyM X-IronPort-AV: E=Sophos;i="4.38,342,1233529200"; d="scan'208";a="24174939" Received: from mail-ew0-f174.google.com ([209.85.219.174]) by mail3-smtp-sop.national.inria.fr with ESMTP; 11 Mar 2009 14:55:49 +0100 Received: by ewy22 with SMTP id 22so13724ewy.27 for ; Wed, 11 Mar 2009 06:55:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:references:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:cc:x-mailer; bh=nQ36Ogb0SSX/Xa0N1snzLMpWdv7jdajvT8/7MzMZY/8=; b=f6aazvjM6OvosW0Sf/4rtCaNxfyxVwlIlGwwxlPMep9XuCwT1bwTIKGdWi/MtbEjyx o4EsMiUXElM2mqI/zZc2HDdVdBtsZ7NF0z6sJl0DMsdhb4o/yjkWLspRGlsXAZSgzLVp wiyp9+DvlEgoA+RPyjh9K1UEC4viqvfoISdgM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:cc:x-mailer; b=aeqtZaNxV1pIISgI6GDhB7TW9hV6VKst5sSCuPlIcVzbwSMk6FMjsiLEmudRRXxgV3 4WJWAKYSz5GHToGYf5e3hmIeNafrF0lxJT80rTir6GZB/+372GhvipzPFJq1xo8RsIHf 9g53GcYLcBfeQphG3okW4DS03S3FO8KORRlOE= Received: by 10.216.29.208 with SMTP id i58mr3419422wea.85.1236779749608; Wed, 11 Mar 2009 06:55:49 -0700 (PDT) Received: from ?10.10.30.7? (133.Red-88-1-80.dynamicIP.rima-tde.net [88.1.80.133]) by mx.google.com with ESMTPS id 10sm6510501eyz.50.2009.03.11.06.55.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 11 Mar 2009 06:55:49 -0700 (PDT) References: <7641B9C1-EFF1-4B0E-8A1E-EF5B07E86863@gmail.com> <871197.89058.qm@web27007.mail.ukl.yahoo.com> Message-Id: <61D4F38B-95F9-4250-B164-3408D091BA30@gmail.com> From: Joel Reymont To: Matthieu Wipliez In-Reply-To: <871197.89058.qm@web27007.mail.ukl.yahoo.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: Re : [Caml-list] Reference to undefined global `Camlp4_config' Date: Wed, 11 Mar 2009 13:55:46 +0000 Cc: O'Caml Mailing List X-Mailer: Apple Mail (2.930.3) X-Spam: no; 0.00; camlp:01 matthieu:01 ocamlfind:01 camlp:01 lib:01 ocamlfind:01 ocamlc:01 -verbose:01 -package:01 -linkpkg:01 cmo:01 cmo:01 lexer:01 symtab:01 parser:01 On Mar 11, 2009, at 1:33 PM, Matthieu Wipliez wrote: > > I'm not familiar with ocamlfind, but for Camlp4 you need this: > -I +camlp4 camlp4lib.cma I was under the impression that ocamlfind -packages takes care of adding the camlp4 bits. > Does this solve the problem? Not really but thanks for trying! The ocamlfind command that ocamlbuild is using, e.g. + ocamlfind ocamlc -verbose -package 'oUnit, extlib, camlp4' -linkpkg - g src/easy_ast.cmo src/easy_code.cmo src/easy_lexer.cmo src/ easy_symtab.cmo src/token.cmo src/static1.cmo src/easy_parser.cmo src/ test_tools.cmo src/parser_test.cmo src/test.cmo -o src/test.byte Boils down to this Effective set of compiler predicates: pkg_unix,pkg_oUnit,pkg_extlib,pkg_camlp4,autolink,byte + ocamlc.opt -verbose -g -o src/test.byte -I /usr/local/lib/ocaml/site- lib/oUnit -ccopt -I/usr/local/lib/ocaml/site-lib/oUnit -I /usr/local/ lib/ocaml/site-lib/extlib -ccopt -I/usr/local/lib/ocaml/site-lib/ extlib -I /usr/local/lib/ocaml/camlp4 -ccopt -I/usr/local/lib/ocaml/ camlp4 -ccopt -L/usr/local/lib/ocaml/site-lib/oUnit -ccopt -L/usr/ local/lib/ocaml/site-lib/extlib -ccopt -L/usr/local/lib/ocaml/camlp4 / usr/local/lib/ocaml/unix.cma /usr/local/lib/ocaml/site-lib/oUnit/ oUnit.cma /usr/local/lib/ocaml/site-lib/extlib/extLib.cma src/ easy_ast.cmo src/easy_code.cmo src/easy_lexer.cmo src/easy_symtab.cmo src/token.cmo src/static1.cmo src/easy_parser.cmo src/test_tools.cmo src/parser_test.cmo src/test.cmo File "_none_", line 1, characters 0-1: Error: Error while linking src/easy_lexer.cmo: Reference to undefined global `Camlp4_config' ocamlc.opt returned with exit code 2 Command exited with code 2. It's using camlp4 for -I and -L but it's not pulling in the library for some reason. Thanks, Joel --- http://tinyco.de Mac, C++, OCaml