From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id HAA23696; Tue, 24 Feb 2004 07:38:22 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id HAA17966 for ; Tue, 24 Feb 2004 07:38:21 +0100 (MET) Received: from mail3.speakeasy.net (mail3.speakeasy.net [216.254.0.203]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i1O6cJae013603 for ; Tue, 24 Feb 2004 07:38:20 +0100 Received: (qmail 27864 invoked from network); 24 Feb 2004 06:38:18 -0000 Received: from dsl093-079-117.sfo2.dsl.speakeasy.net (HELO manjula.frotz.bogus) (rbagchi@[66.93.79.117]) (envelope-sender ) by mail3.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 24 Feb 2004 06:38:18 -0000 Received: from frotz.com (unknown [172.16.0.65]) by manjula.frotz.bogus (Postfix) with ESMTP id 57D732D907; Mon, 23 Feb 2004 22:24:46 -0800 (PST) Message-ID: <403AF139.7030303@frotz.com> Date: Mon, 23 Feb 2004 22:37:45 -0800 From: Ranjan Bagchi User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040122 Debian/1.6-1 X-Accept-Language: en MIME-Version: 1.0 To: caml-list@inria.fr Cc: Richard Jones Subject: [Caml-list] ocamlc -linkall: problems with external functions? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; ocamlc:01 -linkall:01 wrappers:01 ocamlc:01 cmas:01 wrappers:01 -linkall:01 cmas:01 usr:01 pcre:01 pcre:01 bug:01 dynlink:01 equeue:01 dynlink:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi -- I'm experimenting with mod_caml 1.0.6 (which is very cool, thanks Rich), and I've found something interesting (this may be an ocaml thing, a mod_caml thing, or an apache thing since it intersects): The following line in the Makefile: mod_caml_executable: $(ALL_CMOS) apache_c.o wrappers.o dummy.o $(OCAMLC) -custom $(OCAMLCFLAGS) $(ALL_CMAS) $^ -o $@ if changed to mod_caml_executable: $(ALL_CMOS) apache_c.o wrappers.o dummy.o $(OCAMLC) -linkall -custom $(OCAMLCFLAGS) $(ALL_CMAS) $^ -o $@ results in the very strange startup error (when doing /usr/sbin/apachectl start): Fatal error: unknown C primitive `pcre_get_match_limit_wrapper' However, in both mod_caml_executables, nm | grep pcre_get_match_limit_wrapper results in 080571a0 T pcre_get_match_limit_wrapper Is this a bug? What's happening? Is there a workaround? Thanks, Ranjan (PS -- why I'm doing this. I'm trying to load into the executable the rpc library. The reason why is that Dynlink seems to really dislike loading -- at run time -- the rpc.cma and equeue.cma libraries. However, I've found that building an executable with --linkall produces a system that Dynlink can use to load in code building **using** rpc: stub modules, etc) ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners