All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: AL13N <alien@rmail.be>
Cc: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: ocaml bindings
Date: Wed, 3 Apr 2013 20:36:51 +0100	[thread overview]
Message-ID: <515C84D3.8050905@citrix.com> (raw)
In-Reply-To: <2486448.ytZYicRInf@localhost>

On 03/04/13 20:24, AL13N wrote:
> Op woensdag 3 april 2013 20:18:53 schreef AL13N:
>> Op woensdag 3 april 2013 18:12:21 schreef Andrew Cooper:
>>> On 03/04/13 18:03, AL13N wrote:
>>>> i'm the Mageia Xen package maintainer, and a user reported that i had
>>>> missing symbols in my ocaml bindings:
>>>>
>>>> https://bugs.mageia.org/show_bug.cgi?id=5199
>>>>
>>>> i'm using Xen 4.2.1 and ocaml 3.12.1
>>>>
>>>> the problem is that if you just to a simple hello world and you're using
>>>> certain bindings (eg: xeneventch): you get missing symbols. (others
>>>> appear
>>>> to be fine).
>>>>
>>>> I know next to nothing about ocaml, and it could be my build process,
>>>> but
>>>> i
>>>> kinda need some help about this.
>>>>
>>>> this is my spec file:
>>>> http://svnweb.mageia.org/packages/cauldron/xen/current
>>>>
>>>> Thanks in advance
>>>>
>>>> PS: we're at version freeze and release freeze is pretty soon :-S
>>> This is because the ocaml tools embed the build target links in the
>>> generated libs.  If you try to link against them later outside the build
>>> environment, it will break.
>>>
>>> Attached is the patch used to fix this problem for XenServer for Xen 4.2.
>> thanks alot for the very quick help, i'm testing right now...
> it seems the tests definately improve things...
>
> [root@localhost ~]# cat testfile.ml
> print_string "hello"
> [root@localhost ~]# ocamlfind ocamlc -o test -thread -package xeneventchn -
> linkpkg -g testfile.ml
> [root@localhost ~]# ./test
> Fatal error: cannot load shared library dllxeneventchn_stubs
> Reason: dllxeneventchn_stubs.so: cannot open shared object file: No such file or 
> directory
>
>
> (i have no idea if i need to ./test execute this, or if this is normal 
> behavior)

You presumably need tools/ocaml/libs/eventchn/dllxeneventchn_stubs.so on
your load path.  Under my system, would be installed to
/usr/local/lib/ocaml/3.11.2/xeneventchn/dllxeneventchn_stubs.so

>
> one more thing:
>
> [root@localhost ~]# cat /usr/lib64/ocaml/xenlight/META
> version = "4.1"
> description = "Xen Toolstack Library"
> archive(byte) = "xl.cma"
> archive(native) = "xl.cmxa"
>
> it should be xenlight.cma
>
> (the others are fine)

Looks like it is still broken upstream.  I will submit another patch.

>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

  reply	other threads:[~2013-04-03 19:36 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-03 17:03 ocaml bindings AL13N
2013-04-03 17:12 ` Andrew Cooper
2013-04-03 18:18   ` AL13N
2013-04-03 19:24     ` AL13N
2013-04-03 19:36       ` Andrew Cooper [this message]
2013-04-03 20:24         ` AL13N
2013-04-03 20:33           ` Andrew Cooper
2013-04-03 21:10             ` AL13N
2013-04-04 14:45             ` Jon Ludlam
2013-04-04 18:40               ` AL13N
2013-04-05 18:19                 ` Vincent Bernardoff
2013-04-05 19:05                   ` Anil Madhavapeddy
2013-04-05 19:13                     ` Andrew Cooper
2013-04-08 15:57                 ` ocaml bindings [and 1 more messages] Ian Jackson
2013-04-08 21:14                   ` AL13N

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=515C84D3.8050905@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=alien@rmail.be \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.