wisk / medusa

An open source interactive disassembler
Other
1.04k stars 92 forks source link

Error when linking libmedusa to libOGDF #74

Open dnivra opened 7 years ago

dnivra commented 7 years ago

I am trying to build the dev branch of medusa(15ce1d7) and I get the following error:

Linking CXX shared library ../../lib/libmedusa.so
/usr/bin/ld: $HOME/.hunter/_Base/8c538a0/a1b471c/15fdb4a/Install/lib/libOGDF.a(Graph.cpp.o): relocation R_X86_64_32S against `_ZN4ogdf13AdjEntryArrayIbE10resetIndexEii' can not be used when making a shared object; recompile with -fPIC
$HOME/.hunter/_Base/8c538a0/a1b471c/15fdb4a/Install/lib/libOGDF.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
src/core/CMakeFiles/medusa.dir/build.make:1607: recipe for target 'lib/libmedusa.so' failed
make[2]: *** [lib/libmedusa.so] Error 1
CMakeFiles/Makefile2:200: recipe for target 'src/core/CMakeFiles/medusa.dir/all' failed
make[1]: *** [src/core/CMakeFiles/medusa.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2

Seems like there's an issue when building OGDF.

I'm using a fully updated Ubuntu 16.04.2 running cmake 3.8.0. Steps to reproduce:

  1. Clone the repository.
  2. Run cmake -DCMAKE_BUILD_TYPE=Release .. from a build directory in source tree.
  3. Run make.
wisk commented 6 years ago

Hi dnivra,

OGDF dependency will be handled by vcpkg. Normally, this issue will be fixed soon.