[GHC] #10442: Loading of shared libraries is problematic in ghc 7.10.1

GHC ghc-devs at haskell.org
Thu Jun 4 14:04:24 UTC 2015


#10442: Loading of shared libraries is problematic in ghc 7.10.1
-------------------------------------+-------------------------------------
        Reporter:  artella.coding    |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  high              |               Milestone:  7.10.2
       Component:  Compiler          |                 Version:  7.10.1
      Resolution:                    |                Keywords:
Operating System:  Linux             |            Architecture:  x86_64
 Type of failure:  Runtime crash     |  (amd64)
      Blocked By:                    |               Test Case:
 Related Tickets:                    |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by trommler):

 Replying to [comment:3 rwbarton]:
 > Isn't this another consequence of the fix for #8935 (opening shared
 libraries with RTLD_LOCAL)?
 Yes it is.
 > So should we also link temporary object files against any libraries
 specified on the ghc(i) command line with `-lfoo`?

 Building libtest.so like so
 {{{
   gcc -shared -o libMy.so mylib.o -L. -l test -Wl,-rpath=.
 }}}

 should fix the problem with `cabal repl`. I tried it with openSUSE's ghc
 7.8.4 that has the fix for #8935 included.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10442#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list