Your message dated Fri, 06 May 2011 22:04:45 +0000
with message-id <[email protected]>
and subject line Bug#602489: fixed in cudf 0.5.99-2
has caused the Debian Bug report #602489,
regarding cudf: FTBFS on non-linux: undefined reference to dl*
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
602489: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=602489
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: cudf
Version: 0.5.99-1
Severity: important
Tags: patch
User: [email protected]
Usertags: kfreebsd

Hi,

your package FTBFS on non-Linux archs with:
| cc -g -O2 -g -Wall -O2 -o caml_hash_variant caml_hash_variant.o dummy.o 
-L/usr/lib/ocaml -lcamlrun -lm -lcurses
| /usr/lib/ocaml/libcamlrun.a(unix.o): In function `caml_dlerror':
| (.text+0x16c): undefined reference to `dlerror'
| /usr/lib/ocaml/libcamlrun.a(unix.o): In function `caml_dlsym':
| (.text+0x17a): undefined reference to `dlsym'
| /usr/lib/ocaml/libcamlrun.a(unix.o): In function `caml_dlclose':
| (.text+0x19e): undefined reference to `dlclose'
| /usr/lib/ocaml/libcamlrun.a(unix.o): In function `caml_dlopen':
| (.text+0x1bb): undefined reference to `dlopen'
| collect2: ld returned 1 exit status

Full build logs:
  https://buildd.debian.org/status/package.php?p=cudf&suite=experimental

>From a quick look, I couldn't find any obvious differences between nm -D
/usr/lib/ocaml/libcamlrun.a's output on amd64 and kfreebsd-amd64; I
guess the behaviour of the linker is slightly different, and linking
with undefined symbols is OK on Linux only.

Adding -ldl fixes it, patch attached. Not sure that's the right way
though (maybe libcamrun.a ought to be tweaked instead?).

Mraw,
KiBi.
>From ef9fff81e7417da53600f042b5dd69476a812ee1 Mon Sep 17 00:00:00 2001
From: Cyril Brulebois <[email protected]>
Date: Fri, 5 Nov 2010 08:54:25 +0100
Subject: [PATCH] link caml_hash_variant with -ldl

without that, one can run into the following issues, on non-Linux systems:
  cc -Wall -DG_LOG_DOMAIN=\"libCUDF\" -o caml_hash_variant caml_hash_variant.o 
dummy.o -L/usr/lib/ocaml -lcamlrun -lm -lcurses
  /usr/lib/ocaml/libcamlrun.a(unix.o): In function `caml_dlerror':
  (.text+0x16c): undefined reference to `dlerror'
  /usr/lib/ocaml/libcamlrun.a(unix.o): In function `caml_dlsym':
  (.text+0x17a): undefined reference to `dlsym'
  /usr/lib/ocaml/libcamlrun.a(unix.o): In function `caml_dlclose':
  (.text+0x19e): undefined reference to `dlclose'
  /usr/lib/ocaml/libcamlrun.a(unix.o): In function `caml_dlopen':
  (.text+0x1bb): undefined reference to `dlopen'
  collect2: ld returned 1 exit status
---
 c-lib/Makefile.variants |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/c-lib/Makefile.variants b/c-lib/Makefile.variants
index 19af0ea..fdf2655 100644
--- a/c-lib/Makefile.variants
+++ b/c-lib/Makefile.variants
@@ -65,7 +65,7 @@ cudf-variants.h: caml_hash_variant Makefile.variants
 caml_hash_variant: caml_hash_variant.o
        > dummy.ml
        ocamlc -o dummy.o -output-obj dummy.ml
-       $(CC) $(CFLAGS) -o $@ $< dummy.o -L$(OCAML_LIBDIR) -lcamlrun -lm 
-lcurses
+       $(CC) $(CFLAGS) -o $@ $< dummy.o -L$(OCAML_LIBDIR) -lcamlrun -lm 
-lcurses -ldl
        @rm -f dummy.*
 
 clean: clean-variants
-- 
1.7.2.3


--- End Message ---
--- Begin Message ---
Source: cudf
Source-Version: 0.5.99-2

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

cudf-tools_0.5.99-2_amd64.deb
  to main/c/cudf/cudf-tools_0.5.99-2_amd64.deb
cudf_0.5.99-2.debian.tar.gz
  to main/c/cudf/cudf_0.5.99-2.debian.tar.gz
cudf_0.5.99-2.dsc
  to main/c/cudf/cudf_0.5.99-2.dsc
libcudf-dev_0.5.99-2_amd64.deb
  to main/c/cudf/libcudf-dev_0.5.99-2_amd64.deb
libcudf-ocaml-dev_0.5.99-2_amd64.deb
  to main/c/cudf/libcudf-ocaml-dev_0.5.99-2_amd64.deb



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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stefano Zacchiroli <[email protected]> (supplier of updated cudf 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 [email protected])


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

Format: 1.8
Date: Fri, 06 May 2011 21:21:03 +0200
Source: cudf
Binary: libcudf-ocaml-dev libcudf-dev cudf-tools
Architecture: source amd64
Version: 0.5.99-2
Distribution: unstable
Urgency: low
Maintainer: Debian OCaml Maintainers <[email protected]>
Changed-By: Stefano Zacchiroli <[email protected]>
Description: 
 cudf-tools - command line tools for package upgrade problem descriptions
 libcudf-dev - C library to access descriptions of package upgrade problems
 libcudf-ocaml-dev - OCaml library to access descriptions of package upgrade 
problems
Closes: 602489
Changes: 
 cudf (0.5.99-2) unstable; urgency=low
 .
   [ Ralf Treinen ]
   * Add debian/watch.
   * Switched to debian source version "3.0 (quilt)" (no change apart from
     adding debian/source)
   * Put maintainer=debian-ocaml-maintainers, Zack and me as uploaders,
     with the previous maintainer's blessing.
 .
   [ Stefano Zacchiroli ]
   * uploading to unstable
   * debian/control: bump Standards-Version to 3.9.2 (no changes needed)
   * debian/patches/
     - add patch link-caml_hash_variant-with-ldl.patch to avoid link
       failure with recent binutils (and on non-Linux systems). Thanks
       Cyril Brulebois for the patch! (Closes: #602489)
Checksums-Sha1: 
 f4fd8c2004b8d1416548fb5c166bb133fc5b0d8e 1386 cudf_0.5.99-2.dsc
 bb4621893875a66fb9643ccc4968adccb2d2e74b 4868 cudf_0.5.99-2.debian.tar.gz
 bed62154e5a61f1816cffded2e6b45eeb9a135ca 181006 
libcudf-ocaml-dev_0.5.99-2_amd64.deb
 2ddb63088fa5f8b71cc897de0b1e6c3294411a56 166758 libcudf-dev_0.5.99-2_amd64.deb
 76f0bd79041213f776430b92e517b81eef5325e6 220798 cudf-tools_0.5.99-2_amd64.deb
Checksums-Sha256: 
 554466a3242c2b80712aa40905ca22c64c2937dbc2118ed9d4eaab1cd42d1d23 1386 
cudf_0.5.99-2.dsc
 afedc884517c50bce4ab114c5443ce7da6348ae5fcc52a85bb1b55bb5251a961 4868 
cudf_0.5.99-2.debian.tar.gz
 48650e604b7d48dba6e3f80ddf9ad2f81dbf09eeac0f1b2c603d189d2dd1ca4c 181006 
libcudf-ocaml-dev_0.5.99-2_amd64.deb
 82674e392884a63664b8745f85a75a3252780d73d727f96b9542e24c9e7e9a6e 166758 
libcudf-dev_0.5.99-2_amd64.deb
 a5e3cb1aaeb74e70253c3cd1f5b43da3dff81575b34d0eac9ed25770acf95ed8 220798 
cudf-tools_0.5.99-2_amd64.deb
Files: 
 ea893e0a4d6600b4b24a661cfa3a8aed 1386 devel optional cudf_0.5.99-2.dsc
 578c80dc64026925fab163bcf10c7ba9 4868 devel optional 
cudf_0.5.99-2.debian.tar.gz
 31c4d606e040f871c819a625002b781c 181006 ocaml optional 
libcudf-ocaml-dev_0.5.99-2_amd64.deb
 8bb01e824b2668fb818332dd64c17372 166758 libdevel optional 
libcudf-dev_0.5.99-2_amd64.deb
 85375f8bc6a511259d168bb34dd72872 220798 devel optional 
cudf-tools_0.5.99-2_amd64.deb

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

iD8DBQFNxEw51cqbBPLEI7wRAkl+AKCjozg55L2VgoNL+z6ewAYCkRqevgCfeSKn
PsFxdHYvgKXYNorOAcDPJ2Q=
=YCsM
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to