This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Broken SO due to dropped dependencies
- From: Miguel Guedes <miguel dot a dot guedes at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 29 Mar 2013 13:18:35 +0000 (UTC)
- Subject: Broken SO due to dropped dependencies
Hello List,
I'm come across a very strange issue concerning building a shared library
with GCC.
This issue affects a c++ project I'm currently working on, in particular
an SO component. If I compile this SO using GCC [0] the library
dependencies are totally different than when compiling the same SO with
clang [1] using the exact same parameters.
I became aware of this issue when I compiled the SO in question with GCC
and realised it has broken dependencies; it fails with an `undefined
symbol' error:
out/src/omnis: symbol lookup error: /home/guedesm/prj/omnis/sh/../out/
sources/clank/libclank.so: undefined symbol: clang_createIndex
I imagine it's something to do with parameter order; can an enlightened
guru please shed some light on this?
[0] http://pastebin.com/8Xp9mwwA
[1] http://pastebin.com/xM8NNj4m