vbmithr / ocaml-websocket

Websocket library for OCaml
ISC License
163 stars 44 forks source link

Build failure #17

Closed lpw25 closed 10 years ago

lpw25 commented 10 years ago

I get the following build failure when installing websocket.0.9 with OPAM:

ocamlfind ocamlopt -o setup.exe setup.ml || ocamlfind ocamlc -o setup.exe setup.ml || true
rm -f setup.cmi setup.cmo setup.cmx setup.o
./setup.exe -configure 

Configuration: 
ocamlfind: ........................................... /home/leo/.opam/4.01.0/bin/ocamlfind
ocamlc: .............................................. /home/leo/.opam/4.01.0/bin/ocamlc.opt
ocamlopt: ............................................ /home/leo/.opam/4.01.0/bin/ocamlopt.opt
ocamlbuild: .......................................... /home/leo/.opam/4.01.0/bin/ocamlbuild
Package name: ........................................ websocket
Package version: ..................................... 0.9
os_type: ............................................. Unix
system: .............................................. linux
architecture: ........................................ amd64
ccomp_type: .......................................... cc
ocaml_version: ....................................... 4.01.0
standard_library_default: ............................ /home/leo/.opam/4.01.0/lib/ocaml
standard_library: .................................... /home/leo/.opam/4.01.0/lib/ocaml
standard_runtime: .................................... /home/leo/.opam/4.01.0/bin/ocamlrun
bytecomp_c_compiler: ................................. gcc -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -fPIC
native_c_compiler: ................................... gcc -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT
model: ............................................... default
ext_obj: ............................................. .o
ext_asm: ............................................. .s
ext_lib: ............................................. .a
ext_dll: ............................................. .so
default_executable_name: ............................. a.out
systhread_supported: ................................. true
Install architecture-independent files dir: .......... /usr/local
Install architecture-dependent files in dir: ......... $prefix
User executables: .................................... $exec_prefix/bin
System admin executables: ............................ $exec_prefix/sbin
Program executables: ................................. $exec_prefix/libexec
Read-only single-machine data: ....................... $prefix/etc
Modifiable architecture-independent data: ............ $prefix/com
Modifiable single-machine data: ...................... $prefix/var
Object code libraries: ............................... $exec_prefix/lib
Read-only arch-independent data root: ................ $prefix/share
Read-only architecture-independent data: ............. $datarootdir
Info documentation: .................................. $datarootdir/info
Locale-dependent data: ............................... $datarootdir/locale
Man documentation: ................................... $datarootdir/man
Documentation root: .................................. $datarootdir/doc/$pkg_name
HTML documentation: .................................. $docdir
DVI documentation: ................................... $docdir
PDF documentation: ................................... $docdir
PS documentation: .................................... $docdir
findlib_version: ..................................... 1.5.1
is_native: ........................................... true
suffix_program: ...................................... 
Remove a file.: ...................................... rm -f
Remove a directory.: ................................. rm -rf
Turn ocaml debug flag on: ............................ true
Turn ocaml profile flag on: .......................... false
Compiler support generation of .cmxs.: ............... true
OCamlbuild additional flags: ......................... 
Create documentations: ............................... true
Compile tests executable and library and run them: ... false
pkg_lwt: ............................................. /home/leo/.opam/4.01.0/lib/lwt
pkg_lwt_syntax: ...................................... /home/leo/.opam/4.01.0/lib/lwt
pkg_cohttp_lwt: ...................................... /home/leo/.opam/4.01.0/lib/cohttp
pkg_ocplib_endian: ................................... /home/leo/.opam/4.01.0/lib/ocplib-endian
pkg_tls_lwt: ......................................... /home/leo/.opam/4.01.0/lib/tls

./setup.exe -build 
/home/leo/.opam/4.01.0/bin/ocamlopt.opt -I /home/leo/.opam/4.01.0/lib/ocaml/ocamlbuild unix.cmxa /home/leo/.opam/4.01.0/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /home/leo/.opam/4.01.0/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
/home/leo/.opam/4.01.0/bin/ocamlfind ocamldep -package cohttp.lwt -package lwt -syntax camlp4o -package lwt.syntax -package ocplib-endian -package tls.lwt -syntax camlp4o -modules lib/lwt_io_ext.ml > lib/lwt_io_ext.ml.depends
/home/leo/.opam/4.01.0/bin/ocamlfind ocamldep -package cohttp.lwt -package lwt -syntax camlp4o -package lwt.syntax -package ocplib-endian -package tls.lwt -syntax camlp4o -modules lib/websocket.mli > lib/websocket.mli.depends
/home/leo/.opam/4.01.0/bin/ocamlfind ocamlc -c -g -annot -package cohttp.lwt -package lwt -syntax camlp4o -package lwt.syntax -package ocplib-endian -package tls.lwt -syntax camlp4o -ppopt -lwt-debug -I lib -o lib/lwt_io_ext.cmo lib/lwt_io_ext.ml
+ /home/leo/.opam/4.01.0/bin/ocamlfind ocamlc -c -g -annot -package cohttp.lwt -package lwt -syntax camlp4o -package lwt.syntax -package ocplib-endian -package tls.lwt -syntax camlp4o -ppopt -lwt-debug -I lib -o lib/lwt_io_ext.cmo lib/lwt_io_ext.ml
File "lib/lwt_io_ext.ml", line 24, characters 31-37:
Error: Unbound value client
Command exited with code 2.
vbmithr commented 10 years ago

This is because websocket is based on ocaml-tls HEAD and not the version in OPAM. Technically the thing I will do is remove this package from OPAM for now. Thanks for pointing out.