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 concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 7BDCFBB83 for ; Wed, 16 Aug 2006 17:05:05 +0200 (CEST) Received: from h74556 (muse-net.info [81.169.166.31]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id k7GF4x0B002971 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Wed, 16 Aug 2006 17:05:05 +0200 Received: from [82.212.6.167] (helo=[192.168.0.100]) by h74556 with esmtpa (Exim 4.44) id 1GDN2F-0000Y2-CQ for caml-list@yquem.inria.fr; Wed, 16 Aug 2006 17:10:24 +0200 Mime-Version: 1.0 (Apple Message framework v752.2) Content-Transfer-Encoding: 7bit Message-Id: <98E052F2-D3D4-4653-B558-628D92ED7525@denkzeug.de> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: caml-list@yquem.inria.fr From: Christoph Subject: pcre build problems on Mac OS X Date: Wed, 16 Aug 2006 17:04:24 +0200 X-Mailer: Apple Mail (2.752.2) X-Miltered: at concorde with ID 44E3341B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; pcre:01 pcre:01 ocaml:01 traceback:01 gmake:01 usr:01 lib':01 gmake:01 usr:01 lib':01 ocamldep:01 mli:01 ocamldep:01 ocamlc:01 -fpic:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=FROM_ENDS_IN_NUMS autolearn=disabled version=3.0.3 Trying to 'make' or 'gmake' pcre on ocaml 3.09.2, I get the following traceback: gmake[1]: Entering directory `/usr/local/work/pcre-ocaml-5.11.1/lib' gmake[2]: Entering directory `/usr/local/work/pcre-ocaml-5.11.1/lib' ocamldep pcre.mli > ._bcdi/pcre.di ocamldep pcre.ml > ._d/pcre.d gmake[2]: Leaving directory `/usr/local/work/pcre-ocaml-5.11.1/lib' gmake[2]: Entering directory `/usr/local/work/pcre-ocaml-5.11.1/lib' ocamlc -c -cc "cc" -ccopt "-fPIC -O2 \ -DPIC \ -o pcre_stubs.o " pcre_stubs.c pcre_stubs.c:40:18: error: pcre.h: No such file or directory pcre_stubs.c:73: error: parse error before '*' token pcre_stubs.c: In function 'pcre_callout_handler': pcre_stubs.c:75: error: 'cb' undeclared (first use in this function) pcre_stubs.c:75: error: (Each undeclared identifier is reported only once pcre_stubs.c:75: error: for each function it appears in.) pcre_stubs.c:116: error: 'PCRE_ERROR_CALLOUT' undeclared (first use in this function) pcre_stubs.c: In function 'pcre_ocaml_init': pcre_stubs.c:143: error: 'pcre_callout' undeclared (first use in this function) pcre_stubs.c: In function 'pcre_dealloc_tables': pcre_stubs.c:150: error: 'pcre_free' undeclared (first use in this function) pcre_stubs.c: In function 'pcre_dealloc_regexp': pcre_stubs.c:156: error: 'pcre_free' undeclared (first use in this function) pcre_stubs.c: In function 'pcre_compile_stub': pcre_stubs.c:196: error: 'pcre' undeclared (first use in this function) pcre_stubs.c:196: error: 'regexp' undeclared (first use in this function) pcre_stubs.c: In function 'pcre_study_stub': pcre_stubs.c:231: error: 'pcre_extra' undeclared (first use in this function) pcre_stubs.c:231: error: 'extra' undeclared (first use in this function) pcre_stubs.c:231: error: 'pcre' undeclared (first use in this function) pcre_stubs.c:231: error: parse error before ')' token pcre_stubs.c: In function 'pcre_set_imp_match_limit_stub': pcre_stubs.c:241: error: 'pcre_extra' undeclared (first use in this function) pcre_stubs.c:241: error: 'extra' undeclared (first use in this function) pcre_stubs.c:241: error: parse error before ')' token pcre_stubs.c:244: error: 'PCRE_EXTRA_MATCH_LIMIT' undeclared (first use in this function) pcre_stubs.c: In function 'pcre_get_match_limit_stub': pcre_stubs.c:257: error: 'pcre_extra' undeclared (first use in this function) pcre_stubs.c:257: error: 'extra' undeclared (first use in this function) pcre_stubs.c:257: error: parse error before ')' token pcre_stubs.c:259: error: 'PCRE_EXTRA_MATCH_LIMIT' undeclared (first use in this function) pcre_stubs.c: In function 'pcre_fullinfo_stub': pcre_stubs.c:271: error: 'pcre' undeclared (first use in this function) pcre_stubs.c:271: error: parse error before ')' token pcre_stubs.c:271: error: 'pcre_extra' undeclared (first use in this function) pcre_stubs.c:271: error: parse error before ')' token pcre_stubs.c: In function 'pcre_options_stub': pcre_stubs.c:288: error: 'PCRE_INFO_OPTIONS' undeclared (first use in this function) pcre_stubs.c: In function 'pcre_size_stub': pcre_stubs.c:289: error: 'PCRE_INFO_SIZE' undeclared (first use in this function) pcre_stubs.c: In function 'pcre_studysize_stub': pcre_stubs.c:290: error: 'PCRE_INFO_STUDYSIZE' undeclared (first use in this function) pcre_stubs.c: In function 'pcre_capturecount_stub': pcre_stubs.c:291: error: 'PCRE_INFO_CAPTURECOUNT' undeclared (first use in this function) pcre_stubs.c: In function 'pcre_backrefmax_stub': pcre_stubs.c:292: error: 'PCRE_INFO_BACKREFMAX' undeclared (first use in this function) pcre_stubs.c: In function 'pcre_namecount_stub': pcre_stubs.c:293: error: 'PCRE_INFO_NAMECOUNT' undeclared (first use in this function) pcre_stubs.c: In function 'pcre_nameentrysize_stub': pcre_stubs.c:294: error: 'PCRE_INFO_NAMEENTRYSIZE' undeclared (first use in this function) pcre_stubs.c: In function 'pcre_firstbyte_stub': pcre_stubs.c:299: error: 'PCRE_INFO_FIRSTBYTE' undeclared (first use in this function) pcre_stubs.c: In function 'pcre_firsttable_stub': pcre_stubs.c:327: error: 'PCRE_INFO_FIRSTTABLE' undeclared (first use in this function) pcre_stubs.c: In function 'pcre_lastliteral_stub': pcre_stubs.c:359: error: 'PCRE_INFO_LASTLITERAL' undeclared (first use in this function) pcre_stubs.c: In function 'pcre_study_stat_stub': pcre_stubs.c:381: error: 'pcre_extra' undeclared (first use in this function) pcre_stubs.c:381: error: parse error before ')' token pcre_stubs.c: In function 'pcre_exec_stub': pcre_stubs.c:399: error: syntax error before '*' token pcre_stubs.c:400: error: syntax error before '*' token pcre_stubs.c:413: error: 'code' undeclared (first use in this function) pcre_stubs.c:413: error: 'extra' undeclared (first use in this function) pcre_stubs.c:417: error: 'PCRE_ERROR_NOMATCH' undeclared (first use in this function) pcre_stubs.c:418: error: 'PCRE_ERROR_PARTIAL' undeclared (first use in this function) pcre_stubs.c:419: error: 'PCRE_ERROR_MATCHLIMIT' undeclared (first use in this function) pcre_stubs.c:420: error: 'PCRE_ERROR_BADPARTIAL' undeclared (first use in this function) pcre_stubs.c:421: error: 'PCRE_ERROR_BADUTF8' undeclared (first use in this function) pcre_stubs.c:422: error: 'PCRE_ERROR_BADUTF8_OFFSET' undeclared (first use in this function) pcre_stubs.c:452: error: variable 'new_extra' has initializer but incomplete type pcre_stubs.c:452: error: 'PCRE_EXTRA_CALLOUT_DATA' undeclared (first use in this function) pcre_stubs.c:452: warning: excess elements in struct initializer pcre_stubs.c:452: warning: (near initialization for 'new_extra') pcre_stubs.c:452: warning: excess elements in struct initializer pcre_stubs.c:452: warning: (near initialization for 'new_extra') pcre_stubs.c:452: warning: excess elements in struct initializer pcre_stubs.c:452: warning: (near initialization for 'new_extra') pcre_stubs.c:452: warning: excess elements in struct initializer pcre_stubs.c:452: warning: (near initialization for 'new_extra') pcre_stubs.c:452: error: storage size of 'new_extra' isn't known pcre_stubs.c:494: error: 'PCRE_ERROR_CALLOUT' undeclared (first use in this function) pcre_stubs.c: In function 'pcre_get_stringnumber_stub': pcre_stubs.c:546: error: 'pcre' undeclared (first use in this function) pcre_stubs.c:546: error: parse error before ')' token pcre_stubs.c:548: error: 'PCRE_ERROR_NOSUBSTRING' undeclared (first use in this function) pcre_stubs.c: In function 'pcre_config_utf8_stub': pcre_stubs.c:564: error: 'PCRE_CONFIG_UTF8' undeclared (first use in this function) pcre_stubs.c: In function 'pcre_config_newline_stub': pcre_stubs.c:568: error: 'PCRE_CONFIG_NEWLINE' undeclared (first use in this function) pcre_stubs.c: In function 'pcre_config_link_size_stub': pcre_stubs.c:572: error: 'PCRE_CONFIG_LINK_SIZE' undeclared (first use in this function) pcre_stubs.c: In function 'pcre_config_match_limit_stub': pcre_stubs.c:576: error: 'PCRE_CONFIG_MATCH_LIMIT' undeclared (first use in this function) pcre_stubs.c: In function 'pcre_config_stackrecurse_stub': pcre_stubs.c:580: error: 'PCRE_CONFIG_STACKRECURSE' undeclared (first use in this function) gmake[2]: *** [pcre_stubs.o] Error 2 gmake[2]: Leaving directory `/usr/local/work/pcre-ocaml-5.11.1/lib' gmake[1]: *** [byte-code-library] Error 2 gmake[1]: Leaving directory `/usr/local/work/pcre-ocaml-5.11.1/lib' gmake: *** [all] Error 2 Looking into the distribution, I see that pcre.h is only in the 'win' directory - is that how it's supposed to be? Thank you in advance for any helpful input.... best regards, Christoph