[Xmonad] Compile error: How to find problem in environment?

Kai Grossjohann kai.grossjohann at verizonbusiness.com
Mon Jun 18 05:36:28 EDT 2007

On my MacOSX box, compiling xmonad fails with the following error
message.  On my Debian etch box, it works fine.

Comparing ghc-pkg output, I note that the OSX box has more packages, and
some in more recent versions, than etch.  But I have no idea where to
start looking for the problems.

Below, please find (1) ghc-pkg list output for etch, (2) ghc-pkg list
output for OSX, (3) build output for OSX.

Just prior to sending the mail, I verified using "darcs pull" that my
sources (and XMonadContrib) are up to date.


(1) ghc-pkg list on etch:

ketchup% ghc-pkg list
    Cabal-1.1.6, X11-1.2, X11-extras-0.1, base-2.0, (ghc-6.6),
    haskell98-1.0, mtl-1.0, parsec-2.0, readline-1.0, regex-base-0.71,
    regex-compat-0.71, regex-posix-0.71, rts-1.0, stm-2.0,
    template-haskell-2.0, unix-1.0
    X11-1.2.2, X11-extras-0.2

(2) ghc-pkg list on OSX:

marcie% ghc-pkg list
    Cabal-, GLUT-2.1.1, HGL-3.1.1, HUnit-1.1.1, OpenGL-2.2.1,
    QuickCheck-1.0.1, X11-1.2.1, base-2.1.1, cgi-3001.1.1, fgl-5.4.1,
    filepath-1.0, (ghc-6.6.1), haskell-src-1.0.1, haskell98-1.0,
    html-1.0.1, mtl-1.0.1, network-2.0.1, parsec-2.0, readline-1.0,
    regex-base-0.72, regex-compat-0.71, regex-posix-0.71, rts-1.0,
    stm-2.0, template-haskell-2.1, time-1.1.1, unix-2.1, xhtml-3000.0.2
    X11-1.2.2, X11-extras-0.2

(3) build output on OSX:

marcie% make build
runhaskell Setup.lhs clean
runhaskell Setup.lhs configure --user --prefix=/opt/sw/xmonad
Configuring xmonad-0.2...
configure: Dependency base>=2.0: using base-2.1.1
configure: Dependency X11>=1.2.1: using X11-1.2.2
configure: Dependency X11-extras>=0.2: using X11-extras-0.2
configure: Dependency mtl>=1.0: using mtl-1.0.1
configure: Dependency unix>=1.0: using unix-2.1
configure: Using install prefix: /opt/sw/xmonad
configure: Binaries installed in: /opt/sw/xmonad/bin
configure: Libraries installed in: /opt/sw/xmonad/lib/xmonad-0.2/ghc-6.6.1
configure: Private binaries installed in: /opt/sw/xmonad/libexec
configure: Data files installed in: /opt/sw/xmonad/share/xmonad-0.2
configure: Using compiler: /opt/local/bin/ghc
configure: Compiler flavor: GHC
configure: Compiler version: 6.6.1
configure: Using package tool: /opt/local/bin/ghc-pkg
configure: Using ar found on system at: /usr/bin/ar
configure: No haddock found
configure: No pfesetup found
configure: Using ranlib found on system at: /usr/bin/ranlib
configure: Using runghc found on system at: /opt/local/bin/runghc
configure: No runhugs found
configure: No happy found
configure: No alex found
configure: Using hsc2hs: /opt/local/bin/hsc2hs
configure: No c2hs found
configure: No cpphs found
configure: No greencard found
runhaskell Setup.lhs build
Preprocessing executables for xmonad-0.2...
Building xmonad-0.2...
[ 1 of 10] Compiling StackSet         ( StackSet.hs, dist/build/xmonad/xmonad-tmp/StackSet.o )
[ 2 of 10] Compiling XMonad           ( XMonad.hs, dist/build/xmonad/xmonad-tmp/XMonad.o )
[ 3 of 10] Compiling XMonadContrib.DynamicLog ( XMonadContrib/DynamicLog.hs, dist/build/xmonad/xmonad-tmp/XMonadContrib/DynamicLog.o )
[ 4 of 10] Compiling XMonadContrib.Dmenu ( XMonadContrib/Dmenu.hs, dist/build/xmonad/xmonad-tmp/XMonadContrib/Dmenu.o )
[ 5 of 10] Compiling Config[boot]     ( Config.hs-boot, nothing )
[ 6 of 10] Compiling Operations       ( Operations.hs, dist/build/xmonad/xmonad-tmp/Operations.o )

Operations.hs:188:9: Not in scope: `changeProperty32'

Operations.hs:194:12: Not in scope: `unmapWindow'

Operations.hs:514:15: Not in scope: `getWMNormalHints'

    Not in scope: type constructor or class `SizeHints'

Operations.hs:530:51: Not in scope: `sh_max_size'

Operations.hs:531:51: Not in scope: `sh_base_size'

Operations.hs:532:51: Not in scope: `sh_resize_inc'

Operations.hs:533:51: Not in scope: `sh_aspect'

Operations.hs:534:51: Not in scope: `sh_base_size'
make: *** [build] Error 1
zsh: exit 2     make build

More information about the Xmonad mailing list