Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Re: Problems linking code from the book Haskell School of
Expression (Brandon Allbery)
2. Re: Problems linking code from the book Haskell School of
Expression (Philippe Sismondi)
3. Re: Problems linking code from the book Haskell School of
Expression (Brandon Allbery)
4. Re: Problems linking code from the book Haskell School of
Expression (Antoine Latter)
5. Re: Problems linking code from the book Haskell School of
Expression (Philippe Sismondi)
6. Re: Problems linking code from the book Haskell School of
Expression (Brandon Allbery)
----------------------------------------------------------------------
Message: 1
Date: Fri, 25 Nov 2011 15:53:55 -0500
From: Brandon Allbery <[email protected]>
Subject: Re: [Haskell-beginners] Problems linking code from the book
Haskell School of Expression
To: Philippe Sismondi <[email protected]>
Cc: Beginners Haskell <[email protected]>
Message-ID:
<cakfcl4wv2d_+mw59_uzcmtd0bulrqy8bou1r7u2ebajftkp...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
On Fri, Nov 25, 2011 at 15:33, Philippe Sismondi <[email protected]>wrote:
> Your suggestion reminds me that installing soegtk caused an outpouring of
> messages about "ignoring libraries". So the problem may well have arisen at
> that point. I should probably look at the cabal packages for gtk2hs, or
> maybe contact the guys who put it together.
>
Ok, then what happened is that gtk2hs found the MacPorts Gtk+ libraries,
which were built native/64-bit, and tried to use them in your 32-bit GHC
environment. (gtk2hs does *not* come with Gtk+ libraries; you have to
provide them from somewhere.)
So, either you need to find some prebuilt 32-bit Gtk+ libraries, or you
need to rebuild the MacPorts libraries to be +universal so they have been
32- and 64-bit variants. That said, the latter will probably fail with
missing symbols related to iconv (MacPorts' iconv library is not compatible
with Apple's, which is used by the Haskell Platform build).
--
brandon s allbery [email protected]
wandering unix systems administrator (available) (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20111125/7ced442a/attachment-0001.htm>
------------------------------
Message: 2
Date: Fri, 25 Nov 2011 19:41:12 -0500
From: Philippe Sismondi <[email protected]>
Subject: Re: [Haskell-beginners] Problems linking code from the book
Haskell School of Expression
To: Beginners Haskell <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
On 2011-11-25, at 3:53 PM, Brandon Allbery wrote:
> On Fri, Nov 25, 2011 at 15:33, Philippe Sismondi <[email protected]> wrote:
> Your suggestion reminds me that installing soegtk caused an outpouring of
> messages about "ignoring libraries". So the problem may well have arisen at
> that point. I should probably look at the cabal packages for gtk2hs, or maybe
> contact the guys who put it together.
>
> Ok, then what happened is that gtk2hs found the MacPorts Gtk+ libraries,
> which were built native/64-bit, and tried to use them in your 32-bit GHC
> environment. (gtk2hs does *not* come with Gtk+ libraries; you have to
> provide them from somewhere.)
>
> So, either you need to find some prebuilt 32-bit Gtk+ libraries, or you need
> to rebuild the MacPorts libraries to be +universal so they have been 32- and
> 64-bit variants. That said, the latter will probably fail with missing
> symbols related to iconv (MacPorts' iconv library is not compatible with
> Apple's, which is used by the Haskell Platform build).
>
Thanks.
I am totally unfamiliar with gtk. I has assumed that the library installed by
cabal was self-contained. Call me naive....
As you suggested I installed a macports universal variant of gtk2. But it
appears to me that their may be a broader problem, i.e. that I may need to
install universal versions of quite a few macports libraries. I still cannot
build gtk2hs without references to ignoring libraries, and then my sample
program will not link.
I may have to go through and install a bunch of macports universals, but in the
meanwhile I tried installing the 64-bit version of the Haskell Platform. That
installation fails, but does leave a 64-bit version of the ghc framework in the
library. I posted a message about it on the haskell-cafe list, because this too
takes me out of my depth.
Even with the broken installation of 64-bit ghc I get far fewer error messages
when I try to use soegtk with it. It does indeed complain about iconv symbols;
whether that could be remedied is academic if I cannot get a clean installation
of 64-bit ghc, since I have no idea what is broken in 64-bit
After exchanging posts with you I surfed the web a bit, and came to the
conclusion that architecture is something of a problem for quite a few OS X
users of ghc. Is that fair to say?
> --
> brandon s allbery [email protected]
> wandering unix systems administrator (available) (412) 475-9364 vm/sms
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20111125/3b864555/attachment-0001.htm>
------------------------------
Message: 3
Date: Fri, 25 Nov 2011 19:54:10 -0500
From: Brandon Allbery <[email protected]>
Subject: Re: [Haskell-beginners] Problems linking code from the book
Haskell School of Expression
To: Philippe Sismondi <[email protected]>
Cc: Beginners Haskell <[email protected]>
Message-ID:
<CAKFCL4WACk3g5LYbnHcZ=n4rHmpwhHyvOj=8+17rsz9m1rz...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
On Fri, Nov 25, 2011 at 19:41, Philippe Sismondi <[email protected]>wrote:
> After exchanging posts with you I surfed the web a bit, and came to the
> conclusion that architecture is something of a problem for quite a few OS X
> users of ghc. Is that fair to say?
Yes. For a long time there wasn't a 64-bit GHC at all, and it still throws
a number of warnings and occasional other fits (especially on Lion where
Apple changed the linker yet again, but you're on SL so that at least
shouldn't matter). Also, the HP stuff doesn't play along with MacPorts
very well, and MacPorts' own HP is even older than Debian stable.
Looks like your best bet is to temporarily move /opt/local out of the way
and then follow the directions at
http://live.gnome.org/GTK%2B/OSX/Building#Prerequisites to build native
Gtk+ libraries.
--
brandon s allbery [email protected]
wandering unix systems administrator (available) (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20111125/aa44d906/attachment-0001.htm>
------------------------------
Message: 4
Date: Fri, 25 Nov 2011 18:57:40 -0600
From: Antoine Latter <[email protected]>
Subject: Re: [Haskell-beginners] Problems linking code from the book
Haskell School of Expression
To: Philippe Sismondi <[email protected]>
Cc: Beginners Haskell <[email protected]>
Message-ID:
<CAKjSnQGrtbt=-_tieq24j4uqoyc1cz-401iibh6a5a1vz_w...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
On Fri, Nov 25, 2011 at 6:41 PM, Philippe Sismondi <[email protected]> wrote:
> After exchanging posts with you I surfed the web a bit, and came to the
> conclusion that architecture is something of a problem for quite a few OS X
> users of ghc. Is that fair to say?
If you're not trying to link against MacPorts it works great, but
MacPorts is the easiest way to install various free software packages.
I haven't tried the 64-bit GHC on OS X in a while.
Antoine
------------------------------
Message: 5
Date: Fri, 25 Nov 2011 22:30:33 -0500
From: Philippe Sismondi <[email protected]>
Subject: Re: [Haskell-beginners] Problems linking code from the book
Haskell School of Expression
To: Beginners Haskell <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
On 2011-11-25, at 7:54 PM, Brandon Allbery wrote:
> On Fri, Nov 25, 2011 at 19:41, Philippe Sismondi <[email protected]> wrote:
> After exchanging posts with you I surfed the web a bit, and came to the
> conclusion that architecture is something of a problem for quite a few OS X
> users of ghc. Is that fair to say?
>
> Yes. For a long time there wasn't a 64-bit GHC at all, and it still throws a
> number of warnings and occasional other fits (especially on Lion where Apple
> changed the linker yet again, but you're on SL so that at least shouldn't
> matter). Also, the HP stuff doesn't play along with MacPorts very well, and
> MacPorts' own HP is even older than Debian stable.
>
> Looks like your best bet is to temporarily move /opt/local out of the way and
> then follow the directions at
> http://live.gnome.org/GTK%2B/OSX/Building#Prerequisites to build native Gtk+
> libraries.
>
Well, I just realized that since I only need this for learning purposes (not
production code) I may as well do it under linux. I have my linux box on a kvm
with the mac. (That's my current form of "virtualization" ;-) I'll do this if
ubuntu and HP work well together. Thoughts?
> --
> brandon s allbery [email protected]
> wandering unix systems administrator (available) (412) 475-9364 vm/sms
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20111125/bd023628/attachment-0001.htm>
------------------------------
Message: 6
Date: Fri, 25 Nov 2011 22:53:51 -0500
From: Brandon Allbery <[email protected]>
Subject: Re: [Haskell-beginners] Problems linking code from the book
Haskell School of Expression
To: Philippe Sismondi <[email protected]>
Cc: Beginners Haskell <[email protected]>
Message-ID:
<cakfcl4xubiv8sdq8hndme68hjouoxel-10w83rhjl7kog63...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
On Fri, Nov 25, 2011 at 22:30, Philippe Sismondi <[email protected]>wrote:
> Well, I just realized that since I only need this for learning purposes
> (not production code) I may as well do it under linux. I have my linux box
> on a kvm with the mac. (That's my current form of "virtualization" ;-) I'll
> do this if ubuntu and HP work well together. Thoughts?
>
That's where I've ended up for my xmonad development (well, still setting
it up), since xmonad is crashing when I use a ghc that is built against
MacPorts (both MP's own GHC and a locally built up to date
haskell-platform) which I need for X11-xft :/
--
brandon s allbery [email protected]
wandering unix systems administrator (available) (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20111125/ded1aae5/attachment.htm>
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 41, Issue 38
*****************************************