Impossible to compile native binaries with Camomile

Bug #110954 reported by Erkki Seppälä
2
Affects Status Importance Assigned to Milestone
camomile (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Ubuntu Dapper, libcamomile-ocaml-dev 0.6.3-3:

Compiling the following fragment of code succeeds with ocamlc, but
fails with ocamlopt:

(* (try to) compile with: ocamlfind ocamlopt -linkpkg -package
   camomile camomileBug.ml *)
let _ =
  let module E = Camomile.CharEncoding in
    E.recode_string E.utf8 E.utf8 ""

This produces the linker errors (list truncated for brevity):
/usr/lib/ocaml/3.09.1/camomile/camomile.a(camomile.o): In function `camlCamomile__entry': undefined reference to `camlBitsvect'
/usr/lib/ocaml/3.09.1/camomile/camomile.a(camomile.o): In function `camlCamomile__entry': undefined reference to `camlBytesvect'
/usr/lib/ocaml/3.09.1/camomile/camomile.a(camomile.o): In function `camlCamomile__entry': undefined reference to `camlAvlTree'
/usr/lib/ocaml/3.09.1/camomile/camomile.a(camomile.o): In function `camlCamomile__entry': undefined reference to `camlISet'
/usr/lib/ocaml/3.09.1/camomile/camomile.a(camomile.o): In function `camlCamomile__entry': undefined reference to `camlIMap'
/usr/lib/ocaml/3.09.1/camomile/camomile.a(camomile.o): In function `camlCamomile__entry': undefined reference to `camlTbl31'
/usr/lib/ocaml/3.09.1/camomile/camomile.a(camomile.o): In function `camlCamomile__entry': undefined reference to `camlByte_labeled_dag'
/usr/lib/ocaml/3.09.1/camomile/camomile.a(camomile.o): In function `camlCamomile__entry': undefined reference to `camlXArray'
/usr/lib/ocaml/3.09.1/camomile/camomile.a(camomile.o): In function `camlCamomile__entry': undefined reference to `camlOOChannel'
/usr/lib/ocaml/3.09.1/camomile/camomile.a(camomile.o): In function `camlCamomile__entry': undefined reference to `camlUChar'
...

Apparently something related to building native libraries has been
done, because some patches related to that are used during the build
process, and also camomile.cmxa is produced. No dllcamomile.so,
though.

description: updated
Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10 beta?

Changed in camomile:
status: New → Incomplete
Revision history for this message
Erkki Seppälä (flux-inside) wrote : Re: [Bug 110954] Re: Impossible to compile native binaries with Camomile

On Tue, Oct 07, 2008 at 09:43:58PM -0000, Daniel T Chen wrote:
> Is this symptom still reproducible in 8.10 beta?

No idea, as I don't run bleeding edge Ubuntu :). However, I did
download the individual source package (plus patch) and compiled it
under Debian Unstable. I also needed to update the test case. The
revised test case is:

let _ =
  let module E = CamomileLibrary.Default.Camomile.CharEncoding in
    E.recode_string E.utf8 E.utf8 ""

Compiling the test case should work as earlier. I, however, used it
without installing it, so I just entered:

% ocamlopt bigarray.cmxa camomile.cmxa camomileBug.ml

in the package's directory after compiling the package. The
compilation (and linking) worked on my system without problems, so I
would expect it to work in Ubuntu also.

--
  _____________________________________________________________________
     / __// /__ ____ __ http://www.modeemi.fi/~flux/\ \
    / /_ / // // /\ \/ / \ /
   /_/ /_/ \___/ /_/\_\@modeemi.fi \/

Revision history for this message
Neil Munro (neilmunro-deactivatedaccount) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

I am marking this bug as invalid since it's not been touched since last year and that it's reported against an old version of Ubuntu which only receives security updates.

Please feel free to reopen this bug should the problem re-occur.

Changed in camomile (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.