Re: ignore-errors for missing foreign functions
Raymond Toy <[email protected]> Thu, 31 Jan 2019 22:13:05 -0800
| Newsgroups | gmane.lisp.cmucl.devel |
|---|---|
| Message-ID | <CAG14z1ErwnjAUPXXrbzsc=h+EU3+sS1ZvRJY4Zh+-ZJnbMJ8nw@mail.gmail.com> |
It would be great if you could file an issue for this at https://gitlab.common-lisp.net/cmucl/cmucl/issues. Then it won't get lost. If you can't, that's ok. I'll try to fill out an issue. It will take me a couple days to get around to looking at this. On Sun, Jan 27, 2019 at 6:41 PM Anton Vodonosov <[email protected]> wrote: > Hello CMUCL list, > > Code like this: > > (ignore-errors > (cffi:defcfun ("SSL_CTX_set_default_verify_dir" > ssl-ctx-set-default-verify-dir) > :int > (ctx :pointer))) > > fails despite ignore-errors if the foreign function is absent (the > libssl.so version loaded doesn't have it). > > It fails when the fasl file containing this code is loaded: > > KERNEL:SIMPLE-PROGRAM-ERROR: Undefined foreign symbol: > "SSL_CTX_set_default_verify_dir" > > I wanted to look in the manual, but the manual links provided at > https://www.cons.org/cmucl/doc/index.html are broken (e.g. > http://common-lisp.net/project/cmucl/doc/cmu-user/, > http://common-lisp.net/project/cmucl/doc/cmu-user-html.tgz) > > The same failure even if we modify the code this way: > > (when nil > (cffi:defcfun ("SSL_CTX_set_default_verify_dir" > ssl-ctx-set-default-verify-dir) > :int > (ctx :pointer))) > > Is there a way to not fail when the function is absent? > > Best regards, > - Anton > > _______________________________________________ > cmucl-imp mailing list > [email protected] > https://lists.zs64.net/mailman/listinfo/cmucl-imp > -- Ray _______________________________________________ cmucl-imp mailing list [email protected] https://lists.zs64.net/mailman/listinfo/cmucl-imp