From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by sympa.inria.fr (Postfix) with ESMTPS id 94FCA7EE1A for ; Fri, 30 Nov 2012 15:59:04 +0100 (CET) Received-SPF: None (mail1-smtp-roc.national.inria.fr: no sender authenticity information available from domain of info@gerd-stolpmann.de) identity=pra; client-ip=212.227.126.171; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="info@gerd-stolpmann.de"; x-sender="info@gerd-stolpmann.de"; x-conformance=sidf_compatible Received-SPF: None (mail1-smtp-roc.national.inria.fr: no sender authenticity information available from domain of info@gerd-stolpmann.de) identity=mailfrom; client-ip=212.227.126.171; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="info@gerd-stolpmann.de"; x-sender="info@gerd-stolpmann.de"; x-conformance=sidf_compatible Received-SPF: Pass (mail1-smtp-roc.national.inria.fr: domain of postmaster@moutng.kundenserver.de designates 212.227.126.171 as permitted sender) identity=helo; client-ip=212.227.126.171; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="info@gerd-stolpmann.de"; x-sender="postmaster@moutng.kundenserver.de"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkcBAJzIuFDU436rlGdsb2JhbABEhiy5YRYOAQEBAQkLEhQDJIIfAQUjVhALDgwCJgICVwYTCYgLCKxzknmBIoseAYMtgRMDjWCJPIRPjUyBaw X-IronPort-AV: E=Sophos;i="4.84,191,1355094000"; d="scan'208";a="184000710" Received: from moutng.kundenserver.de ([212.227.126.171]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 30 Nov 2012 15:59:04 +0100 Received: from office1.lan.sumadev.de (dslb-084-059-070-066.pools.arcor-ip.net [84.59.70.66]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0MYrLj-1TjezM2O8p-00VXiF; Fri, 30 Nov 2012 15:59:03 +0100 Received: from [192.168.5.106] (dslb-084-059-070-066.pools.arcor-ip.net [84.59.70.66]) by office1.lan.sumadev.de (Postfix) with ESMTPSA id 35845C00D0; Fri, 30 Nov 2012 15:59:03 +0100 (CET) From: Gerd Stolpmann To: Malcolm Matalka Cc: caml-list@inria.fr In-Reply-To: <87lidjqvwi.fsf@li195-236.members.linode.com> References: <87lidjqvwi.fsf@li195-236.members.linode.com> Content-Type: text/plain; charset="UTF-8" Date: Fri, 30 Nov 2012 15:59:08 +0100 Message-ID: <1354287548.3042.5.camel@thinkpad> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:U8xE+XLzT1uOa8b+SFsSzy6ZzfzIcQEsmFXp8rmd30b qQkNhnNawFFdll7kUe2CPBQHIOF7Vle2D6yUsb6jdJCDFZjlhM kH98pGuylvqoWlmMtHpOwfw1JMqG9/UZWuQ8w6Son3cHhsA16o PosavivGlEurMyPss9om2cPhKKx3+hr+Qjmu+ytJU0lGHJEon1 6SrBwsaPWX4tbdhCzm6R5J5qyekUiwboYPcLgQtvgPx4FMn8b7 3HJUVw4+qqf3K9ylNpddKB5oQ8JDQ6R0A3Dm43VVfXkFeXGS6U 0wd7B0rZlH8c1ViNgHaXtdxmlw0vv7tNucjD8PqHdTCJEcpSUH DTSRnIZH6KAprD095iUIW0W1m+nkyIOx4URHq0Wh8 Subject: Re: [Caml-list] -custom linking against -lncurses? It's a configure-time issue: Look at the output of "ocamlc -config", and you see an -lncurses in bytecomp_c_libraries. Basically, the curses library is only needed for the toploop (for accessing terminfo), but as the toploop uses the bytecode compiler, the -lncurses option is propagated to all bytecode programs. I guess this is for simplicity of the runtime system. You can get rid of that by passing -no-curses to the "configure" script when you build ocaml. Gerd Am Freitag, den 30.11.2012, 04:31 -0500 schrieb Malcolm Matalka: > I have noticed on my machine, ocamlc, using -custom, tries to link the > resulting code against ncurses[1]. > > Is this behaviour expected? I know how to get around this on my OS but > not sure why it's happening in the first place. > > /Malcolm > > [1] > malcolm@nix-junkyard:/tmp$ ocamlc -o foo foo.ml > malcolm@nix-junkyard:/tmp$ ocamlc -custom -o foo foo.ml > /nix/store/1iigiim5855m8j7pmwf5xrnpf705s4dh-binutils-2.21.1a/bin/ld: > cannot find -lncurses > collect2: ld returned 1 exit status > File "foo.ml", line 1, characters 0-1: > Error: Error while building custom runtime system > -- ------------------------------------------------------------ Gerd Stolpmann, Darmstadt, Germany gerd@gerd-stolpmann.de Creator of GODI and camlcity.org. Contact details: http://www.camlcity.org/contact.html Company homepage: http://www.gerd-stolpmann.de *** Searching for new projects! Need consulting for system *** programming in Ocaml? Gerd Stolpmann can help you. ------------------------------------------------------------