*** setup configure Configuring mage-1.1.0... Dependency array -any: using array-0.2.0.0 Dependency base >3: using base-4.1.0.0 Dependency containers -any: using containers-0.2.0.1 Dependency mtl -any: using mtl-1.1.0.2 Dependency random -any: using random-1.0.0.1 Using Cabal-1.6.0.1 compiled by ghc-6.8 Using compiler: ghc-6.10.2 Using install prefix: /usr/local/tmp/archive/install Binaries installed in: /usr/local/tmp/archive/install/bin Libraries installed in: /usr/local/tmp/archive/install/lib/mage-1.1.0/ghc-6.10.2 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/mage-1.1.0 Documentation installed in: /usr/local/tmp/archive/install/share/doc/mage-1.1.0 Using alex version 2.2 found on system at: /usr/bin/alex Using ar found on system at: /usr/bin/ar Using c2hs version 0.15.1 found on system at: /usr/local/bin/c2hs Using cpphs version 0.7 found on system at: /usr/bin/cpphs Using ffihugs found on system at: /usr/local/bin/ffihugs Using gcc version 4.3.3 found on system at: /usr/bin/gcc Using ghc version 6.10.2 found on system at: /usr/local/bin/ghc Using ghc-pkg version 6.10.2 found on system at: /usr/local/bin/ghc-pkg No greencard found Using haddock version 2.4.2 found on system at: /usr/local/bin/haddock Using happy version 1.17 found on system at: /usr/local/bin/happy No hmake found Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs Using hscolour version 1.9 found on system at: /usr/local/bin/HsColour Using hugs found on system at: /usr/local/bin/hugs No jhc found Using ld found on system at: /usr/bin/ld No nhc98 found Using pkg-config version 0.22 found on system at: /usr/bin/pkg-config Using ranlib found on system at: /usr/bin/ranlib Using strip found on system at: /usr/bin/strip Using tar found on system at: /bin/tar *** setup build Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing executables for mage-1.1.0... Creating dist/build/mage/mage-tmp (and its parents) /usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=610 --cflag=-Isrc/ --lflag=-lcurses --cflag=-I/usr/local/lib/ghc-6.10.2/old-time-1.0.0.2/include --cflag=-I/usr/local/lib/ghc-6.10.2/base-4.1.0.0/include --cflag=-I/usr/local/lib/ghc-6.10.2/include --cflag=-IPAPI_INCLUDE_DIR --lflag=-L/usr/local/lib/ghc-6.10.2/random-1.0.0.1 --lflag=-L/usr/local/lib/ghc-6.10.2/old-time-1.0.0.2 --lflag=-L/usr/local/lib/ghc-6.10.2/old-locale-1.0.0.1 --lflag=-L/usr/local/tmp/archive/install/lib/mtl-1.1.0.2/ghc-6.10.2 --lflag=-L/usr/local/lib/ghc-6.10.2/containers-0.2.0.1 --lflag=-L/usr/local/lib/ghc-6.10.2/array-0.2.0.0 --lflag=-L/usr/local/lib/ghc-6.10.2/syb-0.1.0.1 --lflag=-L/usr/local/lib/ghc-6.10.2/base-4.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.2/integer-0.1.0.1 --lflag=-L/usr/local/lib/ghc-6.10.2/ghc-prim-0.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.2 --lflag=-lm --lflag=-lffi --lflag=-lgmp --lflag=-ldl --lflag=-lrt -o dist/build/mage/mage-tmp/Curses.hs src/Curses.hsc Building mage-1.1.0... Building executable: mage... Creating dist/build/mage (and its parents) Creating dist/build/mage/mage-tmp (and its parents) /usr/local/bin/ghc -o dist/build/mage/mage --make -hide-all-packages -i -idist/build/mage/mage-tmp -isrc -idist/build/autogen -Idist/build/autogen -Idist/build/mage/mage-tmp -Isrc/ -optP-include -optPdist/build/autogen/cabal_macros.h -#include "curses.h" -odir dist/build/mage/mage-tmp -hidir dist/build/mage/mage-tmp -stubdir dist/build/mage/mage-tmp -package array-0.2.0.0 -package base-4.1.0.0 -package containers-0.2.0.1 -package mtl-1.1.0.2 -package random-1.0.0.1 -O -Wall -optl-Wl,-s -fvia-c -XForeignFunctionInterface src/Main.hs -lcurses [ 1 of 30] Compiling Util.Text ( src/Util/Text.hs, dist/build/mage/mage-tmp/Util/Text.o ) [ 2 of 30] Compiling Keys ( src/Keys.hs, dist/build/mage/mage-tmp/Keys.o ) [ 3 of 30] Compiling Util.PQueue ( src/Util/PQueue.hs, dist/build/mage/mage-tmp/Util/PQueue.o ) [ 4 of 30] Compiling Util.Search ( src/Util/Search.hs, dist/build/mage/mage-tmp/Util/Search.o ) [ 5 of 30] Compiling BoxChar ( src/BoxChar.hs, dist/build/mage/mage-tmp/BoxChar.o ) [ 6 of 30] Compiling BodyParts ( src/BodyParts.hs, dist/build/mage/mage-tmp/BodyParts.o ) [ 7 of 30] Compiling Body ( src/Body.hs, dist/build/mage/mage-tmp/Body.o ) [ 8 of 30] Compiling Util.Grid ( src/Util/Grid.hs, dist/build/mage/mage-tmp/Util/Grid.o ) [ 9 of 30] Compiling Util ( src/Util.hs, dist/build/mage/mage-tmp/Util.o ) [10 of 30] Compiling RandT ( src/RandT.hs, dist/build/mage/mage-tmp/RandT.o ) [11 of 30] Compiling Color ( src/Color.hs, dist/build/mage/mage-tmp/Color.o ) [12 of 30] Compiling Materials ( src/Materials.hs, dist/build/mage/mage-tmp/Materials.o ) [13 of 30] Compiling Language ( src/Language.hs, dist/build/mage/mage-tmp/Language.o ) [14 of 30] Compiling Messages ( src/Messages.hs, dist/build/mage/mage-tmp/Messages.o ) [15 of 30] Compiling Language.Dutch ( src/Language/Dutch.hs, dist/build/mage/mage-tmp/Language/Dutch.o ) [16 of 30] Compiling Language.English ( src/Language/English.hs, dist/build/mage/mage-tmp/Language/English.o ) [17 of 30] Compiling LanguageSelect ( src/LanguageSelect.hs, dist/build/mage/mage-tmp/LanguageSelect.o ) [18 of 30] Compiling Glyph ( src/Glyph.hs, dist/build/mage/mage-tmp/Glyph.o ) [19 of 30] Compiling Monsters ( src/Monsters.hs, dist/build/mage/mage-tmp/Monsters.o ) [20 of 30] Compiling Landscape ( src/Landscape.hs, dist/build/mage/mage-tmp/Landscape.o ) [21 of 30] Compiling Vision ( src/Vision.hs, dist/build/mage/mage-tmp/Vision.o ) [22 of 30] Compiling MonsterGen ( src/MonsterGen.hs, dist/build/mage/mage-tmp/MonsterGen.o ) [23 of 30] Compiling LevelGen ( src/LevelGen.hs, dist/build/mage/mage-tmp/LevelGen.o ) [24 of 30] Compiling Window ( src/Window.hs, dist/build/mage/mage-tmp/Window.o ) [25 of 30] Compiling Curses ( dist/build/mage/mage-tmp/Curses.hs, dist/build/mage/mage-tmp/Curses.o ) src/Curses.hsc:31:14: Warning: Defined but not used: data constructor `WINDOW' [26 of 30] Compiling MessageWindow ( src/MessageWindow.hs, dist/build/mage/mage-tmp/MessageWindow.o ) [27 of 30] Compiling World ( src/World.hs, dist/build/mage/mage-tmp/World.o ) [28 of 30] Compiling Actions ( src/Actions.hs, dist/build/mage/mage-tmp/Actions.o ) [29 of 30] Compiling Keymap ( src/Keymap.hs, dist/build/mage/mage-tmp/Keymap.o ) [30 of 30] Compiling Main ( src/Main.hs, dist/build/mage/mage-tmp/Main.o ) Linking dist/build/mage/mage ... dist/build/mage/mage-tmp/Curses.o: In function `Curses_zdwa1_info': ghc10584_0.hc:(.text+0x4d): undefined reference to `getx' ghc10584_0.hc:(.text+0x5c): undefined reference to `gety' dist/build/mage/mage-tmp/Curses.o: In function `sgxK_info': ghc10584_0.hc:(.text+0x187): undefined reference to `xtouchwin' dist/build/mage/mage-tmp/Curses.o: In function `Curses_a7_info': ghc10584_0.hc:(.text+0x353): undefined reference to `getmax_x' ghc10584_0.hc:(.text+0x363): undefined reference to `getmax_y' dist/build/mage/mage-tmp/Curses.o: In function `sgnE_info': ghc10584_0.hc:(.text+0xb61): undefined reference to `xwattrset' dist/build/mage/mage-tmp/Curses.o: In function `sgFb_info': ghc10584_0.hc:(.text+0x13fb): undefined reference to `ACS_DIAMOND' ghc10584_0.hc:(.text+0x1447): undefined reference to `ACS_BOARD' ghc10584_0.hc:(.text+0x1477): undefined reference to `ACS_BLOCK' ghc10584_0.hc:(.text+0x14ae): undefined reference to `ACS_BTEE' ghc10584_0.hc:(.text+0x14ef): undefined reference to `ACS_PLUS' ghc10584_0.hc:(.text+0x1526): undefined reference to `ACS_RTEE' ghc10584_0.hc:(.text+0x155e): undefined reference to `ACS_LTEE' ghc10584_0.hc:(.text+0x1596): undefined reference to `ACS_URCORNER' ghc10584_0.hc:(.text+0x15d7): undefined reference to `ACS_ULCORNER' ghc10584_0.hc:(.text+0x1637): undefined reference to `ACS_TTEE' ghc10584_0.hc:(.text+0x166e): undefined reference to `ACS_LRCORNER' ghc10584_0.hc:(.text+0x16a6): undefined reference to `ACS_VLINE' ghc10584_0.hc:(.text+0x16de): undefined reference to `ACS_DARROW' ghc10584_0.hc:(.text+0x171f): undefined reference to `ACS_HLINE' ghc10584_0.hc:(.text+0x1756): undefined reference to `ACS_UARROW' ghc10584_0.hc:(.text+0x178e): undefined reference to `ACS_BULLET' ghc10584_0.hc:(.text+0x17cf): undefined reference to `ACS_LARROW' ghc10584_0.hc:(.text+0x181f): undefined reference to `ACS_RARROW' ghc10584_0.hc:(.text+0x188f): undefined reference to `ACS_LLCORNER' dist/build/mage/mage-tmp/Curses.o: In function `sgov_info': ghc10584_0.hc:(.text+0x18d7): undefined reference to `xwattrset' dist/build/mage/mage-tmp/Curses.o: In function `sgQC_info': ghc10584_0.hc:(.text+0x1a29): undefined reference to `getmax_x' ghc10584_0.hc:(.text+0x1a38): undefined reference to `getmax_y' collect2: ld returned 1 exit status *** Trying again with preferred-versions *** setup configure Configuring mage-1.1.0... Dependency array -any: using array-0.2.0.0 Dependency base >3 && <4: using base-3.0.3.1 Dependency containers -any: using containers-0.2.0.1 Dependency mtl -any: using mtl-1.1.0.2 Dependency random -any: using random-1.0.0.1 Using Cabal-1.6.0.1 compiled by ghc-6.8 Using compiler: ghc-6.10.2 Using install prefix: /usr/local/tmp/archive/install Binaries installed in: /usr/local/tmp/archive/install/bin Libraries installed in: /usr/local/tmp/archive/install/lib/mage-1.1.0/ghc-6.10.2 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/mage-1.1.0 Documentation installed in: /usr/local/tmp/archive/install/share/doc/mage-1.1.0 Using alex version 2.2 found on system at: /usr/bin/alex Using ar found on system at: /usr/bin/ar Using c2hs version 0.15.1 found on system at: /usr/local/bin/c2hs Using cpphs version 0.7 found on system at: /usr/bin/cpphs Using ffihugs found on system at: /usr/local/bin/ffihugs Using gcc version 4.3.3 found on system at: /usr/bin/gcc Using ghc version 6.10.2 found on system at: /usr/local/bin/ghc Using ghc-pkg version 6.10.2 found on system at: /usr/local/bin/ghc-pkg No greencard found Using haddock version 2.4.2 found on system at: /usr/local/bin/haddock Using happy version 1.17 found on system at: /usr/local/bin/happy No hmake found Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs Using hscolour version 1.9 found on system at: /usr/local/bin/HsColour Using hugs found on system at: /usr/local/bin/hugs No jhc found Using ld found on system at: /usr/bin/ld No nhc98 found Using pkg-config version 0.22 found on system at: /usr/bin/pkg-config Using ranlib found on system at: /usr/bin/ranlib Using strip found on system at: /usr/bin/strip Using tar found on system at: /bin/tar *** setup build Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing executables for mage-1.1.0... Building mage-1.1.0... Building executable: mage... Creating dist/build/mage (and its parents) Creating dist/build/mage/mage-tmp (and its parents) /usr/local/bin/ghc -o dist/build/mage/mage --make -hide-all-packages -i -idist/build/mage/mage-tmp -isrc -idist/build/autogen -Idist/build/autogen -Idist/build/mage/mage-tmp -Isrc/ -optP-include -optPdist/build/autogen/cabal_macros.h -#include "curses.h" -odir dist/build/mage/mage-tmp -hidir dist/build/mage/mage-tmp -stubdir dist/build/mage/mage-tmp -package array-0.2.0.0 -package base-3.0.3.1 -package containers-0.2.0.1 -package mtl-1.1.0.2 -package random-1.0.0.1 -O -Wall -optl-Wl,-s -fvia-c -XForeignFunctionInterface src/Main.hs -lcurses [ 1 of 30] Compiling Util.Text ( src/Util/Text.hs, dist/build/mage/mage-tmp/Util/Text.o ) [ 4 of 30] Compiling Util.Search ( src/Util/Search.hs, dist/build/mage/mage-tmp/Util/Search.o ) [10 of 30] Compiling RandT ( src/RandT.hs, dist/build/mage/mage-tmp/RandT.o ) [15 of 30] Compiling Language.Dutch ( src/Language/Dutch.hs, dist/build/mage/mage-tmp/Language/Dutch.o ) [16 of 30] Compiling Language.English ( src/Language/English.hs, dist/build/mage/mage-tmp/Language/English.o ) [22 of 30] Compiling MonsterGen ( src/MonsterGen.hs, dist/build/mage/mage-tmp/MonsterGen.o ) [23 of 30] Compiling LevelGen ( src/LevelGen.hs, dist/build/mage/mage-tmp/LevelGen.o ) [25 of 30] Compiling Curses ( dist/build/mage/mage-tmp/Curses.hs, dist/build/mage/mage-tmp/Curses.o ) src/Curses.hsc:31:14: Warning: Defined but not used: data constructor `WINDOW' [30 of 30] Compiling Main ( src/Main.hs, dist/build/mage/mage-tmp/Main.o ) Linking dist/build/mage/mage ... dist/build/mage/mage-tmp/Curses.o: In function `Curses_zdwa1_info': ghc10776_0.hc:(.text+0x4d): undefined reference to `getx' ghc10776_0.hc:(.text+0x5c): undefined reference to `gety' dist/build/mage/mage-tmp/Curses.o: In function `sbdW_info': ghc10776_0.hc:(.text+0x187): undefined reference to `xtouchwin' dist/build/mage/mage-tmp/Curses.o: In function `Curses_a7_info': ghc10776_0.hc:(.text+0x353): undefined reference to `getmax_x' ghc10776_0.hc:(.text+0x363): undefined reference to `getmax_y' dist/build/mage/mage-tmp/Curses.o: In function `sb3Q_info': ghc10776_0.hc:(.text+0xb61): undefined reference to `xwattrset' dist/build/mage/mage-tmp/Curses.o: In function `sbln_info': ghc10776_0.hc:(.text+0x13fb): undefined reference to `ACS_DIAMOND' ghc10776_0.hc:(.text+0x1447): undefined reference to `ACS_BOARD' ghc10776_0.hc:(.text+0x1477): undefined reference to `ACS_BLOCK' ghc10776_0.hc:(.text+0x14ae): undefined reference to `ACS_BTEE' ghc10776_0.hc:(.text+0x14ef): undefined reference to `ACS_PLUS' ghc10776_0.hc:(.text+0x1526): undefined reference to `ACS_RTEE' ghc10776_0.hc:(.text+0x155e): undefined reference to `ACS_LTEE' ghc10776_0.hc:(.text+0x1596): undefined reference to `ACS_URCORNER' ghc10776_0.hc:(.text+0x15d7): undefined reference to `ACS_ULCORNER' ghc10776_0.hc:(.text+0x1637): undefined reference to `ACS_TTEE' ghc10776_0.hc:(.text+0x166e): undefined reference to `ACS_LRCORNER' ghc10776_0.hc:(.text+0x16a6): undefined reference to `ACS_VLINE' ghc10776_0.hc:(.text+0x16de): undefined reference to `ACS_DARROW' ghc10776_0.hc:(.text+0x171f): undefined reference to `ACS_HLINE' ghc10776_0.hc:(.text+0x1756): undefined reference to `ACS_UARROW' ghc10776_0.hc:(.text+0x178e): undefined reference to `ACS_BULLET' ghc10776_0.hc:(.text+0x17cf): undefined reference to `ACS_LARROW' ghc10776_0.hc:(.text+0x181f): undefined reference to `ACS_RARROW' ghc10776_0.hc:(.text+0x188f): undefined reference to `ACS_LLCORNER' dist/build/mage/mage-tmp/Curses.o: In function `sb4H_info': ghc10776_0.hc:(.text+0x18d7): undefined reference to `xwattrset' dist/build/mage/mage-tmp/Curses.o: In function `sbwO_info': ghc10776_0.hc:(.text+0x1a29): undefined reference to `getmax_x' ghc10776_0.hc:(.text+0x1a38): undefined reference to `getmax_y' collect2: ld returned 1 exit status