Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libvirt installation fails on OS X #2621

Closed
MagnusS opened this issue Sep 6, 2014 · 3 comments
Closed

libvirt installation fails on OS X #2621

MagnusS opened this issue Sep 6, 2014 · 3 comments
Labels

Comments

@MagnusS
Copy link
Contributor

MagnusS commented Sep 6, 2014

Error message:

===== ERROR while installing libvirt.0.6.1.2 =====
# opam-version 1.1.1
# os           darwin
# command      make all
# path         /Users/magnus/.opam/system/build/libvirt.0.6.1.2
# compiler     system (4.01.0)
# exit-code    2
# env-file     /Users/magnus/.opam/system/build/libvirt.0.6.1.2/libvirt-13076-ffb3fd.env
# stdout-file  /Users/magnus/.opam/system/build/libvirt.0.6.1.2/libvirt-13076-ffb3fd.out
# stderr-file  /Users/magnus/.opam/system/build/libvirt.0.6.1.2/libvirt-13076-ffb3fd.err
### stdout ###
# ...[truncated]
# config.status: creating libvirt/Makefile
# config.status: creating examples/Makefile
# config.status: creating config.h
# for d in libvirt examples; do \
#     /Applications/Xcode.app/Contents/Developer/usr/bin/make -C $d all; \
#     if [ $? -ne 0 ]; then exit 1; fi; \
#   done
# rm -f .depend
# ocamlfind ocamldep -package unix  libvirt.mli libvirt_version.mli libvirt.ml libvirt_version.ml > .depend
# cc -g -O2 -I.. -I"/usr/local/lib/ocaml" -g -Wall -Werror -fPIC   -c -o libvirt_c.o libvirt_c.c
### stderr ###
# ...[truncated]
#       ~ ^  ~~~~
# ./libvirt_c_epilogue.c:141:9: error: comparison of 0 <= unsigned enum expression is always true [-Werror,-Wtautological-compare]
#   if (0 <= code && code <= MAX_VIR_DOMAIN)
#       ~ ^  ~~~~
# ./libvirt_c_epilogue.c:157:9: error: comparison of 0 <= unsigned enum expression is always true [-Werror,-Wtautological-compare]
#   if (0 <= code && code <= MAX_VIR_LEVEL)
#       ~ ^  ~~~~
#3 errors generated.
# make[1]: *** [libvirt_c.o] Error 1
# make: *** [all] Error 1

Works with:

CPPFLAGS="-Wno-error=tautological-compare -Wno-error=unused-function"  opam install libvirt
@dsheets
Copy link
Member

dsheets commented Apr 1, 2015

djs55/ocaml-libvirt is the maintainer's (@djs55) repo from https://libvirt.org/ocaml/ which has a version 0.6.1.4 released (but not including a fix for this issue, I believe). This issue needs to make its way back to one of those repositories.

@samoht
Copy link
Member

samoht commented Apr 1, 2015

and missing depext for osx as well.

@MagnusS
Copy link
Contributor Author

MagnusS commented Nov 11, 2015

fixed in #5121 and #5112

@MagnusS MagnusS closed this as completed Nov 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants