Unable to build opa_v1869 on Fedora 16 (32 bits) #57

Closed
ghost opened this Issue Jun 4, 2012 · 1 comment

Comments

Projects
None yet
1 participant
@ghost

ghost commented Jun 4, 2012

Hi,

I get the following if i try to compile opa_v1869 on a Fedora 16 system:

./configure

Checking your OS... Linux
Checking your architecture... ix86
Checking ocamlopt... /usr/local/bin/ocamlopt.opt
Checking ocamlbuild... /usr/local/bin/ocamlbuild
Checking ocamldir... /usr/local/lib/ocaml
Checking ocaml version... 3.12.1
Checking your ocaml setup... 3.12.1, Unix 32bit
Checking for camlp4... /usr/local/bin/camlp4o
Checking for perl 5... found
Checking for java... found
Checking for camlidl... Disabled
Checking for ocamlfind... /usr/local/bin/ocamlfind
Checking for ssl... ocamlfind:/usr/local/lib/ocaml/site-lib/ssl, OK
Checking for cryptokit... ocamlfind:/usr/local/lib/ocaml/site-lib/cryptokit, OK
Checking for camlzip... +zip, OK
Checking for graph... +ocamlgraph, OK
Checking for ulex... ocamlfind:/usr/local/lib/ocaml/site-lib/ulex, OK

Congrats, you're all set. Installation will be done in:
/usr/local

gmake

Ocamlbuild plugin generation
_build/myocamlbuild -no-plugin -j 6 -tag debug opa/gen_opa_manpage.native tools/ofile.native protocols/genproto.native teerex/trx_ocaml.native pplib/ppml.native opatop/gen_opatop_manpage.native opa/syntaxHelper.native protocols/mlidl.native teerex/trx_interpreter.native manpages/genman.native opa/main.native protocols/wsdl2ml.native libbsl/bslregister.native bash_completion libbsl/bslbrowser.native libbsl/bslbrowser passlib/passdesign.native ocamlbase.top jslang/jsstat.native libbase/ocamlbase opabsl/opabslgen.bypass opatop/opatop.native database/database_server.native opabsl/serverLib.cmi qmlcompilers/qmljs_exe.native database/database_tool.native libbase/bslServerLib.ml tools/odep.native passlib/opatrack.sh pplib/ppopa.native tools/jschecker/compiler.jar tools/odeplink.native compilerlib/opadep.sh pplib/ppjs.native dissemination/spawn.sh opalang/opa2opa.native libbase/testfilepos.native libbase/gen_platform opa-packages.stamp

  • /usr/local/bin/ocamlc.opt -c -g -warn-error A -w L -w Z -I +zip -I libbase -o libbase/sgzip.cmo libbase/sgzip.ml
    File "libbase/sgzip.ml", line 35, characters 16-27:
    Error: Unbound module Zlib
    Command exited with code 2.
    Compilation unsuccessful after building 359 targets (0 cached) in 00:00:11.
    gmake: *** [all] Erreur 10

camlzip 1.0.4 has been "manually" installed (make all allopt install installopt). The installation directory contains:

ls /usr/local/lib/ocaml/zip/

dllcamlzip.so gzip.cmi gzip.cmx gzip.mli libcamlzip.a zip.a zip.cma zip.cmi zip.cmx zip.cmxa zip.mli

I'm not sure if it's a problem with camlzip and/or opa by the way. Because if i try to compile testzlib.ml (a test file included with camlzip), i get the same error:

ocamlc -ccopt -g -g -I +zip unix.cma zip.cma testzlib.ml

File "testzlib.ml", line 4, characters 2-15:
Error: Unbound module Zlib

Regards,
Stéphane.

Owner

hbbio commented Mar 5, 2013

This is a problem related to findlib. Specifically, this happens when camlzip is installed without findlib, when findlib itself is present on the system. When installing camlzip, type

sudo make install-findlib

instead of make install or make installopt.

hbbio closed this Mar 5, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment