[Bro-Dev] Linking problem on Linux
jsiwek at ncsa.illinois.edu
Thu Oct 6 08:45:07 PDT 2011
> With current master, I get this on an x86_84 Linux box:
> Linking CXX shared module _SubnetTree.so
> /usr/bin/ld: /local/lib/python2.6/config/libpython2.6.a(abstract.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
> /local/lib/python2.6/config/libpython2.6.a: could not read symbols: Bad value
> Any ideas?
I think the situation you're in is that you're building a shared library on an AMD64 architecture which are required to be PIC-enabled, but you're linking to a static archive which was not built with the -fPIC flag.
Was this a manual build of python? You might need to configure it to enable shared libraries (or if you really want to just use the static one, you have to configure it with the -fPIC flag).
More information about the bro-dev