[ocaml-ctypes] ctypes oasis

Florian Pichlmeier florian.pichlmeier at mytum.de
Wed Feb 12 10:23:56 GMT 2014


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?

Best regards,

Florian 


More information about the Ctypes mailing list