
I've followed the instructions at [1] to create a .deb of vty[2]. It seems the helper scripts for Debian passes `--enable-split-obj' when running `./Setup.lhs configure'. This results in numerous multiple definitions of stuff. I have a few questions regarding this... I think I understand what --split-objs does, but why doesn't it work for vty? I've debianised other haskell libs using the same method without problems. The only difference I can see is that vty uses FFI. Is that what causes the problems? How do I fix this? I'd rather not go in and manually change any automatically generated files, and the file that passes `--enable-split-objs' is automatically generated :( /M [1]: http://haskell.org/haskellwiki/Creating_Debian_packages_from_Cabal_package [2]: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/vty-3.0.0 -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus.therning@gmail.com http://therning.org/magnus What if I don't want to obey the laws? Do they throw me in jail with the other bad monads? -- Daveman

On Mon, 2007-11-26 at 22:48 +0000, Magnus Therning wrote:
I've followed the instructions at [1] to create a .deb of vty[2]. It seems the helper scripts for Debian passes `--enable-split-obj' when running `./Setup.lhs configure'. This results in numerous multiple definitions of stuff. I have a few questions regarding this...
I find this is usually due to a bad combination of ghc and gcc. eg ghc-6.6.x and gcc-4.2 have this problem on a couple arches. What versions of stuff are you using? Duncan

On Dec 14, 2007 12:14 AM, Duncan Coutts
On Mon, 2007-11-26 at 22:48 +0000, Magnus Therning wrote:
I've followed the instructions at [1] to create a .deb of vty[2]. It seems the helper scripts for Debian passes `--enable-split-obj' when running `./Setup.lhs configure'. This results in numerous multiple definitions of stuff. I have a few questions regarding this...
I find this is usually due to a bad combination of ghc and gcc. eg ghc-6.6.x and gcc-4.2 have this problem on a couple arches.
What versions of stuff are you using?
That explains it then. I'm on Debian Sid, which means I currently have ghc 6.6.1 and gcc 4.2.3 (prerelease). Bugger! /M
participants (2)
-
Duncan Coutts
-
Magnus Therning