[GHC] #9010: TemplateHaskell leads to an "unknown symbol" error
GHC
ghc-devs at haskell.org
Fri Dec 18 16:16:53 UTC 2015
#9010: TemplateHaskell leads to an "unknown symbol" error
-------------------------------------+-------------------------------------
Reporter: Feuerbach | Owner:
Type: bug | Status: new
Priority: high | Milestone:
Component: Compiler | Version: 7.10.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by rwbarton):
I should probably add that I am building against the Debian package
`libopencv-dev=2.4.9.1+dfsg-1.2` and the `hs-opencv-binding` is
dynamically linked against a bunch of OpenCV libraries
{{{
rwbarton at morphism:/tmp/th-unknown-symbol-test/hs-opencv-binding/dist/dist-
sandbox-3f06d746/build$ ldd libHShs-opencv-binding-0.0.0
-3XpfF7vOgxLEUT7DVeoPSc-ghc7.10.1.so | grep libopencv
libopencv_calib3d.so.2.4 => /usr/lib/x86_64-linux-
gnu/libopencv_calib3d.so.2.4 (0x00007f6bd2ec1000)
libopencv_contrib.so.2.4 => /usr/lib/x86_64-linux-
gnu/libopencv_contrib.so.2.4 (0x00007f6bd2bda000)
libopencv_core.so.2.4 => /usr/lib/x86_64-linux-
gnu/libopencv_core.so.2.4 (0x00007f6bd27a8000)
libopencv_features2d.so.2.4 => /usr/lib/x86_64-linux-
gnu/libopencv_features2d.so.2.4 (0x00007f6bd2508000)
libopencv_flann.so.2.4 => /usr/lib/x86_64-linux-
gnu/libopencv_flann.so.2.4 (0x00007f6bd229c000)
libopencv_gpu.so.2.4 => /usr/lib/x86_64-linux-
gnu/libopencv_gpu.so.2.4 (0x00007f6bd203d000)
libopencv_highgui.so.2.4 => /usr/lib/x86_64-linux-
gnu/libopencv_highgui.so.2.4 (0x00007f6bd1df0000)
libopencv_imgproc.so.2.4 => /usr/lib/x86_64-linux-
gnu/libopencv_imgproc.so.2.4 (0x00007f6bd195d000)
libopencv_legacy.so.2.4 => /usr/lib/x86_64-linux-
gnu/libopencv_legacy.so.2.4 (0x00007f6bd1648000)
libopencv_ml.so.2.4 => /usr/lib/x86_64-linux-
gnu/libopencv_ml.so.2.4 (0x00007f6bd13cb000)
libopencv_objdetect.so.2.4 => /usr/lib/x86_64-linux-
gnu/libopencv_objdetect.so.2.4 (0x00007f6bd1151000)
libopencv_ocl.so.2.4 => /usr/lib/x86_64-linux-
gnu/libopencv_ocl.so.2.4 (0x00007f6bd0d82000)
libopencv_photo.so.2.4 => /usr/lib/x86_64-linux-
gnu/libopencv_photo.so.2.4 (0x00007f6bd0b64000)
libopencv_stitching.so.2.4 => /usr/lib/x86_64-linux-
gnu/libopencv_stitching.so.2.4 (0x00007f6bd08dc000)
libopencv_superres.so.2.4 => /usr/lib/x86_64-linux-
gnu/libopencv_superres.so.2.4 (0x00007f6bd06a1000)
libopencv_ts.so.2.4 => /usr/lib/x86_64-linux-
gnu/libopencv_ts.so.2.4 (0x00007f6bd03f1000)
libopencv_video.so.2.4 => /usr/lib/x86_64-linux-
gnu/libopencv_video.so.2.4 (0x00007f6bd019a000)
libopencv_videostab.so.2.4 => /usr/lib/x86_64-linux-
gnu/libopencv_videostab.so.2.4 (0x00007f6bcff5b000)
}}}
It looks like you are using static linking, for some reason?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9010#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list