
Hi all, I would like to play a little with erlang. I downloaded Haskell platform, ang ghc and ghci seems to work. Trying to install leksah, Cabal, gives me the following error. http://trac.haskell.org/haskell-platform/ticket/110 I downloaded and installed Haskell Platform from source. Did.. cabal update cabal install cabal-install cabal install gtk2hs-buildtools cabal install leksah The last command didn't finish, with this output: ************************************************************ .. ... [22 of 23] Compiling Text.Regex.TDFA.Sequence ( Text/Regex/TDFA/ Sequence.hs, dist/build/Text/Regex/TDFA/Sequence.o ) Text/Regex/TDFA/Sequence.hs:36:9: Warning: orphan instance: instance RegexContext Regex (Seq Char) (Seq Char) Text/Regex/TDFA/Sequence.hs:40:9: Warning: orphan instance: instance RegexMaker Regex CompOption ExecOption (Seq Char) Text/Regex/TDFA/Sequence.hs:46:9: Warning: orphan instance: instance RegexLike Regex (Seq Char) [23 of 23] Compiling Text.Regex.TDFA ( Text/Regex/TDFA.hs, dist/build/ Text/Regex/TDFA.o ) Registering regex-tdfa-1.1.3... Installing library in /Users/glpunzi/.cabal/lib/regex-tdfa-1.1.3/ ghc-6.12.1 Registering regex-tdfa-1.1.3... cabal: Error: some packages failed to install: cairo-0.11.0 failed during the configure step. The exception was: ExitFailure 1 gio-0.11.0 depends on glib-0.11.0 which failed to install. glib-0.11.0 failed during the configure step. The exception was: ExitFailure 1 gtk-0.11.0 depends on glib-0.11.0 which failed to install. gtksourceview2-0.11.0 depends on glib-0.11.0 which failed to install. leksah-0.8.0.6 depends on glib-0.11.0 which failed to install. leksah-server-0.8.0.6 depends on glib-0.11.0 which failed to install. ltk-0.8.0.6 depends on glib-0.11.0 which failed to install. pango-0.11.0 depends on glib-0.11.0 which failed to install. ************************************ Possible usefull info: galilea-2:haskell-platform-2010.1.0.0 glpunzi$ cabal --version cabal-install version 0.8.0 using version 1.8.0.2 of the Cabal library galilea-2:haskell-platform-2010.1.0.0 glpunzi$ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.12.1 Some idea how to get leskah, or/and full Haskell working under OSX? Thanks in advance. Giuseppe Luigi Punzi Ruiz Blog: http://www.lordzealon.com Twitter & Skype & GoogleTalk accounts: glpunzi

WTF! Sorry for the mistake in the title, is the problem of doing 124 different things at the same time :P El 20/06/2010, a las 16:28, Giuseppe Luigi Punzi Ruiz escribió:
Hi all,
I would like to play a little with erlang.
I downloaded Haskell platform, ang ghc and ghci seems to work. Trying to install leksah, Cabal, gives me the following error.
http://trac.haskell.org/haskell-platform/ticket/110
I downloaded and installed Haskell Platform from source. Did.. cabal update cabal install cabal-install cabal install gtk2hs-buildtools cabal install leksah
The last command didn't finish, with this output:
************************************************************ .. ... [22 of 23] Compiling Text.Regex.TDFA.Sequence ( Text/Regex/TDFA/ Sequence.hs, dist/build/Text/Regex/TDFA/Sequence.o )
Text/Regex/TDFA/Sequence.hs:36:9: Warning: orphan instance: instance RegexContext Regex (Seq Char) (Seq Char)
Text/Regex/TDFA/Sequence.hs:40:9: Warning: orphan instance: instance RegexMaker Regex CompOption ExecOption (Seq Char)
Text/Regex/TDFA/Sequence.hs:46:9: Warning: orphan instance: instance RegexLike Regex (Seq Char) [23 of 23] Compiling Text.Regex.TDFA ( Text/Regex/TDFA.hs, dist/ build/Text/Regex/TDFA.o ) Registering regex-tdfa-1.1.3... Installing library in /Users/glpunzi/.cabal/lib/regex-tdfa-1.1.3/ ghc-6.12.1 Registering regex-tdfa-1.1.3... cabal: Error: some packages failed to install: cairo-0.11.0 failed during the configure step. The exception was: ExitFailure 1 gio-0.11.0 depends on glib-0.11.0 which failed to install. glib-0.11.0 failed during the configure step. The exception was: ExitFailure 1 gtk-0.11.0 depends on glib-0.11.0 which failed to install. gtksourceview2-0.11.0 depends on glib-0.11.0 which failed to install. leksah-0.8.0.6 depends on glib-0.11.0 which failed to install. leksah-server-0.8.0.6 depends on glib-0.11.0 which failed to install. ltk-0.8.0.6 depends on glib-0.11.0 which failed to install. pango-0.11.0 depends on glib-0.11.0 which failed to install. ************************************
Possible usefull info: galilea-2:haskell-platform-2010.1.0.0 glpunzi$ cabal --version cabal-install version 0.8.0 using version 1.8.0.2 of the Cabal library galilea-2:haskell-platform-2010.1.0.0 glpunzi$ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.12.1
Some idea how to get leskah, or/and full Haskell working under OSX?
Thanks in advance.
Giuseppe Luigi Punzi Ruiz Blog: http://www.lordzealon.com Twitter & Skype & GoogleTalk accounts: glpunzi
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Giuseppe Luigi Punzi Ruiz Blog: http://www.lordzealon.com Twitter & Skype & GoogleTalk accounts: glpunzi

On Sun, Jun 20, 2010 at 9:49 AM, Giuseppe Luigi Punzi Ruiz
WTF!
Sorry for the mistake in the title, is the problem of doing 124 different things at the same time :P
It looks like it is failing to install the 'glib' haskell package. What do you see when you try: cabal install glib -v Thanks, Antoine
El 20/06/2010, a las 16:28, Giuseppe Luigi Punzi Ruiz escribió:
Hi all,
I would like to play a little with erlang.
I downloaded Haskell platform, ang ghc and ghci seems to work. Trying to install leksah, Cabal, gives me the following error.
http://trac.haskell.org/haskell-platform/ticket/110
I downloaded and installed Haskell Platform from source. Did.. cabal update cabal install cabal-install cabal install gtk2hs-buildtools cabal install leksah
The last command didn't finish, with this output:
************************************************************ .. ... [22 of 23] Compiling Text.Regex.TDFA.Sequence ( Text/Regex/TDFA/Sequence.hs, dist/build/Text/Regex/TDFA/Sequence.o )
Text/Regex/TDFA/Sequence.hs:36:9: Warning: orphan instance: instance RegexContext Regex (Seq Char) (Seq Char)
Text/Regex/TDFA/Sequence.hs:40:9: Warning: orphan instance: instance RegexMaker Regex CompOption ExecOption (Seq Char)
Text/Regex/TDFA/Sequence.hs:46:9: Warning: orphan instance: instance RegexLike Regex (Seq Char) [23 of 23] Compiling Text.Regex.TDFA ( Text/Regex/TDFA.hs, dist/build/Text/Regex/TDFA.o ) Registering regex-tdfa-1.1.3... Installing library in /Users/glpunzi/.cabal/lib/regex-tdfa-1.1.3/ghc-6.12.1 Registering regex-tdfa-1.1.3... cabal: Error: some packages failed to install: cairo-0.11.0 failed during the configure step. The exception was: ExitFailure 1 gio-0.11.0 depends on glib-0.11.0 which failed to install. glib-0.11.0 failed during the configure step. The exception was: ExitFailure 1 gtk-0.11.0 depends on glib-0.11.0 which failed to install. gtksourceview2-0.11.0 depends on glib-0.11.0 which failed to install. leksah-0.8.0.6 depends on glib-0.11.0 which failed to install. leksah-server-0.8.0.6 depends on glib-0.11.0 which failed to install. ltk-0.8.0.6 depends on glib-0.11.0 which failed to install. pango-0.11.0 depends on glib-0.11.0 which failed to install. ************************************
Possible usefull info: galilea-2:haskell-platform-2010.1.0.0 glpunzi$ cabal --version cabal-install version 0.8.0 using version 1.8.0.2 of the Cabal library galilea-2:haskell-platform-2010.1.0.0 glpunzi$ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.12.1
Some idea how to get leskah, or/and full Haskell working under OSX?
Thanks in advance.
Giuseppe Luigi Punzi Ruiz Blog: http://www.lordzealon.com Twitter & Skype & GoogleTalk accounts: glpunzi
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Giuseppe Luigi Punzi Ruiz Blog: http://www.lordzealon.com Twitter & Skype & GoogleTalk accounts: glpunzi
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[1 of 2] Compiling Gtk2HsSetup ( /var/folders/fA/ fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/glib-0.11.096835/glib-0.11.0/ Gtk2HsSetup.hs, /var/folders/fA/fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/ glib-0.11.096835/glib-0.11.0/dist/setup/Gtk2HsSetup.o ) [2 of 2] Compiling Main ( /var/folders/fA/ fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/glib-0.11.096835/glib-0.11.0/ Setup.hs, /var/folders/fA/fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/ glib-0.11.096835/glib-0.11.0/dist/setup/Main.o ) Linking /var/folders/fA/fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/ glib-0.11.096835/glib-0.11.0/dist/setup/setup ... /var/folders/fA/fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/glib-0.11.096835/ glib-0.11.0/dist/setup/setup configure --verbose=2 --ghc --prefix=/Users/glpunzi/.cabal --user --flags=closure_signals --constraint=base ==4.2.0.0 -- constraint=containers ==0.3.0.0 --constraint=haskell98 ==1.0.1.1 Configuring glib-0.11.0... Flags chosen: closure_signals=True Dependency base ==4.2.0.0: using base-4.2.0.0 Dependency containers ==0.3.0.0: using containers-0.3.0.0 Dependency haskell98 ==1.0.1.1: using haskell98-1.0.1.1 setup: gtk2hsC2hs is required but it could not be found. cabal: Error: some packages failed to install: glib-0.11.0 failed during the configure step. The exception was: ExitFailure 1 galilea-2:haskell-platform-2010.1.0.0 glpunzi$ If i do: cabal list gtk2hs-buildtools galilea-2:haskell-platform-2010.1.0.0 glpunzi$ cabal list gtk2hs- buildtools * gtk2hs-buildtools Synopsis: Tools to build the Gtk2Hs suite of User Interface libraries. Latest version available: 0.9 Latest version installed: [ Not installed ] Homepage: http://www.haskell.org/gtk2hs/ License: GPL (Just (Version {versionBranch = [2], versionTags = []})) It's the second time I install it. It suppose install succesfully. ***************************** cabal install gtk2hs-buildtools [38 of 41] Compiling C ( c2hs/c/C.hs, dist/build/ gtk2hsC2hs/gtk2hsC2hs-tmp/C.o ) [39 of 41] Compiling GBMonad ( c2hs/gen/GBMonad.hs, dist/ build/gtk2hsC2hs/gtk2hsC2hs-tmp/GBMonad.o ) [40 of 41] Compiling GenBind ( c2hs/gen/GenBind.hs, dist/ build/gtk2hsC2hs/gtk2hsC2hs-tmp/GenBind.o ) [41 of 41] Compiling Main ( c2hs/toplevel/Main.hs, dist/ build/gtk2hsC2hs/gtk2hsC2hs-tmp/Main.o ) Linking dist/build/gtk2hsC2hs/gtk2hsC2hs ... Installing executable(s) in /Users/glpunzi/.cabal/bin El 20/06/2010, a las 17:01, Antoine Latter escribió:
cabal install glib -v
Giuseppe Luigi Punzi Ruiz Blog: http://www.lordzealon.com Twitter & Skype & GoogleTalk accounts: glpunzi

On Sun, Jun 20, 2010 at 10:08 AM, Giuseppe Luigi Punzi Ruiz
[1 of 2] Compiling Gtk2HsSetup ( /var/folders/fA/fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/glib-0.11.096835/glib-0.11.0/Gtk2HsSetup.hs, /var/folders/fA/fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/glib-0.11.096835/glib-0.11.0/dist/setup/Gtk2HsSetup.o ) [2 of 2] Compiling Main ( /var/folders/fA/fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/glib-0.11.096835/glib-0.11.0/Setup.hs, /var/folders/fA/fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/glib-0.11.096835/glib-0.11.0/dist/setup/Main.o ) Linking /var/folders/fA/fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/glib-0.11.096835/glib-0.11.0/dist/setup/setup ... /var/folders/fA/fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/glib-0.11.096835/glib-0.11.0/dist/setup/setup configure --verbose=2 --ghc --prefix=/Users/glpunzi/.cabal --user --flags=closure_signals --constraint=base ==4.2.0.0 --constraint=containers ==0.3.0.0 --constraint=haskell98 ==1.0.1.1 Configuring glib-0.11.0... Flags chosen: closure_signals=True Dependency base ==4.2.0.0: using base-4.2.0.0 Dependency containers ==0.3.0.0: using containers-0.3.0.0 Dependency haskell98 ==1.0.1.1: using haskell98-1.0.1.1 setup: gtk2hsC2hs is required but it could not be found. cabal: Error: some packages failed to install: glib-0.11.0 failed during the configure step. The exception was: ExitFailure 1 galilea-2:haskell-platform-2010.1.0.0 glpunzi$
If i do: cabal list gtk2hs-buildtools
galilea-2:haskell-platform-2010.1.0.0 glpunzi$ cabal list gtk2hs-buildtools * gtk2hs-buildtools Synopsis: Tools to build the Gtk2Hs suite of User Interface libraries. Latest version available: 0.9 Latest version installed: [ Not installed ] Homepage: http://www.haskell.org/gtk2hs/ License: GPL (Just (Version {versionBranch = [2], versionTags = []}))
It's the second time I install it. It suppose install succesfully.
***************************** cabal install gtk2hs-buildtools
[38 of 41] Compiling C ( c2hs/c/C.hs, dist/build/gtk2hsC2hs/gtk2hsC2hs-tmp/C.o ) [39 of 41] Compiling GBMonad ( c2hs/gen/GBMonad.hs, dist/build/gtk2hsC2hs/gtk2hsC2hs-tmp/GBMonad.o ) [40 of 41] Compiling GenBind ( c2hs/gen/GenBind.hs, dist/build/gtk2hsC2hs/gtk2hsC2hs-tmp/GenBind.o ) [41 of 41] Compiling Main ( c2hs/toplevel/Main.hs, dist/build/gtk2hsC2hs/gtk2hsC2hs-tmp/Main.o ) Linking dist/build/gtk2hsC2hs/gtk2hsC2hs ... Installing executable(s) in /Users/glpunzi/.cabal/bin
Here we've installed gtk2hsC2hs in /Users/glpunzi/.cabal/bin. If that isn't in your path, it won't be available for 'glib' to use during its install.
El 20/06/2010, a las 17:01, Antoine Latter escribió:
cabal install glib -v
Giuseppe Luigi Punzi Ruiz Blog: http://www.lordzealon.com Twitter & Skype & GoogleTalk accounts: glpunzi

Hi again, Yes, you are right, but now, "cabal install leksah" I get: .. .. Linking dist/build/leksah-server/leksah-server ... ld warning: atom sorting error for _ghczm6zi12zi1_LibFFI_Czuffizucif_closure_tbl and _ghczm6zi12zi1_LibFFI_Czuffizutype_closure_tbl in /Library/Frameworks/ GHC.framework/Versions/612/usr/lib/ghc-6.12.1/ghc-6.12.1/ libHSghc-6.12.1.a(LibFFI.o) ld warning: atom sorting error for _ghczm6zi12zi1_LibFFI_Czuffizucif_closure_tbl and _ghczm6zi12zi1_LibFFI_Czuffizutype_closure_tbl in /Library/Frameworks/ GHC.framework/Versions/612/usr/lib/ghc-6.12.1/ghc-6.12.1/ libHSghc-6.12.1.a(LibFFI.o) Undefined symbols: "_iconv_close", referenced from: _hs_iconv_close in libHSbase-4.2.0.0.a(iconv.o) "_iconv_open", referenced from: _hs_iconv_open in libHSbase-4.2.0.0.a(iconv.o) "_iconv", referenced from: _hs_iconv in libHSbase-4.2.0.0.a(iconv.o) ld: symbol(s) not found collect2: ld returned 1 exit status cabal: Error: some packages failed to install: gtksourceview2-0.11.0 failed during the configure step. The exception was: ExitFailure 1 leksah-0.8.0.6 depends on leksah-server-0.8.0.6 which failed to install. leksah-server-0.8.0.6 failed during the building phase. The exception was: ExitFailure 1 El 20/06/2010, a las 17:29, Antoine Latter escribió:
On Sun, Jun 20, 2010 at 10:08 AM, Giuseppe Luigi Punzi Ruiz
wrote: [1 of 2] Compiling Gtk2HsSetup ( /var/folders/fA/fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/glib-0.11.096835/ glib-0.11.0/Gtk2HsSetup.hs, /var/folders/fA/fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/glib-0.11.096835/ glib-0.11.0/dist/setup/Gtk2HsSetup.o ) [2 of 2] Compiling Main ( /var/folders/fA/fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/glib-0.11.096835/ glib-0.11.0/Setup.hs, /var/folders/fA/fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/glib-0.11.096835/ glib-0.11.0/dist/setup/Main.o ) Linking /var/folders/fA/fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/glib-0.11.096835/ glib-0.11.0/dist/setup/setup ... /var/folders/fA/fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/glib-0.11.096835/ glib-0.11.0/dist/setup/setup configure --verbose=2 --ghc --prefix=/Users/glpunzi/.cabal --user --flags=closure_signals --constraint=base ==4.2.0.0 -- constraint=containers ==0.3.0.0 --constraint=haskell98 ==1.0.1.1 Configuring glib-0.11.0... Flags chosen: closure_signals=True Dependency base ==4.2.0.0: using base-4.2.0.0 Dependency containers ==0.3.0.0: using containers-0.3.0.0 Dependency haskell98 ==1.0.1.1: using haskell98-1.0.1.1 setup: gtk2hsC2hs is required but it could not be found. cabal: Error: some packages failed to install: glib-0.11.0 failed during the configure step. The exception was: ExitFailure 1 galilea-2:haskell-platform-2010.1.0.0 glpunzi$
If i do: cabal list gtk2hs-buildtools
galilea-2:haskell-platform-2010.1.0.0 glpunzi$ cabal list gtk2hs- buildtools * gtk2hs-buildtools Synopsis: Tools to build the Gtk2Hs suite of User Interface libraries. Latest version available: 0.9 Latest version installed: [ Not installed ] Homepage: http://www.haskell.org/gtk2hs/ License: GPL (Just (Version {versionBranch = [2], versionTags = []}))
It's the second time I install it. It suppose install succesfully.
***************************** cabal install gtk2hs-buildtools
[38 of 41] Compiling C ( c2hs/c/C.hs, dist/build/gtk2hsC2hs/gtk2hsC2hs-tmp/C.o ) [39 of 41] Compiling GBMonad ( c2hs/gen/GBMonad.hs, dist/build/gtk2hsC2hs/gtk2hsC2hs-tmp/GBMonad.o ) [40 of 41] Compiling GenBind ( c2hs/gen/GenBind.hs, dist/build/gtk2hsC2hs/gtk2hsC2hs-tmp/GenBind.o ) [41 of 41] Compiling Main ( c2hs/toplevel/Main.hs, dist/build/gtk2hsC2hs/gtk2hsC2hs-tmp/Main.o ) Linking dist/build/gtk2hsC2hs/gtk2hsC2hs ... Installing executable(s) in /Users/glpunzi/.cabal/bin
Here we've installed gtk2hsC2hs in /Users/glpunzi/.cabal/bin. If that isn't in your path, it won't be available for 'glib' to use during its install.
El 20/06/2010, a las 17:01, Antoine Latter escribió:
cabal install glib -v
Giuseppe Luigi Punzi Ruiz Blog: http://www.lordzealon.com Twitter & Skype & GoogleTalk accounts: glpunzi
Giuseppe Luigi Punzi Ruiz Blog: http://www.lordzealon.com Twitter & Skype & GoogleTalk accounts: glpunzi

On Sun, Jun 20, 2010 at 12:53 PM, Giuseppe Luigi Punzi Ruiz
Hi again,
Yes, you are right, but now, "cabal install leksah" I get:
This one is a bummer, and I see it all the time when I try to build a package linked against macports. Here's the last thread about with, with more links and discussion: http://thread.gmane.org/gmane.comp.lang.haskell.general/18064/ The response by Jean-Marie Gaillourdet has worked for me in the past. Antoine
.. .. Linking dist/build/leksah-server/leksah-server ... ld warning: atom sorting error for _ghczm6zi12zi1_LibFFI_Czuffizucif_closure_tbl and _ghczm6zi12zi1_LibFFI_Czuffizutype_closure_tbl in /Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.1/ghc-6.12.1/libHSghc-6.12.1.a(LibFFI.o) ld warning: atom sorting error for _ghczm6zi12zi1_LibFFI_Czuffizucif_closure_tbl and _ghczm6zi12zi1_LibFFI_Czuffizutype_closure_tbl in /Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.1/ghc-6.12.1/libHSghc-6.12.1.a(LibFFI.o) Undefined symbols: "_iconv_close", referenced from: _hs_iconv_close in libHSbase-4.2.0.0.a(iconv.o) "_iconv_open", referenced from: _hs_iconv_open in libHSbase-4.2.0.0.a(iconv.o) "_iconv", referenced from: _hs_iconv in libHSbase-4.2.0.0.a(iconv.o) ld: symbol(s) not found collect2: ld returned 1 exit status cabal: Error: some packages failed to install: gtksourceview2-0.11.0 failed during the configure step. The exception was: ExitFailure 1 leksah-0.8.0.6 depends on leksah-server-0.8.0.6 which failed to install. leksah-server-0.8.0.6 failed during the building phase. The exception was: ExitFailure 1
El 20/06/2010, a las 17:29, Antoine Latter escribió:
On Sun, Jun 20, 2010 at 10:08 AM, Giuseppe Luigi Punzi Ruiz
wrote: [1 of 2] Compiling Gtk2HsSetup (
/var/folders/fA/fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/glib-0.11.096835/glib-0.11.0/Gtk2HsSetup.hs,
/var/folders/fA/fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/glib-0.11.096835/glib-0.11.0/dist/setup/Gtk2HsSetup.o ) [2 of 2] Compiling Main (
/var/folders/fA/fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/glib-0.11.096835/glib-0.11.0/Setup.hs,
/var/folders/fA/fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/glib-0.11.096835/glib-0.11.0/dist/setup/Main.o ) Linking
/var/folders/fA/fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/glib-0.11.096835/glib-0.11.0/dist/setup/setup ...
/var/folders/fA/fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/glib-0.11.096835/glib-0.11.0/dist/setup/setup configure --verbose=2 --ghc --prefix=/Users/glpunzi/.cabal --user --flags=closure_signals --constraint=base ==4.2.0.0 --constraint=containers ==0.3.0.0 --constraint=haskell98 ==1.0.1.1 Configuring glib-0.11.0... Flags chosen: closure_signals=True Dependency base ==4.2.0.0: using base-4.2.0.0 Dependency containers ==0.3.0.0: using containers-0.3.0.0 Dependency haskell98 ==1.0.1.1: using haskell98-1.0.1.1 setup: gtk2hsC2hs is required but it could not be found. cabal: Error: some packages failed to install: glib-0.11.0 failed during the configure step. The exception was: ExitFailure 1 galilea-2:haskell-platform-2010.1.0.0 glpunzi$
If i do: cabal list gtk2hs-buildtools
galilea-2:haskell-platform-2010.1.0.0 glpunzi$ cabal list gtk2hs-buildtools * gtk2hs-buildtools Synopsis: Tools to build the Gtk2Hs suite of User Interface libraries. Latest version available: 0.9 Latest version installed: [ Not installed ] Homepage: http://www.haskell.org/gtk2hs/ License: GPL (Just (Version {versionBranch = [2], versionTags = []}))
It's the second time I install it. It suppose install succesfully.
***************************** cabal install gtk2hs-buildtools
[38 of 41] Compiling C ( c2hs/c/C.hs, dist/build/gtk2hsC2hs/gtk2hsC2hs-tmp/C.o ) [39 of 41] Compiling GBMonad ( c2hs/gen/GBMonad.hs, dist/build/gtk2hsC2hs/gtk2hsC2hs-tmp/GBMonad.o ) [40 of 41] Compiling GenBind ( c2hs/gen/GenBind.hs, dist/build/gtk2hsC2hs/gtk2hsC2hs-tmp/GenBind.o ) [41 of 41] Compiling Main ( c2hs/toplevel/Main.hs, dist/build/gtk2hsC2hs/gtk2hsC2hs-tmp/Main.o ) Linking dist/build/gtk2hsC2hs/gtk2hsC2hs ... Installing executable(s) in /Users/glpunzi/.cabal/bin
Here we've installed gtk2hsC2hs in /Users/glpunzi/.cabal/bin. If that isn't in your path, it won't be available for 'glib' to use during its install.
El 20/06/2010, a las 17:01, Antoine Latter escribió:
cabal install glib -v
Giuseppe Luigi Punzi Ruiz Blog: http://www.lordzealon.com Twitter & Skype & GoogleTalk accounts: glpunzi
Giuseppe Luigi Punzi Ruiz Blog: http://www.lordzealon.com Twitter & Skype & GoogleTalk accounts: glpunzi

Antoine Latter
On Sun, Jun 20, 2010 at 12:53 PM, Giuseppe Luigi Punzi Ruiz
wrote: Hi again,
Yes, you are right, but now, "cabal install leksah" I get:
[...]
Undefined symbols: "_iconv_close", referenced from: _hs_iconv_close in libHSbase-4.2.0.0.a(iconv.o) "_iconv_open", referenced from: _hs_iconv_open in libHSbase-4.2.0.0.a(iconv.o) "_iconv", referenced from: _hs_iconv in libHSbase-4.2.0.0.a(iconv.o) ld: symbol(s) not found
This one is a bummer, and I see it all the time when I try to build a package linked against macports.
This is caused by the two libiconv's in the system being ABI-incompatible, sadly. The ghc pkg available for download from haskell.org is linked against the system /usr/lib/libiconv.dynlib, which has iconv_open() as a function. Macports has GNU libiconv which #defines iconv_open to libiconv_open() in /opt/local/include/iconv.h. This then blows up as above when linking against other libraries in macports - the linker pulls in GNU libiconv which lacks the symbols needed as you see above. One workaround is to link GHC itself against the macports version of libiconv (and libgmp) and have cabal-install link all subsequent libraries against macports. I did just that this weekend and now have a working threadscope using the Quartz backend for gtk2, which is very nice (no need to run the X server). Recipe for reproducing this build is included below (and I can also provide the resulting ghc-6.12.3 pkg file if needed). Another possible option is to use Homebrew to install gtk2 and other dependencies. Homebrew prefers to use the system-provided libraries and will not pull in GNU libiconv, so this should work with the existing GHC pkg in theory. I didn't pursue this since the homebrew 'gtk+' package didn't seem to have the option to use Quartz instead of X11 as its backend. Steps for linking the ghc runtime against macports: - Specify EXTRA_CABAL_CONFIGURE_FLAGS in mk/build.mk as mentioned at the bottom of http://www.haskell.org/ghc/download_ghc_6_12_3.html EXTRA_CABAL_CONFIGURE_FLAGS = --extra-include-dirs=/opt/local/include \ --extra-lib-dirs=/opt/local/lib - Use the --with-iconv-* and --with-gmp-* flags when configuring ghc. ./configure --with-iconv-includes=/opt/local/include \ --with-iconv-libraries=/opt/local/lib \ --with-gmp-includes=/opt/local/include \ --with-gmp-libraries=/opt/local/lib - This produces a GHC runtime and libraries linked against macports: % otool -L ghc ghc: /opt/local/lib/libncurses.5.dylib (compatibility version 5.0.0, current version 5.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0) /opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.0.0) /opt/local/lib/libgmp.10.dylib (compatibility version 11.0.0, current version 11.1.0) % nm HSbase-4.2.0.2.o | fgrep iconv 001ff7f0 T _hs_iconv 001ff7e0 T _hs_iconv_close 001ff800 T _hs_iconv_open U _libiconv U _libiconv_close U _libiconv_open ghc and included libraries use the macports libiconv, so linking against other libraries in macports (gtk2!) will work. - Have cabal-install use macports as well for packages it installs by editing ~/.cabal/config and setting: extra-include-dirs: /opt/local/include extra-lib-dirs: /opt/local/lib - This gives, for e.g., threadscope linked against macports: % otool -L ~/.cabal/bin/threadscope | egrep '(gtk|iconv)' /opt/local/lib/libgtk-quartz-2.0.0.dylib (compatibility version 2001.0.0, current version 2001.1.0) /opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.0.0) - Note that since the ghc runtime is still in 32-bit i386 mode, we need universal versions of most libraries in macports. Recent versions of macports (1.9 for sure, maybe 1.8) make it simple to switch from an x86_64 library to a universal one: % port install gtk2 +universal This will recompile gtk2 and *all* dependent libraries as universal libraries which is exactly what you need. You can then eliminate any inactive 64-bit libraries with: % port -f uninstall inactive
Here's the last thread about with, with more links and discussion:
http://thread.gmane.org/gmane.comp.lang.haskell.general/18064/
The response by Jean-Marie Gaillourdet has worked for me in the past.
Antoine
Thanks for that link, I didn't think of overriding libiconv on a per-package basis. -Sudish
participants (3)
-
Antoine Latter
-
Giuseppe Luigi Punzi Ruiz
-
Sudish Joseph