From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 71D13BC57 for ; Thu, 18 Nov 2010 15:59:10 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsMFAJXN5Ew+3JIE/2dsb2JhbACUUo4Bcb5FhUsEilqDJg X-IronPort-AV: E=Sophos;i="4.59,217,1288566000"; d="scan'208";a="79332200" Received: from vs.philou.ch ([62.220.146.4]) by mail4-smtp-sop.national.inria.fr with ESMTP; 18 Nov 2010 15:59:09 +0100 Received: from air.local (unknown [85.218.71.176]) by vs.philou.ch (Postfix) with ESMTPSA id 49C5A1F2A561 for ; Thu, 18 Nov 2010 16:05:19 +0100 (CET) Message-ID: <4CE53F3B.7080200@philou.ch> Date: Thu, 18 Nov 2010 15:59:07 +0100 From: Philippe Strauss User-Agent: Postbox 2.0.2 (Macintosh/20101025) MIME-Version: 1.0 To: caml-list@inria.fr Subject: a syntax error that I don't get Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; syntax:01 sig:01 sigterm:01 waitpid:01 sigterm:01 compilation:01 ocamlfind:01 -thread:01 -package:01 netstring:01 syslog:01 patcher:01 patcher:01 cmx:01 syntax:01 Hello caml'ers This one is short, I'm writting a signal handler: 205: let sig_exit () = 206: Unix.kill !chpid Sys.sigterm ; 207: match (Unix.waitpid [] !chpid) with 208: | pid, Unix.WSIGNALED (Sys.sigterm) -> log `LOG_NOTICE "child terminated by parent" 209: | pid, pstat -> log `LOG_ERR "child asked to terminate by parent, but unexpected process status received" and compilation chokes on: philou@air:~/mysrc/deconvolution/jackond$ make ocamlfind opt -thread -package unix,threads,netsys,netstring,netplex,rpc,equeue,jack,str,syslog -c patcher.ml -o patcher.cmx File "patcher.ml", line 208, characters 28-35: Error: Syntax error make: *** [patcher.cmx] Error 2 replacing Sys.sigterm by -11 or signumber, it compiles fine. I don't get it. It's using ocaml 3.12 of godi, on osx 10.6.5, x86_64