[Bro-Dev] #402: [PATCH] -fPIC is needed for FreeBSD/amd64

Bro Tracker bro at tracker.icir.org
Mon Feb 21 16:08:26 PST 2011


#402: [PATCH] -fPIC is needed for FreeBSD/amd64
----------------------+-----------------------
 Reporter:  leres     |      Owner:  kreibich
     Type:  Problem   |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  Broccoli  |    Version:  git/devel
 Keywords:            |
----------------------+-----------------------
 I'm working on:

 {{{
 FreeBSD fun.ee.lbl.gov 7.2-RELEASE FreeBSD 7.2-RELEASE #9 r99: Sat Dec  4
 23:25:23 PST 2010
 leres at fun.ee.lbl.gov:/home/fun/u2/src/7.2-RELEASE/sys/amd64/compile/LBLSMPIPV6
 amd64
 }}}

 When I try to build broccoli I see:

 {{{
 Linking C shared module _broccoli_intern.so
 /usr/bin/ld: ../../src/libbroccoli.a(bro.c.o): relocation R_X86_64_32 can
 not be used when making a shared object; recompile with -fPIC
 ../../src/libbroccoli.a: could not read symbols: Bad value
 }}}

 A quick google turned up this:

     http://www.cmake.org/pipermail/cmake/2006-September/011316.html

 A patch based on this that allows the build to complete without error is
 attached.

-- 
Ticket URL: <http://tracker.icir.org/bro/ticket/402>
Bro Tracker <http://tracker.icir.org/bro>
Bro Issue Tracker



More information about the bro-dev mailing list