Re: [wxhaskell-devel] Patches to build wxHaskell with wxWidgets 2.9.2 GTK on Linux

2011-07-29 Thread Dave Tapley
On 29 July 2011 08:54, Heinrich Apfelmus  wrote:

> Dave Tapley wrote:
> > Hmm, further to this:
> >
> > $ darcs pull
> > Pulling from "http://code.haskell.org/wxhaskell";...
> > Official wxHaskell darcs repository
> > **
> > No remote changes to pull in!
> > $ cd wx
> > $ cabal configure
> > Resolving dependencies...
> > Configuring wx-0.13.1...
> > Warning: This package indirectly depends on multiple versions of the same
> > package. This is highly likely to cause a compile failure.
> > package wxcore-0.13.1 requires containers-0.3.0.0
> > package wxdirect-0.13.1 requires containers-0.4.0.0
> > package wxcore-0.13.1 requires parsec-2.1.0.1
> > package wxdirect-0.13.1 requires parsec-3.1.1
>
> You may need to bump dependency version. Are you using GHC 7.0? The
> easiest way to proceed is probably to copy the version constraints from
> the *latest* packages on hackage:
>
>   http://hackage.haskell.org/package/wx
>   http://hackage.haskell.org/package/wxcore
>   http://hackage.haskell.org/package/wxdirect
>
> and then reconfigure, rebuild and reinstall these packages.
>


Thank you for your response.
I actually resolved the problem in a different way, I found my "don't worry,
I have fixed it" email to the list sat in my drafts folder; sorry about that
:|

After some discussion on #haskell it transpired that it was a problem local
to my machine probably caused by this 'issue':
http://www.vex.net/~trebla/haskell/sicp.xhtml#pigeon

Some how I had ended up with ghc-pkg having both containers-0.3.0.0 and
containers-0.4.0.0 registered, with wxcore and wxdirect compiled again each
one respectively. By removing everything which depended on
containers-0.4.0.0 and then containers-0.4.0.0 itself I was able to rebuild
and reinstall wxdirect (only after running 'cabal clean') pinned to
containers-0.3.0.0, this allowed wx to configure without issue.

Dave,



>
>
> Best regards,
> Heinrich Apfelmus
>
> --
> http://apfelmus.nfshost.com
>
>
>
> --
> Got Input?   Slashdot Needs You.
> Take our quick survey online.  Come on, we don't ask for help often.
> Plus, you'll get a chance to win $100 to spend on ThinkGeek.
> http://p.sf.net/sfu/slashdot-survey
> ___
> wxhaskell-devel mailing list
> wxhaskell-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel
>
--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey___
wxhaskell-devel mailing list
wxhaskell-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel


Re: [wxhaskell-devel] Patches to build wxHaskell with wxWidgets 2.9.2 GTK on Linux

2011-07-29 Thread Heinrich Apfelmus
Dave Tapley wrote:
> Hmm, further to this:
> 
> $ darcs pull
> Pulling from "http://code.haskell.org/wxhaskell";...
> Official wxHaskell darcs repository
> **
> No remote changes to pull in!
> $ cd wx
> $ cabal configure
> Resolving dependencies...
> Configuring wx-0.13.1...
> Warning: This package indirectly depends on multiple versions of the same
> package. This is highly likely to cause a compile failure.
> package wxcore-0.13.1 requires containers-0.3.0.0
> package wxdirect-0.13.1 requires containers-0.4.0.0
> package wxcore-0.13.1 requires parsec-2.1.0.1
> package wxdirect-0.13.1 requires parsec-3.1.1

You may need to bump dependency version. Are you using GHC 7.0? The 
easiest way to proceed is probably to copy the version constraints from 
the *latest* packages on hackage:

   http://hackage.haskell.org/package/wx
   http://hackage.haskell.org/package/wxcore
   http://hackage.haskell.org/package/wxdirect

and then reconfigure, rebuild and reinstall these packages.


Best regards,
Heinrich Apfelmus

--
http://apfelmus.nfshost.com


--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
___
wxhaskell-devel mailing list
wxhaskell-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel


Re: [wxhaskell-devel] Patches to build wxHaskell with wxWidgets 2.9.2 GTK on Linux

2011-07-28 Thread Dave Tapley
On 28 July 2011 02:45, Dave Tapley  wrote:

> Please find attached a darcs patch file with the changes I had to make to
> build wxcore.
> Feel free to have a look and comment, they are all very much "make it
> compile" changes and I suspect I may have introduced badness (returning a
> null pointer).
>
> Unfortunately having made these changes and following these steps¹ I am now
> getting this error, which is a little confusing:
>
> wxhaskell-dev/wx$ sudo cabal install --global
> Resolving dependencies...
> cabal: dependencies conflict: wxcore-0.13.1 requires containers ==0.4.0.0
> however
> containers-0.4.0.0 was excluded because wxcore-0.13.1 requires containers
> ==0.3.0.0
>
> Its other dependencies have installed correctly:
> wxhaskell-dev/wx$ ghc-pkg list wxdirect
> /var/lib/ghc-6.12.1/package.conf.d
>wxdirect-0.13.1
>
> wxhaskell-dev/wx$ ghc-pkg list wxcore
> /var/lib/ghc-6.12.1/package.conf.d
>wxcore-0.13.1
>
>
> Any idea what this could mean?
>
> Dave,
>
> ¹ http://haskell.org/haskellwiki/WxHaskell/Building#Source_Release
>


Hmm, further to this:

$ darcs pull
Pulling from "http://code.haskell.org/wxhaskell";...
Official wxHaskell darcs repository
**
No remote changes to pull in!
$ cd wx
$ cabal configure
Resolving dependencies...
Configuring wx-0.13.1...
Warning: This package indirectly depends on multiple versions of the same
package. This is highly likely to cause a compile failure.
package wxcore-0.13.1 requires containers-0.3.0.0
package wxdirect-0.13.1 requires containers-0.4.0.0
package wxcore-0.13.1 requires parsec-2.1.0.1
package wxdirect-0.13.1 requires parsec-3.1.1
--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey___
wxhaskell-devel mailing list
wxhaskell-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel