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=1.0 required=5.0 tests=AWL,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 mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 47491BBCB for ; Mon, 18 Feb 2008 09:22:41 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAADTPuEfAXQImh2dsb2JhbACQVQEBAQgKKZUThF0 X-IronPort-AV: E=Sophos;i="4.25,370,1199660400"; d="scan'208";a="8203465" Received: from discorde.inria.fr ([192.93.2.38]) by mail1-smtp-roc.national.inria.fr with ESMTP; 18 Feb 2008 09:22:41 +0100 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id m1I8Mekj018121 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Mon, 18 Feb 2008 09:22:40 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAKvPuEfRVYC+kmdsb2JhbACQVQEBAQEHBAQJChaVG4Rb X-IronPort-AV: E=Sophos;i="4.25,370,1199660400"; d="scan'208";a="22731870" Received: from fk-out-0910.google.com ([209.85.128.190]) by mail4-smtp-sop.national.inria.fr with ESMTP; 18 Feb 2008 09:22:35 +0100 Received: by fk-out-0910.google.com with SMTP id z22so1907380fkz.9 for ; Mon, 18 Feb 2008 00:22:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=xGXs5dBo7Umaztqmmr4ULbn9M90yHbzIFmrW9uV7PDo=; b=rKCUaI5NLfEfFSO8dLhQh5TCxoYWhoFJhJgJ8pmwXu2TKpY1imGhYriyeNRJYMgMeIC3KxWv0eLHFy4uP5ICt+F3c9RRvDxqp/op4rmFt6xWzMuwLbR0/0R9c/htQJzLRPfwur/DJvapqR2IIlV0TsQ+pUcvzkga17Tohsm+ifc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=pCq0kHwTaGo2D4mJ/paMcL1FkFo+VI4sgEU7y1llNGMeopdAYMyhDpIxTDP7ezJQNmLr0tUvoTRESMGpHrqKji/iuspa3zbaITGR+3SUs5qpCHYSEOcQ3c2MHL97vuopvY8H8Q0Jth+rEaoiVr4kboIadNuupmTL7dMrzc6KQ08= Received: by 10.78.201.10 with SMTP id y10mr8373318huf.10.1203322954888; Mon, 18 Feb 2008 00:22:34 -0800 (PST) Received: by 10.78.15.19 with HTTP; Mon, 18 Feb 2008 00:22:34 -0800 (PST) Message-ID: <95513600802180022h269b8625y2c0bd4a415149873@mail.gmail.com> Date: Mon, 18 Feb 2008 09:22:34 +0100 From: "Olivier Andrieu" Sender: oandrieu@gmail.com To: "Florent Monnier" Subject: Re: [Caml-list] binding, compilation on mac os Cc: caml-list@inria.fr In-Reply-To: <200802171920.46959.fmonnier@linux-nantes.fr.eu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200802171920.46959.fmonnier@linux-nantes.fr.eu.org> X-Google-Sender-Auth: 14bf679d537755aa X-Miltered: at discorde with ID 47B94050.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; andrieu:01 oandrieu:01 compilation:01 ocamlopt:01 cmxa:01 usr:01 makefile:01 ocaml:01 makefile:01 ocamlc:01 gcc:01 ocaml:01 compiler:01 allegro:98 allegro:98 On Feb 17, 2008 7:20 PM, Florent Monnier wrote: > Hi, > someone is trying to compile one of my binding on Mac OS, and reported me some > problems, the main one is this error with this command: > > ocamlopt allegro.cmxa exhello.ml -o exhello > > > /usr/bin/ld: Undefined symbols: > .objc_class_name_NSApplication > .objc_class_name_NSAutoreleasePool > .objc_class_name_NSBundle > .objc_class_name_NSConstantString > .objc_class_name_NSFileManager > .objc_class_name_NSMenu > .objc_class_name_NSMenuItem > .objc_class_name_NSObject > .objc_class_name_NSProcessInfo > .objc_class_name_NSThread > _CFDictionaryGetValue > _CFNumberGetValue > _CGDisplayCurrentMode > _CGDisplaySetPalette > _CGMainDisplayID > _FSGetCatalogInfo > _GetProcessBundleLocation > _NSApp > __NSConstantStringClassReference > ___CFStringMakeConstantString > __mangled_main_address > _objc_msgSend > _caml_atom_table > _caml_static_data_end > _caml_static_data_start > _caml_code_area_end > _caml_code_area_start > collect2: ld returned 1 exit status > Error during linking > > > > here is the Makefile of the binding: > http://www.linux-nantes.fr.eu.org/~fmonnier/OCaml/Allegro/Makefile > > Does someone have an idea about this problem ? Here's the problem I think: alleg-wrap.o: alleg-wrap.c ocamlc -c -cc "gcc -o $@" $< OCaml was probably compiled with a different C compiler. Try removing the -cc option. -- Olivier