From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 68B48BB81 for ; Mon, 24 Oct 2005 10:25:03 +0200 (CEST) Received: from smtp002.mail.ukl.yahoo.com (smtp002.mail.ukl.yahoo.com [217.12.11.33]) by concorde.inria.fr (8.13.0/8.13.0) with SMTP id j9O8P2Qe022642 for ; Mon, 24 Oct 2005 10:25:03 +0200 Received: (qmail 36902 invoked from network); 24 Oct 2005 08:25:02 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.it; h=Received:From:Reply-To:To:Subject:Date:User-Agent:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id; b=gRLgKjRq2YSpl0xlq/fC1xZDi+3QiXA/mpZiCF5uSG/4afTYAxbc93u+BzGxvQfc/V8bA3PPCpOShAr3aR94i+vd4xjZRB2NxTZShxyuzB7iRWr/mqFX3JUzLcN5R4CpUsfFy9HLGs1pM2UFUpteK93M5fV2BSl2U5rE5X3fciM= ; Received: from unknown (HELO host251-231.pool80104.interbusiness.it) (sixdegreesoit@80.104.231.251 with plain) by smtp002.mail.ukl.yahoo.com with SMTP; 24 Oct 2005 08:25:01 -0000 From: Flavio Reply-To: 6degreesoit@yahoo.it To: caml-list@yquem.inria.fr Subject: Error linking sqlite Date: Mon, 24 Oct 2005 10:57:49 +0200 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510241057.49536.sixdegreesoit@yahoo.it> X-Miltered: at concorde with ID 435C9A5E.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; bytecode:01 ocamlfind:01 ocamlc:01 -package:01 -linkpkg:01 ocamlfind:01 ocamlopt:01 -package:01 -linkpkg:01 usr:01 lib:01 ocaml:01 stubs:01 usr:01 lib: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.4 required=5.0 tests=DNS_FROM_RFC_ABUSE autolearn=disabled version=3.0.3 Hello all, I'm having problems compiling programs using sqlite library on debian unstable. Given the following code in file prova.ml: let db = Sqlite.db_open "prova" in Sqlite.db_close db I can compile it in bytecode using ocamlfind ocamlc -package sqlite -linkpkg prova.ml without problems, but if I try to compile in native code with ocamlfind ocamlopt -package sqlite -linkpkg prova.ml I get /usr/lib/ocaml/3.08.3/sqlite/libsqlite.a(sqlite_stubs.o): In function `raise_sqlite_error': : undefined reference to `sqlite_freemem' /usr/lib/ocaml/3.08.3/sqlite/libsqlite.a(sqlite_stubs.o): In function `caml_sqlite_close': : undefined reference to `sqlite_close' /usr/lib/ocaml/3.08.3/sqlite/libsqlite.a(sqlite_stubs.o): In function `caml_sqlite_finalize_gc': : undefined reference to `sqlite_close' /usr/lib/ocaml/3.08.3/sqlite/libsqlite.a(sqlite_stubs.o): In function `caml_sqlite_open': : undefined reference to `sqlite_open' /usr/lib/ocaml/3.08.3/sqlite/libsqlite.a(sqlite_stubs.o): In function `caml_sqlite_open': : undefined reference to `sqlite_freemem' /usr/lib/ocaml/3.08.3/sqlite/libsqlite.a(sqlite_stubs.o): In function `caml_sqlite_vm_finalize_gc': : undefined reference to `sqlite_finalize' /usr/lib/ocaml/3.08.3/sqlite/libsqlite.a(sqlite_stubs.o): In function `caml_sqlite_vm_finalize_gc': : undefined reference to `sqlite_freemem' /usr/lib/ocaml/3.08.3/sqlite/libsqlite.a(sqlite_stubs.o): In function `caml_sqlite_vm_finalize': : undefined reference to `sqlite_finalize' /usr/lib/ocaml/3.08.3/sqlite/libsqlite.a(sqlite_stubs.o): In function `caml_sqlite_vm_finalize': : undefined reference to `sqlite_error_string' /usr/lib/ocaml/3.08.3/sqlite/libsqlite.a(sqlite_stubs.o): In function `caml_sqlite_compile_helper': : undefined reference to `sqlite_compile' /usr/lib/ocaml/3.08.3/sqlite/libsqlite.a(sqlite_stubs.o): In function `caml_sqlite_compile_helper': : undefined reference to `sqlite_error_string' /usr/lib/ocaml/3.08.3/sqlite/libsqlite.a(sqlite_stubs.o): In function `caml_sqlite_step_helper': : undefined reference to `sqlite_step' /usr/lib/ocaml/3.08.3/sqlite/libsqlite.a(sqlite_stubs.o): In function `caml_sqlite_exec': : undefined reference to `sqlite_exec' /usr/lib/ocaml/3.08.3/sqlite/libsqlite.a(sqlite_stubs.o): In function `caml_sqlite_exec': : undefined reference to `sqlite_error_string' /usr/lib/ocaml/3.08.3/sqlite/libsqlite.a(sqlite_stubs.o): In function `caml_sqlite_last_insert_rowid': : undefined reference to `sqlite_last_insert_rowid' collect2: ld returned 1 exit status Error during linking Is this a bug in the debian package? I tried both libsqlite-ocaml-dev version 0.3.5.arch.4-4 and version 0.3.5.arch.4-3 Many thanks, Flavio ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it