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 BAA10094; Fri, 7 Nov 2003 01:54:24 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA10093 for ; Fri, 7 Nov 2003 01:54:23 +0100 (MET) Received: from bob.west.spy.net (mail.west.spy.net [66.149.231.226]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hA70sL124879 for ; Fri, 7 Nov 2003 01:54:21 +0100 (MET) Received: from [192.168.1.196] (dhcp-196.west.spy.net [192.168.1.196]) by bob.west.spy.net (Postfix) with ESMTP id 0B86A573F for ; Thu, 6 Nov 2003 16:54:17 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v606) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; format=flowed To: Caml Mailing List From: Dustin Sallings Subject: Fwd: [Caml-list] ocaml on SunOS 4.1.4. Date: Thu, 6 Nov 2003 16:54:17 -0800 X-Mailer: Apple Mail (2.606) X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 sunos:01 3.07:01 sunos:01 ocamlopt:01 ocamlopt:01 getpid:01 natively:01 libs:01 zlib:01 ocamlplot:01 sourceforge:01 ocaml:01 forwarded:97 linking:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Begin forwarded message: > So I've managed to get 3.07+2 working on SunOS 4.1.4, but I've run > into one small problem. ocamlopt seems to be trying to link in > something that doesn't work. > > bob:/tmp 115> ocamlopt test.ml > collect2: ld returned 2 exit status > ld: Undefined symbol > _raise > Error during linking If anyone's interested, this made it all work: #define raise(a) kill(getpid(), a) My application is working beautifully natively compiled on SunOS 4.1.4 (sun4c). This includes a few libs I made as well as the zlib interface from ocamlplot.sourceforge.net (which meant I had to port bzip2 as well). I'm very happy with it. If anyone wants bins, let me know. -- Dustin Sallings ------------------- 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