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

Cannot install on OSX #6

Closed
richardipsum opened this issue Nov 1, 2017 · 3 comments
Closed

Cannot install on OSX #6

richardipsum opened this issue Nov 1, 2017 · 3 comments

Comments

@richardipsum
Copy link

Hi, I recently packaged your library for NixOS, the CI builds Darwin as well as Linux by default. There seem to be a number of issues that prevent this from working with OSX.

I fixed a bunch of things but finally when I try to run the example.lua file included in this git repo I get the following:

sh-3.2# lua test_iconv.lua 
lua: error loading module 'iconv' from file '/usr/local/lib/lua/5.2/iconv.so':
        dlopen(/usr/local/lib/lua/5.2/iconv.so, 6): Symbol not found: _iconv
  Referenced from: /usr/local/lib/lua/5.2/iconv.so
  Expected in: flat namespace
 in /usr/local/lib/lua/5.2/iconv.so
stack traceback:
        [C]: in ?
        [C]: in function 'require'
        test_iconv.lua:3: in main chunk
        [C]: in ?

I've been able to package another lua binding on OSX without issue, I'm not sure I understand why this binding should be any different. Fwiw, I also modified the Makefile to link with libiconv, so it's not clear to me why the symbol cannot be found.

Thanks,
Richard

@alerque
Copy link
Member

alerque commented Oct 17, 2023

If you (or anybody) are still around and can check this now it would be appreciated. I don't have access to a macOS machine to test on but would be happy to facilitate if somebody wanted to work out what changes need to be made (if any) at this point.

@Tieske
Copy link
Member

Tieske commented Oct 30, 2023

#12 was merged. @richardipsum you can try the dev rockspec now (on master). Please let me know if that works.

@Tieske
Copy link
Member

Tieske commented Oct 30, 2023

just released 7.1, with the fix. Closing this.

@Tieske Tieske closed this as completed Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants