Re: List of FTBFS in Ubuntu
On 03-12-2010, Sylvain Le Gall <firstname.lastname@example.org> wrote:
> On 03-12-2010, Ralf Treinen <email@example.com> wrote:
>> On Fri, Dec 03, 2010 at 08:43:23AM +0100, Lucas Nussbaum wrote:
>>> >From time to time, I do archive rebuilds for Ubuntu too, and I thought
>>> that the results would be interesting for DDs as well, since a FTBFS in
>>> Ubuntu might indicate that the package will FTBFS in the future in
>>> Debian, due to toolchain changes for example.
>> Thanks, Lucas, that is useful.
>> There are quite some problems related to pcre (several ocaml packages
>> are bitten by that, but not only). Any idea to what this may be due?
> There is a problem with inversion of flags for library in pcre-ocaml. I
> had a discussion about this issue with Arch Linux pcre-ocaml (and oasis)
On 06/11/10 21:10, Sylvain Le Gall wrote:
> On Sat, Nov 06, 2010 at 08:54:13PM +0000, Magnus Therning wrote:
>> On 06/11/10 17:34, Sylvain Le Gall wrote:
>> I found a rather hackish way to fix it. 'ocamlobjinfo' now says
>> Extra C object files: -lpcre_stubs -L/usr/lib -lpcre -lpcre_stubs
>> Not the clean fix I would have liked, but it soves the problem. :-)
>> Now I only have some minor clean-ups and then I can update OASIS and its
>> Thanks for your help with this!
> Do you fix it in the pcre-ocaml package? or just for ocaml-expect build?
I fixed it in the pcre-ocaml package:
@@ -3,7 +3,7 @@ OCAMLMAKEFILE = ../OCamlMakefile
SOURCES := pcre.mli pcre.ml pcre_stubs.c
CFLAGS := -O2 $(shell pcre-config --cflags)
PCRE_FLAGS := $(shell pcre-config --libs)
-OCAMLLDFLAGS := -cclib "$(PCRE_FLAGS)"
+OCAMLLDFLAGS := -cclib -lpcre_stubs -cclib "$(PCRE_FLAGS)"
OCAMLMKLIB_FLAGS := $(PCRE_FLAGS)
RESULT := pcre
(the patch is from Magnus Therning)
Sylvain Le Gall