build: fix mingw build without sasl

Detected by autogen.sh on a cross-mingw build:

Creating library file: .libs/libvirt.dll.a
Cannot export virNetSASLContextCheckIdentity: symbol not defined
Cannot export virNetSASLContextNewServer: symbol not defined
...

* src/libvirt_private.syms (virnetsaslcontext.h): Move symbols...
* src/libvirt_sasl.syms: ...to new file.
* src/Makefile.am (USED_SYM_FILES) [HAVE_SASL]: Use new file.
(EXTRA_DIST): Ship it.
This commit is contained in:
Eric Blake 2011-10-11 16:22:44 -06:00
parent bbbdc14854
commit 83ad88b7bd
3 changed files with 29 additions and 19 deletions

View File

@ -1188,18 +1188,23 @@ if WITH_NETWORK
USED_SYM_FILES += libvirt_network.syms USED_SYM_FILES += libvirt_network.syms
endif endif
if HAVE_SASL
USED_SYM_FILES += libvirt_sasl.syms
endif
EXTRA_DIST += \ EXTRA_DIST += \
libvirt_public.syms \ libvirt_public.syms \
libvirt_private.syms \ libvirt_private.syms \
libvirt_driver_modules.syms \ libvirt_driver_modules.syms \
libvirt_bridge.syms \ libvirt_bridge.syms \
libvirt_daemon.syms \
libvirt_linux.syms \ libvirt_linux.syms \
libvirt_macvtap.syms \ libvirt_macvtap.syms \
libvirt_daemon.syms \ libvirt_network.syms \
libvirt_nwfilter.syms \ libvirt_nwfilter.syms \
libvirt_sasl.syms \
libvirt_vmx.syms \ libvirt_vmx.syms \
libvirt_xenxs.syms \ libvirt_xenxs.syms
libvirt_network.syms
GENERATED_SYM_FILES = libvirt.syms libvirt.def libvirt_qemu.def GENERATED_SYM_FILES = libvirt.syms libvirt.def libvirt_qemu.def

View File

@ -1178,20 +1178,6 @@ virNetMessageQueueServe;
virNetMessageSaveError; virNetMessageSaveError;
# virnetsaslcontext.h
virNetSASLContextCheckIdentity;
virNetSASLContextNewServer;
virNetSASLSessionExtKeySize;
virNetSASLSessionFree;
virNetSASLSessionGetIdentity;
virNetSASLSessionGetKeySize;
virNetSASLSessionListMechanisms;
virNetSASLSessionNewServer;
virNetSASLSessionSecProps;
virNetSASLSessionServerStart;
virNetSASLSessionServerStep;
# virnetserver.h # virnetserver.h
virNetServerAddProgram; virNetServerAddProgram;
virNetServerAddService; virNetServerAddService;
@ -1232,7 +1218,6 @@ virNetServerClientSendMessage;
virNetServerClientSetCloseHook; virNetServerClientSetCloseHook;
virNetServerClientSetIdentity; virNetServerClientSetIdentity;
virNetServerClientSetPrivateData; virNetServerClientSetPrivateData;
virNetServerClientSetSASLSession;
# virnetserverprogram.h # virnetserverprogram.h

20
src/libvirt_sasl.syms Normal file
View File

@ -0,0 +1,20 @@
#
# SASL-specific symbols
#
# virnetsaslcontext.h
virNetSASLContextCheckIdentity;
virNetSASLContextNewServer;
virNetSASLSessionExtKeySize;
virNetSASLSessionFree;
virNetSASLSessionGetIdentity;
virNetSASLSessionGetKeySize;
virNetSASLSessionListMechanisms;
virNetSASLSessionNewServer;
virNetSASLSessionSecProps;
virNetSASLSessionServerStart;
virNetSASLSessionServerStep;
# virnetserverclient.h
virNetServerClientSetSASLSession;