[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#335651: marked as done (libsqlite-ocaml-dev: fails compilation in native code)



Your message dated Mon, 26 Dec 2005 07:32:12 -0800
with message-id <E1EquKa-0003qw-3E@spohr.debian.org>
and subject line Bug#335651: fixed in ocaml-sqlite 0.3.5.arch.4-6
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 25 Oct 2005 07:45:41 +0000
>From FlavioGrossi@jumpy.it Tue Oct 25 00:45:41 2005
Return-path: <FlavioGrossi@jumpy.it>
Received: from master.debian.org [146.82.138.7] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1EUJV6-0004Tc-00; Tue, 25 Oct 2005 00:45:41 -0700
Received: from host28-231.pool80104.interbusiness.it ([127.0.0.1]) [80.104.231.28] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1EUJV3-0007Eq-00; Tue, 25 Oct 2005 02:45:38 -0500
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Flavio Grossi <FlavioGrossi@jumpy.it>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libsqlite-ocaml-dev: fails compilation in native code
X-Mailer: reportbug 3.17
Date: Tue, 25 Oct 2005 10:20:38 +0200
X-Debbugs-Cc: FlavioGrossi@jumpy.it
Message-Id: <E1EUJV3-0007Eq-00@master.debian.org>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-9.0 required=4.0 tests=BAYES_00,HAS_PACKAGE,
	OUR_MTA_MSGID,X_DEBBUGS_CC autolearn=ham 
	version=2.60-bugs.debian.org_2005_01_02

Package: libsqlite-ocaml-dev
Version: 0.3.5.arch.4-4
Severity: normal


Given the following code in file test.ml:

let db = Sqlite.db_open "test.db" in
Sqlite.db_close db

I can compile it in bytecode using

$ ocamlc -I +sqlite sqlite.cma test.ml

without problems, but if I try to compile in native code I get

$ ocamlopt -I +sqlite sqlite.cmxa test.ml
/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


However this works
$ ocamlopt -ccopt /usr/lib/libsqlite.so -I +sqlite sqlite.cmxa test.ml


Flavio Grossi


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.10n
Locale: LANG=it_IT@euro, LC_CTYPE=it_IT@euro (charmap=ISO-8859-15)

Versions of packages libsqlite-ocaml-dev depends on:
ii  libsqlite-ocaml           0.3.5.arch.4-4 Embeddable SQL Database for OCaml 

libsqlite-ocaml-dev recommends no packages.

-- no debconf information

---------------------------------------
Received: (at 335651-close) by bugs.debian.org; 26 Dec 2005 15:42:09 +0000
>From katie@ftp-master.debian.org Mon Dec 26 07:42:09 2005
Return-path: <katie@ftp-master.debian.org>
Received: from katie by spohr.debian.org with local (Exim 4.50)
	id 1EquKa-0003qw-3E; Mon, 26 Dec 2005 07:32:12 -0800
From: Samuel Mimram <smimram@debian.org>
To: 335651-close@bugs.debian.org
X-Katie: $Revision: 1.65 $
Subject: Bug#335651: fixed in ocaml-sqlite 0.3.5.arch.4-6
Message-Id: <E1EquKa-0003qw-3E@spohr.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Mon, 26 Dec 2005 07:32:12 -0800
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

Source: ocaml-sqlite
Source-Version: 0.3.5.arch.4-6

We believe that the bug you reported is fixed in the latest version of
ocaml-sqlite, which is due to be installed in the Debian FTP archive:

libsqlite-ocaml-dev_0.3.5.arch.4-6_i386.deb
  to pool/main/o/ocaml-sqlite/libsqlite-ocaml-dev_0.3.5.arch.4-6_i386.deb
libsqlite-ocaml_0.3.5.arch.4-6_i386.deb
  to pool/main/o/ocaml-sqlite/libsqlite-ocaml_0.3.5.arch.4-6_i386.deb
ocaml-sqlite_0.3.5.arch.4-6.diff.gz
  to pool/main/o/ocaml-sqlite/ocaml-sqlite_0.3.5.arch.4-6.diff.gz
ocaml-sqlite_0.3.5.arch.4-6.dsc
  to pool/main/o/ocaml-sqlite/ocaml-sqlite_0.3.5.arch.4-6.dsc



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 335651@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Samuel Mimram <smimram@debian.org> (supplier of updated ocaml-sqlite package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon, 26 Dec 2005 15:04:33 +0100
Source: ocaml-sqlite
Binary: libsqlite-ocaml libsqlite-ocaml-dev
Architecture: source i386
Version: 0.3.5.arch.4-6
Distribution: unstable
Urgency: low
Maintainer: Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>
Changed-By: Samuel Mimram <smimram@debian.org>
Description: 
 libsqlite-ocaml - Embeddable SQL Database for OCaml Programs
 libsqlite-ocaml-dev - Embeddable SQL Database for OCaml Programs
Closes: 335651
Changes: 
 ocaml-sqlite (0.3.5.arch.4-6) unstable; urgency=low
 .
   * Cleaner packaging.
   * Using OCamlMakefile to build the library instead of patching the makefile,
     which solves the linking problem in native mode, closes: #335651.
Files: 
 d11229c3bb607b2b76c2f6a795b90e8e 820 libdevel optional ocaml-sqlite_0.3.5.arch.4-6.dsc
 621c0912e8682682794ef29f6f35394c 26285 libdevel optional ocaml-sqlite_0.3.5.arch.4-6.diff.gz
 b423ee59282f8776c13a9c778b5a05ea 317192 libdevel optional libsqlite-ocaml-dev_0.3.5.arch.4-6_i386.deb
 f822f29d41b380420909e8994d64ea64 8134 libs optional libsqlite-ocaml_0.3.5.arch.4-6_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDsAjbIae1O4AJae8RAvHuAJ4sWtK66XqpcycqMpvlN6nviefZzQCfYPvj
EgfIYp/7oCxwy70YHFdhOSg=
=K2Qx
-----END PGP SIGNATURE-----



Reply to: