[Opa] Build failure on Linux

Prashanth Mundkur pmundkur.ocaml at gmail.com
Sat Aug 6 22:04:52 EDT 2011


Hi,

A current (today) git checkout of opalang doesn't build for me on
Linux.  It looks like the compiler fails with the following error:

Error: Unbound module Ssl

when compiling the generated file:

./_build/stdlib.core.security.ssl.opx.broken/_build/opa_stdlib_2ecore_2esecurity_2essl_001.ml

which has 

$ grep Ssl
./_build/stdlib.core.security.ssl.opx.broken/_build/opa_stdlib_2ecore_2esecurity_2essl_001.ml
let _v0_get_issuer_skip_9f334e45 _v3_eta0_9f334e45 = ((Ssl.get_issuer)
(_v3_eta0_9f334e45))
let _v0_get_subject_skip_9f334e45 _v4_eta0_9f334e45 =
((Ssl.get_subject) (_v4_eta0_9f334e45))

But I think I have the Ssl module installed:

$ ocamlfind list|grep ssl
lwt.ssl             (version: 2.1.1)
ssl                 (version: 0.4.0)

Perhaps when the generated ml code is compiled, ocaml is not called
via ocamlfind?

The full context for the build error msg is:

$ make
_build/myocamlbuild -no-plugin -j 6 -tag debug tools/ofile.native
protocols/genproto.native teerex/trx_ocaml.native pplib/ppml.native
opa/main.native protocols/mlidl.native teerex/trx_interpreter.native
bash_completion protocols/wsdl2ml.native libbsl/bslregister.native
opadoc/opadoc.native 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
+ MLSTATELIBS="/home/mundkur/src/opa/opalang/_build"
/home/mundkur/src/opa/opalang/_build/opa/main.native --autocompile
--conf conf --warn-error root --project-root
/home/mundkur/src/opa/opalang --no-stdlib "--rebuild"
stdlib/apis/common/api_libs.opa stdlib/apis/facebook/facebook.opa
stdlib/apis/facebook/auth/auth.opa
stdlib/apis/facebook/dialog/dialog.opa
stdlib/apis/facebook/graph/graph.opa stdlib/apis/facebook/lib/lib.opa
stdlib/apis/facebook/rest/rest.opa stdlib/apis/github/github.opa
stdlib/apis/github/auth/auth.opa stdlib/apis/github/commit/commit.opa
stdlib/apis/github/gist/gist.opa stdlib/apis/github/issue/issue.opa
stdlib/apis/github/lib/lib.opa stdlib/apis/github/network/network.opa
stdlib/apis/github/object/object.opa stdlib/apis/github/orgs/orgs.opa
stdlib/apis/github/pull/pull.opa stdlib/apis/github/repos/repos.opa
stdlib/apis/github/user/user.opa stdlib/apis/gmaps/gmaps.opa
stdlib/apis/irc/irc.opa stdlib/apis/oauth/oauth.opa
stdlib/apis/rdf/rdf_engine.opa stdlib/apis/rdf/rdf_parsers.opa
stdlib/apis/rdf/types.opa stdlib/apis/recaptcha/recaptcha.opa
stdlib/apis/twitter/twitter.opa
stdlib/apis/worldweather/worldweather.opa
stdlib/components/calendar/calendar.opa
stdlib/components/calendar/calendar_controls.opa
stdlib/components/calendar/calendar_meshup.opa
stdlib/components/calendar/common.opa stdlib/components/chat/chat.opa
stdlib/components/login/login.opa
stdlib/components/simpletable/simpletable.opa
stdlib/components/table/table.opa
stdlib/components/weather/weather.opa stdlib/core/binary.opa
stdlib/core/bool.opa stdlib/core/cactutf.opa
stdlib/core/core_client_code.opa stdlib/core/cps.opa
stdlib/core/debug.opa stdlib/core/deprecated.opa
stdlib/core/exception.opa stdlib/core/finite_single_thread_lazy.opa
stdlib/core/initial.opa stdlib/core/intra0.opa
stdlib/core/jsast_typedef.opa stdlib/core/list.opa
stdlib/core/llarray.opa stdlib/core/log.opa stdlib/core/magic.opa
stdlib/core/math.opa stdlib/core/mutable.opa stdlib/core/number.opa
stdlib/core/opatype.opa stdlib/core/opavalue.opa
stdlib/core/option.opa stdlib/core/order.opa stdlib/core/outcome.opa
stdlib/core/random.opa stdlib/core/reference.opa
stdlib/core/serverAst.opa stdlib/core/string.opa stdlib/core/text.opa
stdlib/core/textavl.opa stdlib/core/textralist.opa
stdlib/core/void.opa stdlib/core/args/command_line.opa
stdlib/core/cache/cache.opa stdlib/core/color/color.opa
stdlib/core/compare/compare.opa stdlib/core/date/date.opa
stdlib/core/date/date_private.opa stdlib/core/date/date_range.opa
stdlib/core/date/duration.opa stdlib/core/date/duration_private.opa
stdlib/core/db/db.opa stdlib/core/db/dbVirtual.opa
stdlib/core/db/dbset.opa stdlib/core/fresh/fresh.opa
stdlib/core/funaction/funaction.opa stdlib/core/iter/iter.opa
stdlib/core/js/jsast.opa stdlib/core/js/jsast_cleaning.opa
stdlib/core/loop/loop.opa stdlib/core/map/map.opa
stdlib/core/mutable/buffer/buffer.opa
stdlib/core/parser/opatypecast.opa stdlib/core/parser/parser.opa
stdlib/core/parser/parser_private.opa stdlib/core/parser/rules.opa
stdlib/core/qos/resource_tracker.opa stdlib/core/rpc/core/cell.opa
stdlib/core/rpc/core/client_event.opa
stdlib/core/rpc/core/client_reference.opa
stdlib/core/rpc/core/exports.opa
stdlib/core/rpc/core/fake_client_call_onserver.opa
stdlib/core/rpc/core/jsinterface.opa stdlib/core/rpc/core/json.opa
stdlib/core/rpc/core/network.opa stdlib/core/rpc/core/opa2js.opa
stdlib/core/rpc/core/oparpc.opa stdlib/core/rpc/core/opaserialize.opa
stdlib/core/rpc/core/scheduler.opa stdlib/core/rpc/core/session.opa
stdlib/core/rpc/core/session_private.opa
stdlib/core/rpc/core/thread_context.opa
stdlib/core/rpc/hlnet/hlnet.opa stdlib/core/rpc/maxint/max_int.opa
stdlib/core/security/ssl/ssl.opa stdlib/core/set/set.opa
stdlib/core/web/client/web_client.opa
stdlib/core/web/context/user_context.opa
stdlib/core/web/core/client.opa stdlib/core/web/core/connexion.opa
stdlib/core/web/core/event.opa stdlib/core/web/core/ip.opa
stdlib/core/web/core/reply.opa stdlib/core/web/core/uri.opa
stdlib/core/web/core/url.opa stdlib/core/web/core/web_info.opa
stdlib/core/web/core/web_utils.opa
stdlib/core/web/request/http_request.opa
stdlib/core/web/request/web_user_agent.opa
stdlib/core/web/resource/dynamic_resource.opa
stdlib/core/web/resource/resource.opa
stdlib/core/web/resource/resource_private.opa
stdlib/core/web/server/app_sources.opa
stdlib/core/web/server/client_code.opa
stdlib/core/web/server/server.opa
stdlib/core/web/server/server_event.opa
stdlib/core/web/server/server_private.opa stdlib/core/xhtml/canvas.opa
stdlib/core/xhtml/css.opa stdlib/core/xhtml/dom.opa
stdlib/core/xhtml/xhtml.opa stdlib/core/xmlm/xmlm.opa
stdlib/crypto/crypto.opa stdlib/graph/dot.opa stdlib/graph/fgraph.opa
stdlib/interactions/editable/editable.opa stdlib/io/file.opa
stdlib/multimap/multimap.opa stdlib/parser/posix_classes.opa
stdlib/profiler/profiler.opa stdlib/queue/queue.opa
stdlib/system/system.opa stdlib/tests/ok_ko.opa
stdlib/tests/test_suite.opa stdlib/themes/core.opa
stdlib/themes/default/theme.opa stdlib/themes/mlstate/theme.opa
stdlib/upload/upload.opa stdlib/web/client/client.opa
stdlib/web/mail/email.opa stdlib/web/mail/server.opa
stdlib/web/template/template.opa
stdlib/web/template/template_base_engine.opa
stdlib/web/template/template_type.opa
stdlib/widgets/accordion/accordion.opa
stdlib/widgets/anyvalue/anyvalue.opa
stdlib/widgets/appframe/appframe.opa stdlib/widgets/button/button.opa
stdlib/widgets/chart/bar.opa stdlib/widgets/chart/chart.opa
stdlib/widgets/chart/data.opa stdlib/widgets/chart/line.opa
stdlib/widgets/checkbox/checkbox.opa
stdlib/widgets/colorpicker/colorpicker.opa
stdlib/widgets/completion/completion.opa stdlib/widgets/core/core.opa
stdlib/widgets/core/styler.opa
stdlib/widgets/datepicker/datepicker.opa
stdlib/widgets/dateprinter/dateprinter.opa
stdlib/widgets/floatvalue/floatvalue.opa
stdlib/widgets/formbuilder/formbuilder.opa
stdlib/widgets/grid/grid.opa stdlib/widgets/hlist/hlist.opa
stdlib/widgets/icon/icon.opa stdlib/widgets/image/image.opa
stdlib/widgets/intvalue/intvalue.opa
stdlib/widgets/loginbox/loginbox.opa
stdlib/widgets/notification/notification.opa
stdlib/widgets/panelview/panelview.opa
stdlib/widgets/parallax/parallax.opa
stdlib/widgets/radiobutton/radiobutton.opa
stdlib/widgets/select/select.opa
stdlib/widgets/sidepanel/sidepanel.opa
stdlib/widgets/slider/slider.opa
stdlib/widgets/stringvalue/stringvalue.opa
stdlib/widgets/switch/switch.opa stdlib/widgets/tabs/tabs.opa
stdlib/widgets/tagcloud/tagcloud.opa
stdlib/widgets/textarea/textarea.opa
stdlib/widgets/texttrimmer/texttrimer.opa
File "opa_stdlib_2ecore_2esecurity_2essl_001.ml", line 86, characters
54-70:
Error: Unbound module Ssl
make[1]: *** [opa_stdlib_2ecore_2esecurity_2essl_001.cmx] Error 2
error during ocaml compilation -- the command was :
make --makefile=Makefile -W Makefile -j 7 cmxa -s
Command exited with code 2.
Compilation unsuccessful after building 2593 targets (2592 cached) in
00:00:51.
make: *** [all] Error 10


--
prashanth


More information about the Opa mailing list