Static build sniffer

From VoIPmonitor.org
Jump to navigation Jump to search

Enabling static nss prevents crashes on older Centos and some other cases.


wget http://ftp.gnu.org/gnu/glibc/glibc-2.19.tar.bz2
tar xjf glibc-*.bz2
mkdir glibc-2.19-build
cd glibc-2.19-build
../glibc-2.19/configure --enable-kernel=2.6.18 --disable-profile --enable-static-nss --prefix=/usr/
make -j8
make install

compile 32bit on 64bit

wget http://ftp.gnu.org/gnu/glibc/glibc-2.19.tar.bz2
tar xjf glibc-*.bz2
mkdir glibc-2.19-build
cd glibc-2.19-build
../glibc-2.19/configure --enable-kernel=2.6.18 --disable-profile --enable-static-nss --prefix=/usr/ --host=i686-linux-gnu --build=i686-linux-gnu CC="gcc -m32" CXX="g++ -m32" CFLAGS="-O2 -march=i686" CXXFLAGS="-O2 -march=i686"
make -j8
make install
Configured openssl with enable-shared: ./config enable-shared enable-ssl3 enable-ssl3-method enable-shared -Wa,--noexecstack no-asan no-crypto-mdebug no-crypto-mdebug-backtrace no-ec_nistp_64_gcc_128 no-egd no-fuzz-afl no-fuzz-libfuzzer no-heartbeats no-md2 no-msan no-rc5 no-sctp no-ssl-trace no-ubsan no-unit-test no-weak-ssl-ciphers no-zlib no-zlib-dynamic