/usr/bin/ld: edges: TLS definition in ../core/lib/libmtcp.a(sf_optimize.o) section .tbss mismatches non-TLS definition in /usr/local/lib/libpcap.so section .bss
/usr/local/lib/libpcap.so: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
This error occurs when you link two objects that one who has thread local storage and the other who does not have. I could not find the solution, so I removed all __thread keywords from source codes.