[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Questions about gcc linker errors in crypto sub-directory
From: |
Gonglei (Arei) |
Subject: |
[Qemu-devel] Questions about gcc linker errors in crypto sub-directory |
Date: |
Mon, 26 Sep 2016 09:03:45 +0000 |
Hi Daniel,
I'm coding cryptodev-vhost-user.c as a new cryptodev backend,
but the gcc report some linker errors:
crypto/cryptodev-vhost-user.o: In function
`qcrypto_cryptodev_vhost_crypto_cleanup':
/mnt/sdb/gonglei/qemu.git/qemu/crypto/cryptodev-vhost-user.c:87: undefined
reference to `vhost_dev_cleanup'
crypto/cryptodev-vhost-user.o: In function
`qcrypto_cryptodev_vhost_crypto_init':
/mnt/sdb/gonglei/qemu.git/qemu/crypto/cryptodev-vhost-user.c:126: undefined
reference to `vhost_dev_init'
crypto/cryptodev-vhost-user.o: In function
`qcrypto_cryptodev_vhost_user_opened':
/mnt/sdb/gonglei/qemu.git/qemu/crypto/cryptodev-vhost-user.c:187: undefined
reference to `qemu_chr_find'
/mnt/sdb/gonglei/qemu.git/qemu/crypto/cryptodev-vhost-user.c:194: undefined
reference to `qemu_chr_fe_claim_no_fail'
crypto/cryptodev-vhost-user.o: In function `qcrypto_cryptodev_vhost_user_event':
/mnt/sdb/gonglei/qemu.git/qemu/crypto/cryptodev-vhost-user.c:213: undefined
reference to `qemu_chr_set_reconnect_time'
crypto/cryptodev-vhost-user.o: In function `qcrypto_cryptodev_vhost_user_init':
/mnt/sdb/gonglei/qemu.git/qemu/crypto/cryptodev-vhost-user.c:257: undefined
reference to `qemu_chr_add_handlers'
crypto/cryptodev-vhost-user.o: In function
`qcrypto_cryptodev_vhost_user_finalize':
/mnt/sdb/gonglei/qemu.git/qemu/crypto/cryptodev-vhost-user.c:353: undefined
reference to `qemu_chr_add_handlers'
/mnt/sdb/gonglei/qemu.git/qemu/crypto/cryptodev-vhost-user.c:354: undefined
reference to `qemu_chr_fe_release'
collect2: ld returned 1 exit status
make: *** [qemu-nbd] Error 1
Currently I only change the crypto/Makefile.objs:
diff --git a/crypto/Makefile.objs b/crypto/Makefile.objs
index b9ad26a..575f64e 100644
--- a/crypto/Makefile.objs
+++ b/crypto/Makefile.objs
@@ -28,6 +28,7 @@ crypto-obj-y += block-qcow.o
crypto-obj-y += block-luks.o
crypto-obj-y += cryptodev.o
crypto-obj-y += cryptodev-builtin.o
+crypto-obj-y += cryptodev-vhost-user.o
# Let the userspace emulators avoid linking gnutls/etc
crypto-aes-obj-y = aes.o
Any others do I need to change? Thanks!
Regards,
-Gonglei
- [Qemu-devel] Questions about gcc linker errors in crypto sub-directory,
Gonglei (Arei) <=