-
Notifications
You must be signed in to change notification settings - Fork 92
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
Can't build on macOS #50
Comments
You must configure bash to support extensions; it's not the default. I believe the option to bash's |
That said, I also do not see the symbol we're looking for in a recent ish bash (5.0.11). Instead I see the similarly named
If the output is empty, you're missing the linker flag above; if the output matches, but does not have the leading underscore, we need to fix ctypes.sh configure. Thanks for the report! |
Thank you so much @cemeyer, that's very helpful. I have just rebuilt my
|
Since I'm on macOS,
|
Follow-up question, is ctypes.sh finding the correct bash (your 5.x) and not the ancient one OSX ships with? |
I'm a bit confused, it doesn't even get to trying to load it, that error is just from trying to compile it... (If it compiles successfully, then it tries to load it like That seems like just standard C to me, what happens if you do this on the command-line? extern int num_shell_builtins;
int test()
{
return num_shell_builtins;
}
The flags look right to me in your output, |
Here's the test that it's running: https://github.com/taviso/ctypes.sh/blob/master/configure.ac#L105 |
Would you know how to verify that @cemeyer? I've got the newer bash set in my I've managed to get a bit further; adding an additional linker flag
However after running
There are however |
@taviso I tried what you've suggested, thank you.
|
@taviso Trying different flags allows me to compile it successfully though.
|
@beaumartinez Does |
Re ctypes.so in usr/local/lib, can you try setting |
(MacOS is a weird ass unix and I’m totally unfamiliar with it, sorry. Just guessing in the dark here.) |
@cemeyer Unfortunately I tried setting I'm not that familiar with building C on macOS so we're both guessing in the dark :) |
@cemeyer Just to clarify this also compiles successfully.
|
Sorry, I’m out of ideas. 🥶 |
Hello, I'm having issues trying to build on macOS.
I use the latest version of bash (not the outdated version macOS comes with, so it should support bash plugins)
Running
./configure
gives meIn
config.log
I seeI don't know if this has something to do with
include/builtins.h
since that what defines theextern
ofnum_shell_builtins
. The only other thing I can think of is not havingstruct
support since I don't haveelfutils
installed (I don't think it builds for macOS), and the code it tries to compile has astruct
. I might be barking up the wrong tree though; I don't know how to resolve this myself.Thank you for your time.
The text was updated successfully, but these errors were encountered: