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

Problem building libbdvmi. #97

Open
MacharlaLalithAkash opened this issue Feb 27, 2024 · 2 comments
Open

Problem building libbdvmi. #97

MacharlaLalithAkash opened this issue Feb 27, 2024 · 2 comments

Comments

@MacharlaLalithAkash
Copy link

I am setting up the guest Ubuntu-22.04. I am trying to build libbdvmi and this is the error I am getting.

make  all-recursive
make[1]: Entering directory '/home/hvmi/gitrepos/libbdvmi/build'
Making all in src
make[2]: Entering directory '/home/hvmi/gitrepos/libbdvmi/build/src'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/hvmi/gitrepos/libbdvmi/build/src'
Making all in include
make[2]: Entering directory '/home/hvmi/gitrepos/libbdvmi/build/include'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/hvmi/gitrepos/libbdvmi/build/include'
Making all in examples
make[2]: Entering directory '/home/hvmi/gitrepos/libbdvmi/build/examples'
/bin/bash ../libtool  --tag=CXX   --mode=link g++ -std=gnu++14  -I/include  -W -Wall -DXC_WANT_COMPAT_MAP_FOREIGN_API -DXC_WANT_COMPAT_EVTCHN_API -DXC_WANT_COMPAT_DEVICEMODEL_API -O2  -L/lib -Wl,-rpath,/lib  -o hookguest hookguest.o ../src/libbdvmi.la -ldl -lxenstore -lxenctrl 
libtool: link: g++ -std=gnu++14 -I/include -W -Wall -DXC_WANT_COMPAT_MAP_FOREIGN_API -DXC_WANT_COMPAT_EVTCHN_API -DXC_WANT_COMPAT_DEVICEMODEL_API -O2 -Wl,-rpath -Wl,/lib -o .libs/hookguest hookguest.o  -L/lib ../src/.libs/libbdvmi.so -ldl -lxenstore -lxenctrl -pthread
/usr/bin/ld: ../src/.libs/libbdvmi.so: undefined reference to `kvmi_set_ept_page_conv'
/usr/bin/ld: ../src/.libs/libbdvmi.so: undefined reference to `kvmi_get_ept_page_conv'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:397: hookguest] Error 1
make[2]: Leaving directory '/home/hvmi/gitrepos/libbdvmi/build/examples'
make[1]: *** [Makefile:468: all-recursive] Error 1
make[1]: Leaving directory '/home/hvmi/gitrepos/libbdvmi/build'
make: *** [Makefile:377: all] Error 2

I don't know what to do. Can you please help me resolve this issue? I didn't find any help online about this. I have checked build/src/.lib/ folder for libbdvmi.so and I found it. By the way these are the steps I followed(Same as mentioned int he documentation).

sudo apt install libboost-all-dev libxen-dev pkg-config uuid-dev
git clone https://github.com/bitdefender/libbdvmi.git
cd libbdvmi
./bootstrap
mkdir build
cd build
../configure --prefix=/usr/local --enable-kvmi --enable-optimize
make
sudo make install
@ianichitei
Copy link
Collaborator

This should probably be opened as an issue on https://github.com/bitdefender/libbdvmi.

@MacharlaLalithAkash
Copy link
Author

This should probably be opened as an issue on https://github.com/bitdefender/libbdvmi.

Yeah. will do that. Thanks for the reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants