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

Where does the file "ntrljmp.h" come from? #8

Closed
peti opened this issue Oct 26, 2013 · 5 comments
Closed

Where does the file "ntrljmp.h" come from? #8

peti opened this issue Oct 26, 2013 · 5 comments

Comments

@peti
Copy link
Contributor

peti commented Oct 26, 2013

Hslua binds to a function called lua_neutralize_longjmp(), but that function doesn't seem to exist in any of the official LUA 5.1.x releases?

This makes it effectively impossible to use the -fsystem-lua flag.

@osa1
Copy link
Member

osa1 commented Oct 26, 2013

You're right. It should be fixed with commit cdbadd3 . Can you please try again?

Btw, I'm using this Makefile to compile hslua, this allows me to easily compile for different Lua versions, it may be helpful to you:

lua501:
        -ghc-pkg unregister hslua
        -rm -rf dist/
        cabal install --extra-include-dirs=/home/omer/opt/lua-5.1.5/include --extra-lib-dirs=/home/omer/opt/lua-5.1.5/lib --disable-documentation

lua502:
        -ghc-pkg unregister hslua
        -rm -rf dist/
        cabal install --extra-include-dirs=/home/omer/opt/lua-5.2.2/install/include --extra-lib-dirs=/home/omer/opt/lua-5.2.2/install/lib --disable-documentation

(you should set the paths)

@peti
Copy link
Contributor Author

peti commented Oct 27, 2013

Building hslua-0.3.7...
Preprocessing library hslua-0.3.7...
[1 of 2] Compiling Scripting.Lua    ( src/Scripting/Lua.hs, dist/build/Scripting/Lua.o )

src/Scripting/Lua.hs:179:1: Warning:
    Module `Prelude' does not export `catch'
[2 of 2] Compiling Scripting.Lua.ConfigFile ( src/Scripting/Lua/ConfigFile.hs, dist/build/Scripting/Lua/ConfigFile.o )

cbits/ntrljmp.c:11:20:
     fatal error: ldebug.h: No such file or directory
compilation terminated.

@osa1
Copy link
Member

osa1 commented Oct 27, 2013

did that help 682f179 ?

(sorry I can't try it on my system because 1) you don't provide enough information 2) I never install libraries system-wide(makes debugging harder) 3) even if I install it system-wide, generated pkg-config file doesn't work for some reason)

@peti
Copy link
Contributor Author

peti commented Oct 27, 2013

Yes, the new version seems to work fine. Thank you very much for your efforts!

@osa1 osa1 closed this as completed Oct 27, 2013
@osa1
Copy link
Member

osa1 commented Oct 27, 2013

new version uploaded to hackage.

pSub pushed a commit to pSub/nixpkgs that referenced this issue Oct 30, 2013
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

2 participants