[ocaml-ctypes] ctypes oasis

David Sheets sheets at alum.mit.edu
Wed Feb 12 13:50:54 GMT 2014


On Wed, Feb 12, 2014 at 10:23 AM, Florian Pichlmeier
<florian.pichlmeier at mytum.de> wrote:
> Hi,
>
> i am still writing on my small zeromq binding, and thanks to your contributions it grows, but
> i still have problems with runtime exceptions like this one
>
> Fatal error: exception Dl.DL_error("./bin-client: undefined symbol: zauth_new")
>
> I was wondering if the reason for this problem lies with in my oasis file
>
> OASISFormat: 0.3
> Name:        czmq
> Version:     0.1.0
> Synopsis:    OCaml binding for the High-level C Binding for Zeromq
> Authors:     Florian Pichlmeier
> License:     LGPL-3.0 with OCaml linking exception
> Plugins:     META (0.3), StdFiles (0.3), DevFiles (0.3)
>
> BuildDepends:
>   ctypes.foreign,
>   threads
>
> PreInstallCommand: cc -shared -o _build/lib/dllczmq_stubs.so -lsodium -lczmq -lzmq
>
> Library "czmq"
>   Path:       lib
>   BuildTools: ocamlbuild
>   Modules:    Czmq
>   InternalModules: Context,
>               Socket,
>               Poller,
>               Directory,
>               Auth,
>               Beacon,
>               Cert,
>               Certstore,
>               Config,
>               Clock,
>               Frame,
>               Msg
> #             Sys Structs,
>   CSources:   czmq.c
>   CCOpt:      -cclib,-Xlinker,-cclib,-no-as-needed,-Wl
>   CCLib:      -lsodium -lczmq -lzmq
>   DllLib:     -lczmq_stubs
>
> I have added the no-as-needed part to it but it still doesnt work.
>
> Is there an obvious mistake in my oasis file?

Hi Florian,

Please provide a link to the repository and revision/branch of the
buggy code so that interested parties can independently investigate
the build- and run-time behavior.

Thanks,

David

> Best regards,
>
> Florian
> _______________________________________________
> Ctypes mailing list
> Ctypes at lists.ocaml.org
> http://lists.ocaml.org/listinfo/ctypes


More information about the Ctypes mailing list