Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dynext for Racket[cs] ? #4

Open
bremner opened this issue Mar 8, 2024 · 4 comments
Open

Update dynext for Racket[cs] ? #4

bremner opened this issue Mar 8, 2024 · 4 comments

Comments

@bremner
Copy link

bremner commented Mar 8, 2024

What version of Racket are you using?
8.12 [cs]

What program did you run?

#lang racket/base
(require dynext/link)
(expand-for-link-variant (current-standard-link-libraries))

What should have happened?

I'm not sure. Maybe an error? The output of
'("/usr/lib/x86_64-linux-gnu/racket/mzdyn.o")
seems to be wrong for racket [cs]

If you got an error message, please include it here.

Please include any other relevant details

I don't know much about dynext, the example comes from a bug report on Debian.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1065597

My current understanding is that mzdyn.o is only built for racket[bc]

@samth
Copy link
Sponsor Member

samth commented Mar 8, 2024

The relevant code hasn't been touched in a very long time (12 or 23 years depending on how you want to count).

@samth samth transferred this issue from racket/racket Mar 8, 2024
@rlaboiss
Copy link

rlaboiss commented Mar 9, 2024

A subsidiary question: If mzdyn.o is not maintained anymore, what is the modern way of writing Racket extensions?

@samth
Copy link
Sponsor Member

samth commented Mar 9, 2024

Writing a library using the FFI is the recommended approach, as the page you linked says at the top. It's also the only approach that works on Racket CS.

@rlaboiss
Copy link

Ok, thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants