{"action":"created","issue":{"url":"https://api.github.com/repos/haskell/cabal/issues/2330","labels_url":"https://api.github.com/repos/haskell/cabal/issues/2330/labels{/name}","comments_url":"https://api.github.com/repos/haskell/cabal/issues/2330/comments","events_url":"https://api.github.com/repos/haskell/cabal/issues/2330/events","html_url":"https://github.com/haskell/cabal/issues/2330","id":53709414,"number":2330,"title":"Cabal 1.22 breaks/changes -dynamic builds","user":{"login":"nh2","id":399535,"avatar_url":"https://avatars.githubusercontent.com/u/399535?v=3","gravatar_id":"","url":"https://api.github.com/users/nh2","html_url":"https://github.com/nh2","followers_url":"https://api.github.com/users/nh2/followers","following_url":"https://api.github.com/users/nh2/following{/other_user}","gists_url":"https://api.github.com/users/nh2/gists{/gist_id}","starred_url":"https://api.github.com/users/nh2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nh2/subscriptions","organizations_url":"https://api.github.com/users/nh2/orgs","repos_url":"https://api.github.com/users/nh2/repos","events_url":"https://api.github.com/users/nh2/events{/privacy}","received_events_url":"https://api.github.com/users/nh2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/haskell/cabal/milestones/27","labels_url":"https://api.github.com/repos/haskell/cabal/milestones/27/labels","id":922303,"number":27,"title":"Cabal-1.22.0.1","description":"","creator":{"login":"tibbe","id":17277,"avatar_url":"https://avatars.githubusercontent.com/u/17277?v=3","gravatar_id":"","url":"https://api.github.com/users/tibbe","html_url":"https://github.com/tibbe","followers_url":"https://api.github.com/users/tibbe/followers","following_url":"https://api.github.com/users/tibbe/following{/other_user}","gists_url":"https://api.github.com/users/tibbe/gists{/gist_id}","starred_url":"https://api.github.com/users/tibbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tibbe/subscriptions","organizations_url":"https://api.github.com/users/tibbe/orgs","repos_url":"https://api.github.com/users/tibbe/repos","events_url":"https://api.github.com/users/tibbe/events{/privacy}","received_events_url":"https://api.github.com/users/tibbe/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":1,"state":"open","created_at":"2015-01-05T15:52:54Z","updated_at":"2015-01-08T14:59:08Z","due_on":"2015-01-31T05:00:00Z","closed_at":null},"comments":5,"created_at":"2015-01-08T02:58:53Z","updated_at":"2015-01-08T16:23:06Z","closed_at":null,"body":"For [`call-haskell-from-anything`](https://github.com/nh2/call-haskell-from-anything) I'm getting a broken TravisCI build on the same code when the only thing that changed is the version of cabal obtained with `cabal install cabal-install`; before it was 1.20 which worked fine, now with 1.20 it breaks.\r\n\r\nThe broken build is [this one](https://travis-ci.org/nh2/call-haskell-from-anything/jobs/46269882) which worked before (see also this bug: https://github.com/nh2/call-haskell-from-anything/issues/4), the error message being:\r\n\r\n```\r\n$ python test.py\r\nTraceback (most recent call last):\r\n  File \"test.py\", line 4, in <module>\r\n    lib = cdll.LoadLibrary(\"dist/build/call-haskell-from-anything.so/call-haskell-from-anything.so\")\r\n  File \"/usr/lib/python2.7/ctypes/__init__.py\", line 443, in LoadLibrary\r\n    return self._dlltype(name)\r\n  File \"/usr/lib/python2.7/ctypes/__init__.py\", line 365, in __init__\r\n    self._handle = _dlopen(self._name, mode)\r\nOSError: libHScall-haskell-from-anything-0.1.0.1-ghc7.8.3.so: cannot open shared object file: No such file or directory\r\n```\r\n\r\nIn my [cabal file](https://github.com/nh2/call-haskell-from-anything/blob/c5e8c746a50f967f5997cb5dbfa1b81ea9448617/call-haskell-from-anything.cabal#L56) I'm building a `.so` shared library using:\r\n\r\n```\r\n  ghc-options:\r\n    -no-hs-main -fPIC -shared -dynamic\r\n```\r\n\r\nI'm configuring with `cabal configure --enable-tests --enable-shared`.\r\n\r\nWhy would I get a \"missing `libHScall-haskell-from-anything-0.1.0.1-ghc7.8.3.so`\" error with 1.22 when with 1.20 I didn't? Did anything change in the way that shared library compilations are done?\r\n\r\nI woudl appreciate any information!"},"comment":{"url":"https://api.github.com/repos/haskell/cabal/issues/comments/69204060","html_url":"https://github.com/haskell/cabal/issues/2330#issuecomment-69204060","issue_url":"https://api.github.com/repos/haskell/cabal/issues/2330","id":69204060,"user":{"login":"dcoutts","id":1339423,"avatar_url":"https://avatars.githubusercontent.com/u/1339423?v=3","gravatar_id":"","url":"https://api.github.com/users/dcoutts","html_url":"https://github.com/dcoutts","followers_url":"https://api.github.com/users/dcoutts/followers","following_url":"https://api.github.com/users/dcoutts/following{/other_user}","gists_url":"https://api.github.com/users/dcoutts/gists{/gist_id}","starred_url":"https://api.github.com/users/dcoutts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcoutts/subscriptions","organizations_url":"https://api.github.com/users/dcoutts/orgs","repos_url":"https://api.github.com/users/dcoutts/repos","events_url":"https://api.github.com/users/dcoutts/events{/privacy}","received_events_url":"https://api.github.com/users/dcoutts/received_events","type":"User","site_admin":false},"created_at":"2015-01-08T16:23:06Z","updated_at":"2015-01-08T16:23:06Z","body":"It's also worth noting that building shared libs like this is not actually supported by Cabal (though it's certainly useful). Ideally I'd like to add dedicated support, so that we don't need fragile hacks like people are using now (indeed I'm one of the people using such fragile hacks)."}}