You were right about dmake. Doing a s#C:\def\fun\pugs\(pugs.exe)#$1#g on the Makefile removes the previous error. I also tried to modify the Makefile.PL to not use a complete path, which gave the same result. So now I get to build the sources, but linking fails:
C:\dev\fun\pugs>dmake
ghc --make -o pugs src/Main.hs -isrc
Chasing modules from: src/Main.hs
Skipping Cont ( src/Cont.hs, src/Cont.o )
Skipping Internals ( src/Internals.hs, src/Internals.o )
Skipping Context ( src/Context.hs, src/Context.o )
Skipping AST ( src/AST.hs, src/AST.o )
Skipping Lexer ( src/Lexer.hs, src/Lexer.o )
Skipping Monads ( src/Monads.hs, src/Monads.o )
Skipping Bind ( src/Bind.hs, src/Bind.o )
Skipping Junc ( src/Junc.hs, src/Junc.o )
Skipping Shell ( src/Shell.hs, src/Shell.o )
Skipping Pretty ( src/Pretty.hs, src/Pretty.o )
Skipping Help ( src/Help.hs, src/Help.o )
Skipping Parser ( src/Parser.hs, src/Parser.o )
Skipping Prim ( src/Prim.hs, src/Prim.o )
Skipping Eval ( src/Eval.hs, src/Eval.o )
Skipping Main ( src/Main.hs, src/Main.o )
Linking ...
C:/ghc/ghc-6.2.2/libHSreadline.a(Readline__56.o)(.text+0x33):ghc11748.
+hc: undefined reference to `rl_initialize'
C:/ghc/ghc-6.2.2/libHSreadline.a(Readline__96.o)(.text+0xaa):ghc11748.
+hc: undefined reference to `readline'
C:/ghc/ghc-6.2.2/libHSreadline.a(Readline__98.o)(.text+0x63):ghc11748.
+hc: undefined reference to `add_history'
dmake.exe: Error code 1, while making 'pugs.exe'
I tried with source both from the darcs repository and the subversion repository at http://svn.openfoundry.org/pugs/. They both give the same result. Looks like my windows box lacks some neat library. Oh well, I've got OS X at home, so perhaps it will work out better there.
I hope this doesn't take your attention from making Pugs better, though!
Edit: autrijus, would you prefer to use rt.cpan.org instead of posting here? Is feedback like this at all useful for Pugs? Just wondering if there is a small way I can help ...
pernod
--
Mischief. Mayhem. Soap.
|