
Hello, I've built some libraries using "-p" and installed them, resulting in e.g.: mjollnir-debian ~$ ls ~/lib/hsql-postgresql-1.7/ghc-6.6.1/ Database HShsql-postgresql-1.7.o include libHShsql-postgresql-1.7.a libHShsql-postgresql_p-1.7.a When I try to use them: mjollnir-debian ~$ ghc -prof -auto-all -Wall -fglasgow-exts -main- is Import.News.main --make -o news ghc_rts_opts.c Import.News [..] Linking news ... /usr/bin/ld: cannot find -lHShsql-postgresql-1.7_p collect2: ld returned 1 exit status make: *** [news] Error 1 Note that Cabal created "libHShsql-postgresql_p-1.7.a" but GHC expected "libHShsql-postgresql-1.7_p.a". Is this an issue with GHC 6.6.1 or Cabal? cheers peter

On Mon, 2008-04-07 at 08:25 +0700, Peter Gammie wrote:
Note that Cabal created "libHShsql-postgresql_p-1.7.a" but GHC expected "libHShsql-postgresql-1.7_p.a".
Is this an issue with GHC 6.6.1 or Cabal?
It's an issue with Cabal. I broke it. :-) I've pushed a patch to fix it. This reminds us that we need a decent set of automated regression tests. It's too easy to break the less commonly used features. Lennart has been looking at this a bit which is good. Duncan

On 07/04/2008, at 8:44 AM, Duncan Coutts wrote:
On Mon, 2008-04-07 at 08:25 +0700, Peter Gammie wrote:
Note that Cabal created "libHShsql-postgresql_p-1.7.a" but GHC expected "libHShsql-postgresql-1.7_p.a".
Is this an issue with GHC 6.6.1 or Cabal?
It's an issue with Cabal. I broke it. :-)
I've pushed a patch to fix it.
Thanks Duncan, that worked great. I should say I'm pretty amazed at how usable Cabal is now. Thanks again for your hard work. cheers peter
participants (2)
-
Duncan Coutts
-
Peter Gammie