I had this problem as well on Mac OS X 10.5.5 using the precompiled
Quartz GTK frameworks. The problem is actually that gio/gio.package.conf
gets filtered with incorrect syntax. I didn't dig into it because I
didn't need GIO -- I just ./configure'd with --disable-gio

I believe I also had this problem before switching to GHC 6.10.1, but 
not before I switched gtk2hs from the 0.9.13 tarball to the darcs tip.

Here is the contents of gio.package.conf on my system (include-dirs: is
where the incorrect syntax is):

[EMAIL PROTECTED]:~/gtk2hs$ cat gio/gio.package.conf
name: gio
version: 0.9.13
license: LGPL
license-file: COPYING.LIB
maintainer: [EMAIL PROTECTED]
stability: provisional
homepage: http://haskell.org/gtk2hs/
exposed: True
exposed-modules: ${modules}
import-dirs: "${pkglibdir}/imports/gio"
library-dirs: "${pkglibdir}"
hs-libraries: HSgio
extra-libraries:
include-dirs: , "${pkglibdir}/include"
includes: gio/gio.h
depends: base-4.0.0.0 glib-0.9.13
ld-options:

And the error:

[snipped large sed line]
| /usr/bin/ghc-pkg update - --force --package-conf=package.conf.inplace;
Reading package info from stdin ... done.
cannot find libHSglib.a on library path (ignoring)
Writing new package config file... done.
Reading package info from stdin ... done.
cannot find libHScairo.a on library path (ignoring)
Writing new package config file... done.
Reading package info from stdin ... done.
cannot find libHSgtk.a on library path (ignoring)
Writing new package config file... done.
Reading package info from stdin ... done.
cannot find libHSsoegtk.a on library path (ignoring)
Writing new package config file... done.
Reading package info from stdin ... ghc-pkg: 14: Parse of field
'include-dirs' failed.
make[1]: *** Deleting file `package.conf.inplace'

I assumed it was because I didn't have the GIO framework installed.

-Ross

Axel Simon wrote:
> On Nov 8, 2008, at 9:34, Jens Petersen wrote:
>
>   
>> When I try to build gio from darcs tips with ghc-6.10.1 I see:
>>
>> /usr/bin/ghc-6.10.1 +RTS -RTS -split-objs -c
>> gio/System/GIO/AsyncResult.hs -o gio/System/GIO/AsyncResult.o -O
>> -XForeignFunctionInterface -fglasgow-exts -igio -package-conf
>> package.conf.inplace -hide-all-packages -ignore-package gio -package
>> base-4.0.0.0 -package bytestring-0.9.1.4 -package glib-0.9.13
>> -package-name gio-0.9.13 '-#include<gio/gio.h>'
>> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
>>
>> gio/System/GIO/AsyncResult.chs:37:0:
>>    Failed to load interface for `System.GIO.Base':
>>      Use -v to see a list of the files searched for.
>> make[2]: *** [gio/System/GIO/AsyncResult.o] Error 1
>>
>>     
>
> I can't really comment on GIO. But the error smells like stale  
> dependencies. Although I doubt that the dependencies should change  
> when using different ghc versions, I just want to make sure: Does
>
> rm */lib*.deps
> make
>
> or simply
>
> make distclean
> make
>
> yield the same error?
>
> Cheers,
> Axel.
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Gtk2hs-devel mailing list
> Gtk2hs-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel
>   





-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to