[Hackage] #325: SHGetFolderPath requiered to configure cabal 1.4

#325: SHGetFolderPath requiered to configure cabal 1.4 ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Keywords: Difficulty: normal | Ghcversion: 6.8.2 Platform: | ----------------------------+----------------------------------------------- i try to install cabal with ghc 6.8.3 on XP. i get the error message GHCi could not find the following symbols SHGetFolderPath i saw some old bugs mentioning this problem - what is a current fix? -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/325 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#325: SHGetFolderPath requiered to configure cabal 1.4 ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: ----------------------------+----------------------------------------------- Comment (by duncan): The README file suggests: {{{ ghc --make Setup ./Setup configure --user ./Setup build ./Setup install }}} The reason it imports SHGetFolderPath is to find the location of the `Program Files` directory. Unfortunately that is not provided by either System.Directory or anything in the Win32 binding package so we have to directly FFI import that ourselves. Unfortunately ghci does not know to link in the appropriate dll (and there's no automatic way for us to tell it) so Cabal will not work in ghci by default. You can either compile it (because gcc does link in the lib by default) or add something like `-lshell32` when invoking `ghci`/`runghc`. So I don't see any obvious solutions at the moment. If the Win32 or directory package provided what we need then that'd be a great improvement. Unless someone can see a solution I'm missing I'll have to mark this bug 'wontfix'. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/325#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#325: SHGetFolderPath requiered to configure cabal on windows ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: Windows ----------------------------+----------------------------------------------- Changes (by duncan): * platform: => Windows * summary: SHGetFolderPath requiered to configure cabal 1.4 => SHGetFolderPath requiered to configure cabal on windows -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/325#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#325: SHGetFolderPath requiered to configure cabal on windows ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: Windows ----------------------------+----------------------------------------------- Comment (by guest): I'd suggest a documentation fix, at least. I read those instructions but assumed "runhaskell/runghc" would be no different. Mentioning the issue in a README would be good. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/325#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#325: SHGetFolderPath requiered to configure cabal on windows ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: Windows ----------------------------+----------------------------------------------- Comment (by duncan): I added: {{{ Compiling Setup rather than using `runghc Setup` is much faster and works on Windows. For all packages other than Cabal itself it is fine to use `runghc`. }}} Again, the longer term solution is to get these functions added to the Win32 package. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/325#comment:4 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#325: SHGetFolderPath requiered to configure cabal on windows ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: Keywords: | Difficulty: easy (<4 hours) Ghcversion: 6.8.2 | Platform: Windows ----------------------------+----------------------------------------------- Changes (by duncan): * difficulty: normal => easy (<4 hours) Comment: This really isn't that hard. It just needs someone to bind these `SHGetFolderPath` functions and `CLSID` values etc in the Win32 package. Need a Windows volunteer. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/325#comment:5 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#325: SHGetFolderPath requiered to configure cabal on windows ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: Keywords: | Difficulty: very easy (<1 hour) Ghcversion: 6.8.2 | Platform: Windows ----------------------------+----------------------------------------------- Changes (by duncan): * difficulty: easy (<4 hours) => very easy (<1 hour) Comment: `SHGetFolderPath` is now bound in the System.Win32 module so this is now really easy. Just need someone to do it and test it. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/325#comment:6 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage