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

Bug#580029: FTBFS with OCaml 3.12



Package: src:ara
Version: 1.0.28
Severity: normal
Tags: patch

Hello,

While rebuilding all packages with a SVN snapshot of OCaml (version
3.12.0+dev17, revision 10268), your package failed to build on amd64.

Relevant part:
> ocamlopt.opt   -dtypes -thread -inline 99 -I ../util -I ../libara -I ../ledit -I ../common -I ../configfile -I +lablgtk2 threads.cmxa -cclib -lthreads str.cmxa -cclib -lstr unix.cmxa -cclib -lunix util.cmxa ledit.cmxa ara.cmxa common.cmxa configfile.cmxa debug.cmx opt.cmx config.cmx wrap.cmx pager.cmx dump.cmx cli.cmx -o ara
> /usr/bin/ld: cannot find -lstr
> collect2: ld returned 1 exit status
> File "caml_startup", line 1, characters 0-1:
> Error: Error during linking
> make[2]: *** [ara] Error 2
> make[2]: Leaving directory `/tmp/ara-1.0.28+3.12.0+dev17+10268/cli'
> make[1]: *** [native] Error 1
> make[1]: Leaving directory `/tmp/ara-1.0.28+3.12.0+dev17+10268'
> make: *** [build-stamp] Error 2

The full build log is available at:
  http://debian.glondu.net/debian/ocaml31120dev17r10268/failures/ara_1.0.28%2B3.12.0%2Bdev17%2B10268_amd64.build

The static library libstr.a containing C stubs for the OCaml str
library has been renamed to libcamlstr.a . However, ara shouldn't need
to refer explicitly to this library. Attached is a patch that fixes
the issue.


Best regards,

-- 
Stéphane


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
>From a3dff9f0d70cf98a5c4733942b5f2682a1559f53 Mon Sep 17 00:00:00 2001
From: Stephane Glondu <steph@glondu.net>
Date: Mon, 3 May 2010 10:23:51 +0200
Subject: [PATCH] Remove explicit -lstr while linking with str library

str.cm{,x}a contains the linking information for C stubs, so there is
no need to explicit it in programs using it. Moreover, the stub
library changed name in OCaml 3.12, making ara FTBFS.
---
 config/Makefile.config |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/config/Makefile.config b/config/Makefile.config
index 90ad080..f6bab17 100644
--- a/config/Makefile.config
+++ b/config/Makefile.config
@@ -30,7 +30,7 @@ WITHCONFIGFILE = configfile.cma
 
 WITHGRAPHICS = graphics.cma -cclib -lgraphics -cclib -L/usr/X11R6/lib -cclib -lX11
 WITHUNIX = unix.cma -cclib -lunix
-WITHSTR = str.cma -cclib -lstr
+WITHSTR = str.cma
 WITHNUMS = -Idct nums.cma -Ldct -cclib -lnums
 WITHTHREADS = threads.cma -cclib -lthreads
 WITHDBM = dbm.cma -cclib -lmldbm -cclib -lndbm
@@ -45,7 +45,7 @@ WITHPCRE = -I +pcre -cclib -lpcre pcre.cma
 
 #ocamlc -custom other options graphics.cma other files -cclib -lgraphics -cclib -lX11
 #ocamlc -thread -custom other options threads.cma other files -cclib -lthreads
-#ocamlc -custom other options str.cma other files -cclib -lstr
+#ocamlc -custom other options str.cma other files
 #ocamlc -custom other options nums.cma other files -cclib -lnums
 #ocamlc -custom other options unix.cma other files -cclib -lunix
 #ocamlc -custom other options dbm.cma other files -cclib -lmldbm -cclib -lndbm
-- 
1.7.0


Reply to: