[Bro-Dev] Linking problem on Linux

Gilbert Clark gc355804 at ohio.edu
Thu Oct 6 08:55:13 PDT 2011

+1 this.



On 10/6/2011 11:45 AM, Jonathan Siwek wrote:
>> 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).
> - Jon
> _______________________________________________
> bro-dev mailing list
> bro-dev at bro-ids.org
> http://mailman.icsi.berkeley.edu/mailman/listinfo/bro-dev

More information about the bro-dev mailing list