
Hi, I'm getting the compilation error that is actually logged on Hackage: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/plugins Below is a small diff file that resolves these problems; I don't know what the proper protocol is for submitting these diffs but it may be useful to someone. - E diff -ur plugins-1.2-orig/src/System/Plugins/Env.hs plugins-1.2/src/System/Plugins/Env.hs --- plugins-1.2-orig/src/System/Plugins/Env.hs 2008-06-02 14:57:59.000000000 +0100 +++ plugins-1.2/src/System/Plugins/Env.hs 2008-06-02 15:00:25.000000000 +0100 @@ -73,7 +73,7 @@ import Control.Concurrent.MVar ( MVar(), newMVar, withMVar ) -import Distribution.Package +import Distribution.Package hiding (packageName) import Text.ParserCombinators.ReadP import qualified Data.Map as M diff -ur plugins-1.2-orig/src/System/Plugins/PackageAPI.hs plugins-1.2/src/System/Plugins/PackageAPI.hs --- plugins-1.2-orig/src/System/Plugins/PackageAPI.hs 2008-06-02 14:57:59.000000000 +0100 +++ plugins-1.2/src/System/Plugins/PackageAPI.hs 2008-06-02 14:59:49.000000000 +0100 @@ -40,7 +40,7 @@ #if CABAL == 1 || __GLASGOW_HASKELL__ >= 604 import Distribution.InstalledPackageInfo -import Distribution.Package +import Distribution.Package hiding (depends, packageName) #else import System.Plugins.Package #endif diff -ur plugins-1.2-orig/src/System/Plugins/ParsePkgConfCabal.hs plugins-1.2/src/System/Plugins/ParsePkgConfCabal.hs --- plugins-1.2-orig/src/System/Plugins/ParsePkgConfCabal.hs 2008-06-02 14:57:59.000000000 +0100 +++ plugins-1.2/src/System/Plugins/ParsePkgConfCabal.hs 2008-06-02 14:58:56.000000000 +0100 @@ -6,7 +6,7 @@ ) where import Distribution.InstalledPackageInfo -import Distribution.Package +import Distribution.Package hiding (depends) import Distribution.Version import Data.Char ( isSpace, isAlpha, isAlphaNum, isUpper, isDigit )

Thanks, if possible, could you construct this as a patch against the darcs branch, which lives here: http://code.haskell.org/~dons/code/hs-plugins Cheers, Don devriese:
Hi,
I'm getting the compilation error that is actually logged on Hackage:
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/plugins
Below is a small diff file that resolves these problems; I don't know what the proper protocol is for submitting these diffs but it may be useful to someone.
- E
diff -ur plugins-1.2-orig/src/System/Plugins/Env.hs plugins-1.2/src/System/Plugins/Env.hs --- plugins-1.2-orig/src/System/Plugins/Env.hs 2008-06-02 14:57:59.000000000 +0100 +++ plugins-1.2/src/System/Plugins/Env.hs 2008-06-02 15:00:25.000000000 +0100 @@ -73,7 +73,7 @@
import Control.Concurrent.MVar ( MVar(), newMVar, withMVar )
-import Distribution.Package +import Distribution.Package hiding (packageName) import Text.ParserCombinators.ReadP
import qualified Data.Map as M diff -ur plugins-1.2-orig/src/System/Plugins/PackageAPI.hs plugins-1.2/src/System/Plugins/PackageAPI.hs --- plugins-1.2-orig/src/System/Plugins/PackageAPI.hs 2008-06-02 14:57:59.000000000 +0100 +++ plugins-1.2/src/System/Plugins/PackageAPI.hs 2008-06-02 14:59:49.000000000 +0100 @@ -40,7 +40,7 @@
#if CABAL == 1 || __GLASGOW_HASKELL__ >= 604 import Distribution.InstalledPackageInfo -import Distribution.Package +import Distribution.Package hiding (depends, packageName) #else import System.Plugins.Package #endif diff -ur plugins-1.2-orig/src/System/Plugins/ParsePkgConfCabal.hs plugins-1.2/src/System/Plugins/ParsePkgConfCabal.hs --- plugins-1.2-orig/src/System/Plugins/ParsePkgConfCabal.hs 2008-06-02 14:57:59.000000000 +0100 +++ plugins-1.2/src/System/Plugins/ParsePkgConfCabal.hs 2008-06-02 14:58:56.000000000 +0100 @@ -6,7 +6,7 @@ ) where
import Distribution.InstalledPackageInfo -import Distribution.Package +import Distribution.Package hiding (depends) import Distribution.Version
import Data.Char ( isSpace, isAlpha, isAlphaNum, isUpper, isDigit )
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Hi Don,
Is this the kind of thing you mean (I'm not really a darcs user; this is
the patch created by darcs record):
[Hide some names to remove ambiguity errors
Edsko de Vries

after darcs record,
darcs send -o file.patch
and then send file.patch via email to the maintainer.
2008/6/2 Edsko de Vries
Hi Don,
Is this the kind of thing you mean (I'm not really a darcs user; this is the patch created by darcs record):
[Hide some names to remove ambiguity errors Edsko de Vries
**20080602202001] { hunk ./src/System/Plugins/Env.hs 76 -import Distribution.Package +import Distribution.Package hiding (packageName) hunk ./src/System/Plugins/PackageAPI.hs 43 -import Distribution.Package +import Distribution.Package hiding (depends, packageName) hunk ./src/System/Plugins/ParsePkgConfCabal.hs 9 -import Distribution.Package +import Distribution.Package hiding (depends) } Edsko _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Hi,
What is the status of hs-plugins? I recently tried to install the
version plugins-1.2 on hackage, using a Gnu/Linux box with Fedora 9
and ghc-6.8.2, but didn't get past the configure stage (see config.log
below).
The installation script is invoking gcc with a -V command line argument
but according to gcc documentation -V requires an argument.
Has anyone managed to get hs-plugins to work? If so, what platform,
which version of ghc and gcc, and where did you find the hs-plugins
source?
Best wishes,
John O'Donnell
... from config.log...
gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC)
configure:1852: $? = 0
configure:1854: gcc -V &5
gcc: '-V' option must have argument
configure:1857: $? = 1
configure:1880: checking for C compiler default output file name
configure:1883: gcc conftest.c >&5
conftest.c:9:13: warning: missing terminating " character
conftest.c:10: error: stray '\33' in program
conftest.c:10: error: expected identifier or '(' before '[' token
conftest.c:10:4: error: invalid suffix "h" on integer constant
conftest.c:10:9: warning: missing terminating " character
conftest.c:10: error: missing terminating " character
configure:1886: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define LEADING_UNDERSCORE 0
| #define TOP "/home/jtod/system/installs/hs-plugins/hs-plugins-1.2
| ESC[?1034h"
| #define WITH_GHC "ghc"
| #define GHC_LIB_PATH "/usr/local/lib/ghc-6.8.2"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:1925: error: C compiler cannot create executables
-----Original Message-----
From: haskell-cafe-bounces@haskell.org on behalf of Edsko de Vries
Sent: Mon 2008-06-02 20:23
To: Don Stewart
Cc: haskell-cafe@haskell.org
Subject: Re: [Haskell-cafe] hs-plugins compile error
Hi Don,
Is this the kind of thing you mean (I'm not really a darcs user; this is
the patch created by darcs record):
[Hide some names to remove ambiguity errors
Edsko de Vries

On Tue, Jun 03, 2008 at 03:07:33PM +0100, John O'Donnell wrote:
Hi,
What is the status of hs-plugins? I recently tried to install the version plugins-1.2 on hackage, using a Gnu/Linux box with Fedora 9 and ghc-6.8.2, but didn't get past the configure stage (see config.log below).
The installation script is invoking gcc with a -V command line argument but according to gcc documentation -V requires an argument.
Has anyone managed to get hs-plugins to work? If so, what platform, which version of ghc and gcc, and where did you find the hs-plugins source?
It's working fine for me (after applying the patch I submitted), on Debian Lenny (which currently comes with ghc 6.8.2, gcc 4.2.4) and the source from Hackage. Source from the darcs repository also works fine (after applying the same patch). I *am* getting an application crash sometimes when I close my application, but I have not yet been able to track that down so I'm not 100% sure it's due to hs-plugins. Edsko

Thanks, Edsko. My version of gcc is 4.3.0. It may well be that some other piece of software in the Fedora 9 distribution is incompatible with the hs-plugins installation script. Has anyone installed hs-plugins on Fedora? I was able to get it to compile on Fedora 4, using ghc-6.4, two or three years ago, but it's never worked on any of my systems since then. John -----Original Message----- From: Edsko de Vries [mailto:devriese@cs.tcd.ie] Sent: Tue 2008-06-03 15:35 To: John O'Donnell Cc: Edsko de Vries; Don Stewart; haskell-cafe@haskell.org Subject: Re: [Haskell-cafe] hs-plugins compile error On Tue, Jun 03, 2008 at 03:07:33PM +0100, John O'Donnell wrote:
Hi,
What is the status of hs-plugins? I recently tried to install the version plugins-1.2 on hackage, using a Gnu/Linux box with Fedora 9 and ghc-6.8.2, but didn't get past the configure stage (see config.log below).
The installation script is invoking gcc with a -V command line argument but according to gcc documentation -V requires an argument.
Has anyone managed to get hs-plugins to work? If so, what platform, which version of ghc and gcc, and where did you find the hs-plugins source?
It's working fine for me (after applying the patch I submitted), on Debian Lenny (which currently comes with ghc 6.8.2, gcc 4.2.4) and the source from Hackage. Source from the darcs repository also works fine (after applying the same patch). I *am* getting an application crash sometimes when I close my application, but I have not yet been able to track that down so I'm not 100% sure it's due to hs-plugins. Edsko

What is the status of hs-plugins? I recently tried to install the version plugins-1.2 on hackage, using a Gnu/Linux box with Fedora 9 and ghc-6.8.2, but didn't get past the configure stage (see config.log below).
I am getting exactly the same error on a Gentoo box. I've tracked it down to some awkward escape character sequence in the TOP variable defined in config.h. The following patch makes it work for me, but I've no idea if this is the right way to fix this problem: hunk ./configure 1385 -TOP=`echo "Directory.getCurrentDirectory >>= putStrLn.init.tail.show " | ghc --interactive -ignore-dot-ghci -v0 | tr -d '\r'` +TOP=`echo "Directory.getCurrentDirectory >>= putStr." | ghc --interactive -ignore-dot-ghci -v0` hunk ./configure.ac 66 -TOP=`echo "Directory.getCurrentDirectory >>= putStrLn.init.tail.show " | ghc --interactive -ignore-dot-ghci -v0 | tr -d '\r'` +TOP=`echo "Directory.getCurrentDirectory >>= putStr" | ghc --interactive -ignore-dot-ghci -v0` Regards, T.
participants (5)
-
Don Stewart
-
Edsko de Vries
-
John O'Donnell
-
Thomas Hartman
-
Timo B. Hübel