Mac OS X Leopard - GHC workaround for missing '_environ' symbol
If you managed to compile the latest darcs version of GHC (6.9.20080720 in my case) on Mac OS X Leopard, then there is a good chance that you ran into the following problem. I have opened a ticket with a solution proposal.
It’s not the cleanest solution but it works. Good luck!
Howard Zinn about Nationalism
I would like to point out the following article by Howard Zinn published a while ago on www.alternet.org. Although it has been a year since it was published the topic is still current and deserves attention.
American Dream
There is new movie coming out called the American Dream. It looks very interesting and features interviews with people like Howard Zinn and Danny Glover.
The movie webpage also features a very interesting trailer and teaser as well as a quite shocking ‘Facts’ page.
HBURG 1.1.2 Released
After loads of refactoring work a new version of HBURG has been released. If you have cabal install you can easily get it by executing the following commands:
$ cabal update
$ cabal install hburg
Of course you can also use the instructions provided here.
Notable changes:
- Completely refactored back-end
- Automated integration tests via Test.hs. Execute tests by running:
$ runghc Test.hs clean configure build test
- The example Java compiler that demonstrates HBURGs usage has also been revised and updated. See HBURGs homepage for more information on the example compiler.
I am actively working on a C# back-end so you can use HBURG to generate a code generator for a compiler written in C#. This should come in handy for the advanced compiler course at the SSW.
Repair Time Machine after Migration to New Mac
Time Machine associates backups with the MAC address of your computer. Thus if you migrate your Time Machine backup to a new Mac Computer, you can’t resume backups where you left off. The following article should help to remedy the problem.
On-line petition against U.S. military base in Czech Republic
Crazy Patent Claims
My dad discovered the following patent claim. Compare this with my diploma thesis. Does that ring a bell ;-)
My First Book
My diploma thesis has been published as book.
Amongst many other bookstores I found these quite cool:
- Buecher.de has a nice page about it.
- Amazon.com and Amazon.de has it as well.
Hiring a President
Another delightful essay by Peter Norvig about the elections in the US.
Build Darcs with GHC 6.8.1
Download stable or pre-release darcs source distribution. You need to edit two files, namely aclocal.m4 and autoconf.mk:
- aclocal.m4: add the following before the AC_MSG_RESULT([failed]) line in the WORKAROUND_openFd section:
AC_MSG_RESULT([okay])
IMPORT_WORKAROUND([
import qualified GHC.Handle ( fdToHandle' )
import System.IO ( Handle, IOMode )
import System.Posix.Internals ( FDType )
import qualified GHC.IOBase ( FD )
])
CODE_WORKAROUND([[
{-
Work around change in the GHC.Handle.fdToHandle' API.
-}
openFd :: GHC.IOBase.FD -> Maybe FDType -> FilePath -> IOMode -> Bool -> Bool -> IO Handle
openFd fd x y z a b = GHC.Handle.fdToHandle' fd x b y z a
]]),
- autoconf.mk: add -package containers to GHCFLAGS
- run autoconf
Now you are ready and set to build darcs with GHC 6.8.1. The unstable darcs branch works out of the box with GHC 6.8.1.