Re: [Haskell-cafe] linking errors while compile hugs98 in macos
On 1/02/2013, at 6:19 PM, Brandon Allbery wrote: > Probably you could, but the effort needed might be significant. In > particular fixing things like environ see > https://bugs.ruby-lang.org/attachments/2591/ruby-changes.patch for the kind > of change you'll need to make, although I have to say the way they chose to > do it is risky at best (but sadly typical). The Ruby patch pointed to does not explain _why_ it is needed. 'environ' is required by the Single Unix Specification (at least in issue 7; I don't have an earlier version handy just now). And it works just fine in MacOS 10.6 and did in 10.5 (32-bit and 64-bit). ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] linking errors while compile hugs98 in macos
Thanks. I will have a try. On Fri, Feb 1, 2013 at 11:15 PM, Rustom Mody wrote: > On Fri, Feb 1, 2013 at 8:45 AM, Junior White wrote: > >> Sadly! I like hugs because it can embed in my game client as lua. For >> game logic language, I think the following properties are important: >> 1. Portable, works on pc,macosx,ios,android even flash or web. >> 2. Intepret, for quick develop, quick test. >> 3. Hot code load, for online bugfix. >> 4. Small, game client need to be as small as possiable >> >> So that lua best fits the rule very well, but i like haskell much more. >> After doing some research, I find in the haskell world, there is a hugs >> fits my demands. I'm sad to know that no one is maintaining hugs any more. >> I asking someone to keep develop on it, if no one, can I do it myself? >> >> >> > I used gofer (predecessor of hugs) to teach programming in the early 90s. > Some changes which I made to it are here > https://github.com/rusimody/gofer > It did compile a few months ago with gcc 4.7 > > Rusi > -- > http://www.the-magus.in > http://blog.languager.org > > ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] linking errors while compile hugs98 in macos
On Fri, Feb 1, 2013 at 8:45 AM, Junior White wrote: > Sadly! I like hugs because it can embed in my game client as lua. For game > logic language, I think the following properties are important: > 1. Portable, works on pc,macosx,ios,android even flash or web. > 2. Intepret, for quick develop, quick test. > 3. Hot code load, for online bugfix. > 4. Small, game client need to be as small as possiable > > So that lua best fits the rule very well, but i like haskell much more. > After doing some research, I find in the haskell world, there is a hugs > fits my demands. I'm sad to know that no one is maintaining hugs any more. > I asking someone to keep develop on it, if no one, can I do it myself? > > > I used gofer (predecessor of hugs) to teach programming in the early 90s. Some changes which I made to it are here https://github.com/rusimody/gofer It did compile a few months ago with gcc 4.7 Rusi -- http://www.the-magus.in http://blog.languager.org ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] linking errors while compile hugs98 in macos
Thanks! With your help, I have compiled hugs on my macbook! I'll try to embed it into my game client engine next week. On Fri, Feb 1, 2013 at 1:19 PM, Brandon Allbery wrote: > On Thu, Jan 31, 2013 at 10:15 PM, Junior White wrote: > >> So that lua best fits the rule very well, but i like haskell much more. >> After doing some research, I find in the haskell world, there is a hugs >> fits my demands. I'm sad to know that no one is maintaining hugs any more. >> I asking someone to keep develop on it, if no one, can I do it myself? >> > > Probably you could, but the effort needed might be significant. In > particular fixing things like environ see > https://bugs.ruby-lang.org/attachments/2591/ruby-changes.patch for the > kind of change you'll need to make, although I have to say the way they > chose to do it is risky at best (but sadly typical). Probably something > similar for other missing symbols; feel free to ask me for help in private > email. > > -- > brandon s allbery kf8nh sine nomine > associates > allber...@gmail.com > ballb...@sinenomine.net > unix, openafs, kerberos, infrastructure, xmonad > http://sinenomine.net > ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] linking errors while compile hugs98 in macos
On Thu, Jan 31, 2013 at 10:15 PM, Junior White wrote: > So that lua best fits the rule very well, but i like haskell much more. > After doing some research, I find in the haskell world, there is a hugs > fits my demands. I'm sad to know that no one is maintaining hugs any more. > I asking someone to keep develop on it, if no one, can I do it myself? > Probably you could, but the effort needed might be significant. In particular fixing things like environ see https://bugs.ruby-lang.org/attachments/2591/ruby-changes.patch for the kind of change you'll need to make, although I have to say the way they chose to do it is risky at best (but sadly typical). Probably something similar for other missing symbols; feel free to ask me for help in private email. -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] linking errors while compile hugs98 in macos
Sadly! I like hugs because it can embed in my game client as lua. For game logic language, I think the following properties are important: 1. Portable, works on pc,macosx,ios,android even flash or web. 2. Intepret, for quick develop, quick test. 3. Hot code load, for online bugfix. 4. Small, game client need to be as small as possiable So that lua best fits the rule very well, but i like haskell much more. After doing some research, I find in the haskell world, there is a hugs fits my demands. I'm sad to know that no one is maintaining hugs any more. I asking someone to keep develop on it, if no one, can I do it myself? On Fri, Feb 1, 2013 at 1:42 AM, Brandon Allbery wrote: > On Thu, Jan 31, 2013 at 1:31 AM, Junior White wrote: > >> Hi Cafe, >> I downloaded the latest hugs98 source package, unzip and build, I get >> the following link errors. It seems many symbols are not defined, am I >> missing same depending libraries? >> > > I don't think anyone is maintaining hugs any more. > > >> Undefined symbols for architecture x86_64: >> "_environ", referenced from: >> ___hscore_environ in ccuTP291.o >> (maybe you meant: ___hscore_environ) >> > > "environ" is a legacy pre-standards interface to the process environment > and has been deprecated for a long time; it looks like Mountain Lion no > longer exports it at all. More proof that hugs is moribund, if it's still > using those ancient interfaces. > > -- > brandon s allbery kf8nh sine nomine > associates > allber...@gmail.com > ballb...@sinenomine.net > unix, openafs, kerberos, infrastructure, xmonad > http://sinenomine.net > ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] linking errors while compile hugs98 in macos
On Thu, Jan 31, 2013 at 1:31 AM, Junior White wrote: > Hi Cafe, > I downloaded the latest hugs98 source package, unzip and build, I get > the following link errors. It seems many symbols are not defined, am I > missing same depending libraries? > I don't think anyone is maintaining hugs any more. > Undefined symbols for architecture x86_64: > "_environ", referenced from: > ___hscore_environ in ccuTP291.o > (maybe you meant: ___hscore_environ) > "environ" is a legacy pre-standards interface to the process environment and has been deprecated for a long time; it looks like Mountain Lion no longer exports it at all. More proof that hugs is moribund, if it's still using those ancient interfaces. -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] linking errors while compile hugs98 in macos
Hi Cafe, I downloaded the latest hugs98 source package, unzip and build, I get the following link errors. It seems many symbols are not defined, am I missing same depending libraries? This is my machine info: ➜ hugs98-plus-Sep2006 git:(master) ✗ uname -a Darwin lan-seimatoMacBook-Air.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64 Preprocessing Network/Hackage/Version Undefined symbols for architecture x86_64: "_environ", referenced from: ___hscore_environ in ccuTP291.o (maybe you meant: ___hscore_environ) ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status runhugs: Error occurred ERROR "libraries/bootlib/Foreign/C/Error.hs" - Error while running compilation command 'gcc -DNDEBUG=1 -g -no-cpp-precomp -flat_namespace -shared -fPIC -D__HUGS__ "-Ihugsdir/include" -o "libraries/bootlib/Foreign/C/Error.so" "libraries/bootlib/Foreign/C/Error.c" -Ipackages/base/include -Ighc/includes packages/base/cbits/PrelIOUtils.c' Undefined symbols for architecture x86_64: "_environ", referenced from: ___hscore_environ in ccYZo1zT.o (maybe you meant: ___hscore_environ) ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status runhugs: Error occurred ERROR "libraries/bootlib/Foreign/Marshal/Alloc.hs" - Error while running compilation command 'gcc -DNDEBUG=1 -g -no-cpp-precomp -flat_namespace -shared -fPIC -D__HUGS__ "-Ihugsdir/include" -o "libraries/bootlib/Foreign/Marshal/Alloc.so" "libraries/bootlib/Foreign/Marshal/Alloc.c" -Ipackages/base/include -Ighc/includes packages/base/cbits/PrelIOUtils.c packages/base/cbits/dirUtils.c packages/base/cbits/consUtils.c' ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe