[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH for-4.21] ocaml/xsd_glue: Fix dynamic linking configuration


  • To: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Tue, 4 Nov 2025 16:58:25 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vtLpZZ4ESq/ed3WkfxLCgorHzR6X0X+uThKLdpEQba0=; b=f1Jur/DfBCZhS2EIFyWmvwv4MPfGTlzMEZjOSdSHEd24CrQrwVQjb7yqFVmz6+F+M+myJcOarm/kgfA8lM9h+yqwp9EJAy6Ob3E3x60AvS4CrtoSCS0jJ2ObE++hGQa+4sQRX9ZKTp54WjMCXCT3RiK7e8NBItoqpgf7GmZUh5V8k947qaoO6h+vSpNCR1mx6mi7dFW0W3Sk13tiMditxCIk+9PZrpd/+3+XhXQg2Mmfqwve+7y6HHGRLQO0u0DC5x3Zo7ZGa5LocFl/ErjDL7EvOhoHc9efiTb3hIhuUTIQsbkkBckY2yoKQUh4UNL//eisRGRFLQVylvlUjWRPEg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=keORC+2gmHuo3bKuUZLiLGq+H+DTYgJ64sdHozvWzZyXiKe0bspvlphHakLTqQ1YEOG/JW70bbz8VQM0+7LxJ36hZhj/smvFO4nWPTHjUYLdv0pUvWSdTqVuImU33K6jGtA5JZoxdLlxyh5CIjQt2yGqhcShNZZVn5tnyeHB3Iuhj+/iLZggQmZnw+0kswnSmku8Ssl8RfDNzXKy/fhMp66RHKXZ4F0yjEensmPZa07blHv85OpuOz8AHzbxw3SuSpVFEYCjyPUgEp5Ri5F3E/ZK5qNCf7uUWmtraP243q+V8jVPsoaV4HFnvniurNYo6oTZiIPzboJTqesNJDmpYg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Edwin Török <edwin.torok@xxxxxxxxxx>, Christian Lindig <christian.lindig@xxxxxxxxxx>, Rob Hoes <Rob.Hoes@xxxxxxxxxx>, Pau Ruiz Safont <pau.safont@xxxxxxxxxx>, Andrii Sultanov <andriy.sultanov@xxxxxxxxxx>, Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
  • Delivery-date: Tue, 04 Nov 2025 16:58:36 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Sorry, forgot the for-4.21 in the subject.

~Andrew

On 04/11/2025 4:56 pm, Andrew Cooper wrote:
> The latest oxenstored from Xapi-project fails to start up:
>
>   launch-xenstore[1201]: Starting /usr/sbin/oxenstored...
>   launch-xenstore[1222]: Fatal error: exception
>     Dynlink.Error (Dynlink.Cannot_open_dll "Dynlink.Error 
> (Dynlink.Cannot_open_dll
>     
> \"Failure(\\\"/usr/libexec/xen//ocaml/xsd_glue/xenctrl_plugin/domain_getinfo_v1.cmxs:
>     undefined symbol: xc_domain_getinfo_single\\\")\")")
>
> This is because domain_getinfo_v1.cmxs isn't dynamically linked correctly.
> Fill in the correct variable, and remove the xen prefix from xenctrl.
>
> Reported-by: Edwin Török <edwin.torok@xxxxxxxxxx>
> Suggested-by: Edwin Török <edwin.torok@xxxxxxxxxx>
> Fixes: a6576011a4d2 ("ocaml/libs: Implement a dynamically-loaded plugin for 
> Xenctrl.domain_getinfo")
> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
> ---
> CC: Christian Lindig <christian.lindig@xxxxxxxxxx>
> CC: Rob Hoes <Rob.Hoes@xxxxxxxxxx>
> CC: Pau Ruiz Safont <pau.safont@xxxxxxxxxx>
> CC: Andrii Sultanov <andriy.sultanov@xxxxxxxxxx>
> CC: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
>
> For 4.21.  Without this, we can't proceed with deprecate oxenstored.
>
> This wants backporting to 4.20 too.
>
> Previously this was hidden by oxenstored unexpectedly statically linking
> libxenctrl via the ocaml-evtchn bindings, and became exposed when the bindings
> were moved to use libxenevtchn.
> ---
>  tools/ocaml/libs/xsd_glue/domain_getinfo_plugin_v1/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/ocaml/libs/xsd_glue/domain_getinfo_plugin_v1/Makefile 
> b/tools/ocaml/libs/xsd_glue/domain_getinfo_plugin_v1/Makefile
> index 4be1feacfe24..6356159020c1 100644
> --- a/tools/ocaml/libs/xsd_glue/domain_getinfo_plugin_v1/Makefile
> +++ b/tools/ocaml/libs/xsd_glue/domain_getinfo_plugin_v1/Makefile
> @@ -11,7 +11,7 @@ OBJS = domain_getinfo_v1
>  INTF = $(foreach obj, $(OBJS),$(obj).cmi)
>  LIBS = domain_getinfo_v1.cmxa domain_getinfo_v1.cmxs
>  
> -LIBS_xsd_glue = $(call xenlibs-ldflags-ldlibs,xenctrl)
> +LIBS_domain_getinfo_v1 = $(call xenlibs-ldflags-ldlibs,ctrl)
>  
>  all: $(INTF) $(LIBS) $(PROGRAMS)
>  
>
> base-commit: 9632ce6fe5b288244d2550cd2e619a55c5168bf8




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.