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

Re: Compilation problem: missing -lssl


Thomas Petazzoni wrote:

Tonight, I successfully compiled demexp 0.6 (an Ocaml software) in sane
stable and testing pbuilder environnements. However, compilation fails
in an unstable pbuilder environnement, with the following error message:

ocamlfind ocamlopt -linkpkg -I srv -I net -I lib -I bitv-0.5 -I
/usr/lib/ocaml/3.08.3/equeue -I /usr/lib/ocaml/3.08.3/rpc -I
/usr/lib/ocaml/3.08.3/gz -I /usr/lib/ocaml/3.08.3/camlp4 -I
/usr/lib/ocaml/3.08.3/ulex -I /usr/lib/ocaml/3.08.3/pcre -I
/usr/lib/ocaml/3.08.3/netstring -I /usr/lib/ocaml/3.08.3/cgi -I
/usr/lib/ocaml/3.08.3/curl -I /usr/lib/ocaml/3.08.3/expat -I
/usr/lib/ocaml/3.08.3/camlp4 -I /usr/lib/ocaml/3.08.3/cduce -I +camlp4
-thread -warn-error A -o srv/demexp-server str.cmxa bigarray.cmxa
nums.cmxa unix.cmxa equeue.cmxa rpc.cmxa gz.cmxa ulexing.cmxa pcre.cmxa
nums.cmxa netstring.cmxa compatcgi.cmxa cgi.cmxa curl.cmxa expat.cmxa
gramlib.cmxa camlp4/camlp4.cmxa camlp4/pr_o.cmx cduce_lib.cmxa
threads.cmxa net/messages_aux.cmx net/messages_clnt.cmx
net/messages_srv.cmx config.cmx bitv-0.5/bitv.cmx lib/perf.cmx
lib/norm.cmx lib/time.cmx lib/timestamp.cmx srv/srvflags.cmx
srv/dbitv.cmx srv/rss.cmx srv/id.cmx srv/participants.cmx
srv/classification.cmx srv/cpref.cmx srv/delegation.cmx srv/voting.cmx
srv/posbase.cmx srv/xml.cmx srv/io.cmx srv/work.cmx srv/demexp-server.cmx

/usr/bin/ld: cannot find -lssl

As demexp doesn't use ssl directly, I suppose it's one of its many
dependencies that uses it but doesn't declare it in its debian/control
file. Is it possible ?

The libssl seems to be used by libcurl-ocaml (and its the only one I see which could use openssl). libcurl-ocaml-dev is enforced by the dependency on cduce and depends on libcurl3-dev which itself depends on libssl-dev, so linking with ssl should't be much of a problem. I don't have the time to pbuild demexp. Could you check in your build logs if libssl-dev was installed? What were the versions of cduce, libcurl-ocaml-dev, libcurl3-dev and libssl-dev installed?



Reply to: